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.
Related
I have multiple column of survey answers from excel in tableau with the answers being 1,2,3,4,5. I want to show across the average for each column but in singular bar graph. For example row 1 would have a bar chart showing the average for that excel column, row 2 would show the average for its column etc. I would love the name of each excel column (Answer from survey) to be on the left side of the chart. However I can't figure it out since every time I drag the question into the row tab it starts showing (1-5) and doesn't just keep the average of the column. Thanks!
[
After replicating and trying what you described, my suggestions is to drag "Measure Values" (from Measure list on the sidebar) dropping in the "Columns" tray, and "Measure Names" on Rows.
Then use Measure Names as a filter, selecting the questions.
See Below:
Hi ,
Sorry for blur image! As We can see for Conversion Attrition ,Converted ,Remaining - some values are there!But it's dividing ,I need the values in the same column.
I have done this but the division is coming ! I need help here ! Thanks in advance.
If you want to reduce the number of column headers, remove some discrete (blue) fields from the columns shelf. If you want to reduce the number of row headers, remove some discrete (blue) fields from the rows shelf.
Depending on your data shape and values, you might want to put the fields you take off those shelfs onto another shelf, such as the text shelf.
The easiest approach is treat understanding Tableau as a series of experiments and learn from them -- i.e. if I do this, what does Tableau do in response? In this case, the discrete fields on the rows and columns axis define the row and column headers for your viz, dividing the view into panes and cells.
You have to also keep aware of which fields you are treating as dimensions in your view. That will determine the level of detail of the viz and the number of marks.
enter image description here
From the Image I need to calculate % complete for the order number 1.
Calculation for complete will be
(total number of points for status 'Delivered' / total number of points)*100
The value should be 57%
Can some one help with the calculated field?
Look at IIF in help files
SUM(IIF([Status]="Delivered",[Point],NULL)) / SUM([Point])
I assume your column named Order No. extends all the way down each row (i.e., each row should have a 1 as Order No. but the screenshot does not show that.
Also, the above only works if the status of "Delivered" is consistently cased, which it is not in the screenshot. If it is not consistently cased, wrap [Status] in an Upper function:
SUM(IIF(UPPER([Status])="DELIVERED",[Point],NULL)) / SUM([Point])
You can also get the effect you want, just by manipulating the Tableau user interface -- without needed to write calculated fields as #S. User18 showed. Both approaches work, but it helps to understand both alternatives.
As with #S. User18, I assume your column named Order No. is consistently filled in. I also assume [Order No.] is a dimension.
Place [Order No.] on a shelf, say Rows
Place [Status] on another shelf, say Columns
Place Sum([Point]) on a shelf, say Text
This shows the sum of the number of Points for each combination of the two dimensions: [Order No.] and [Status]
To convert the number of Points to a percentage, right click on Sum([Point]) on the marks card, and choose Quick Table calculation->Percent of Total
Similarly, right click on Sum([Point]) and experiment with different "Compute Using" settings to get the effect you want -- i.e. percent of each row, column, table etc. You can instead Edit the Table Calc if the preset Compute Using options don't get the effect you want.
Right click on any row or column headers that you want to hide - so if you only want to display the percentages for the Completed Status, hide the others. Don't exclude the others as that will change the calculations.
To understand more about Table Calculations, see the online help.
(source: tableau.com)
I'm using Measure Values for combining two measures:
1)Count of Clients (As a percentage)
2)% Retention (Calculated field which uses another calculated field called Numerator Retention in it's formula over the total to calculate the %)
Measure Value Mark Labels successfully show the respective percentages for the two measures. Now I wanna show the respective count of clients or numbers behind these percentages but I'm unable to do so since I've already used Measure Value Mark Labels to do something similar.
When I try editing the Labels text, it edits it for all labels together and hence I'm getting all labels for all rows and not how I want it to show selectively as I described.
Example Solution: For Private Residence, I only want 125 to show with 60% which is the actual number behind the percentage. And I want only 119 to show with 95%
You can do this, but not using Measure Values. You should mirror what I have done here. I do not know your calculation for the Respective Retention, so use your calculation.
You need to move both of your measures to the Columns shelf and make them a Dual Axis:
After doing that, you will have access to the individual measures - so you can give labels independently:
Just make sure you place the measures that you want for each axis respectively.
I'd like to create a grouped bar chart with multiple measures by color. I have the following measures:
Clicks
Impressions
Revenue
Profit
I have a total of 2 web sites that I am collecting data from, so I'd like to have a different color for each measure and the columns to be side-by-side. Also, I'd like for them to be separated by site as well.
I see the stacked bar columns, but that's not the way I want to visualize this. Anybody have any ideas?
As far as I Understood, you have 4 measures, 1 dimension(Websites) with 2 websites names. Now, you need to show side by side bar, each column has two websites i.e., 4 columns with 2 sub columns each.
Drag Measure Names and Websites to columns shelf and Measure Values to row shelf.
Now, from Show Me shelf select side-by-side bars
If you get 2 columns with 4 sub columns, swap positions of Measure Names and Websites.
If you didn't get different colors for different measures, drag Measure Names to Color in Marks.
hope this is what you are looking for.
Just like Y.Prithvi said, you would use measure names and measure values.
(disregard the fields in the filters card, I filtered my data to match what you were trying to accomplish)
See example: