How can i merge 2 rows with same value into 1 rows in Tableau Worksheet? - tableau-api

Image1
As image above, how can i make it into 1 row only so it will not looks like duplicate. The ww should be merge.
Below image is is the example that i want. Is it possible to do it? Please help..Thanks!
Image2

Related

Tableau Percentage calculation

I am learning Tableau using sample dataset Sample Superstore. I am trying to find out, For a given period let us say January 2012, what percentage of sales were shipped using a specific product container (e.g. Jumbo Box)
When containers are in Rows, I get 2.22% and when I flip row to column and vice-versa I get 9.17%. Would appreciate some inputs to clarify this.
2.22%
9.17%
When you use table calculation the values will differ according to the viz and what type of calculation you have used. For example table down will calculate from top to bottom and table across will calculate from left to right. Like this you will see many other options for calculations.
In below example I have used running total with table across that is direction from Left to Right column values (2014,2015,2016,2017,2018).
Example:
Image1 - Original Data(without table calculation)
Data with table calculation - running total(table across)
In below image, Left to Right values are Ship Dates against Segments. Look at the Yellow color highlighted row. Year 2015 for Consumer Segment the sales value is 40,656 but in the original data(Image1) it is 24,635. The reason it is showing 40,656 is because table calculation is performed with running total by table across(left to right), so the original value 24,635 is added with previous Year's(2014) value 16,021. Hence 16021 + 24635 = 40656. It means Left value(16021) is added with the Right value(24635). This pattern will continue till the right most value.
Image2
Columns and rows are switched
In below image(Image3) Left to Right values are Segments against Ship Dates. The Columns and rows are switched. The value of Corporate Segment for the Year 2014 is changed to 25950(blue circle) because the left side value 16021 is added with the original value 9929(Image1).
Image3

Change columns from pixel width to percentage width to be responsive and fill the table in ag-grid

Currently, each column has a pixel width. So there are 2 issues I'd like ot tackle here: 1.) If there are only a few columns, I’d like columns to fill the entire table so there is not empty space. So for example, if there are 3 columns, each of those columns will be 33.33% wide. 2.) We'd like to remove avoid horizontal scrolling by either having the column widths fit to the content or also allowing cell content to wrap if we need to. Bonus: If there's a way to say, "Hey if there are an extremely high number of columns (like 70 columns for example), then use a horizontal scroll" that'd be awesome! Thanks for any help!!
Instead of this:
pixelWidth
Like this:
percentageWidth
and
Instead of this:
enter image description here
Like this:
enter image description here

Show Dimension Headers on Y Axis instead of X Axis

So I have what seems like a pretty dumb question but I haven't been able to find an example online or figure out how to do it myself.
I want to create a visualization with the dimension headers going down the y axis and the values going across the x axis. I'm creating a cross tab/text table kind of visualization. It's just one name, an address, some demographic info. If you try to use each field as it's own column, the info gets pretty cramped. Using the transpose button doesn't work, and dropping the pills on to the row instead of column doesn't work. I've tried changing them from dimensions to attributes, but still no luck. Any tips would be very much appreciated.
Update:
Before:
ColA | ColB|
A | B |
After:
ColA | A
ColB | B
Generally if you want the dimension headers on Y and the values on X, you put the dimension pill on the rows shelf and the measure pill on the columns shelf. You might want to change a dimension to a measure and use a COUNT() or COUNTD() for example to see how many people come from a given city.
If you want to actually display several different measures next to each other (say the number of distinct cities and the number of distinct zip codes) you can drag the "Measure Names" pill on the rows and the "Measure Values" pill on the columns and add or remove the pills you need/don't need.
If this is not what you need, it would be good if you could post a screenshot of your dashboard (including the shelves and the dimensions pane). THat usually helps a lot to see where your problem is.

Tableau Public, Box Plots: combine 4 rows into 1 with 4 plots per month

I have a Tableau Public sheet with 4 years of data.
Each day has a value, and I am showing those daily values as a box plot - one for each month of each year.
Currently it is set up as 4 rows (1 for each year), and 12 columns.
See here:
https://public.tableausoftware.com/views/boxplotsbyyearmonth-dailyvalues/Sheet1?:embed=y&:display_count=no
What I want to do is drop to a single row, and show all 4 box plots side by side within each month, colored by year.
I can't elaborate what exactly I have tried, as I am new to Tableau, and have done a lot of clicking around looking for options, and have tried searching various sites and Google, to no avail.
Is there a simple trick to this, or is it something complex I have to do to?
UPDATE:
I have figured out how to get them lined up correctly, by dragging the year dimension to the columns section, which I had tried, but then I had to reset the other dimensions, and it took.
What I still can't figure out is the coloring.
By dragging the year to the color property, it colors the outliers, which are separate marks, but the box plots are not affected.
When you pull the year field to color it will color the marks (all of them, including the outliers). If you want to change the color of the box plot container you need to select it and right click.
I made some edits, let me know if this is what you were trying to accomplish:
https://public.tableausoftware.com/views/boxplots_0/Sheet1?:embed=y&:display_count=no

I am trying to rearrange sections of a picture in matlab

here is the assignment:
Open humpty_mixed.gif (2D image) and do what all of the king’s horses and men could not do – put humpty back together again. The image is 600x412 and split evenly along the row and columns. (Note: We may use the imread(), imshow(), and imwrite() commands here.)
the picture is sectioned off in 4 rows and 4 columns, could someone help me get started, i'm stuck
b=imread('humpty_mixed.gif');
imshow('humpty_mixed.gif')
%that should get you started.oh by the way this is cheating you will recieve a zero!
a=b:
imshow(a)