Showing absolute and percentage values in Tableau - tableau-api

I want to show both absolute and percentage value in a single view in the form of a matrix.
In the below view I am trying to add one more column showing values as percentages of total
Got hint here but not able to replicate:Tableau - Both count and Percentage in Measure Values
The data is like this
can any one please suggest!

Not that difficult. I recreated a data like yours,
Follow these steps
Add slide on rows
Add number of records in text on marks card
Add table calculation on this field -> percent of total. The view will look like this
Notice a small triangle in 'no of records' field. That indicates that it is table calculation
Add number of records field once again to text. (Tip: Double click the field number of records to add it to view directly)
Reorder as you like
or with totals

Related

Percent of Total for Categories Within Different Panes

I'm attempting to calculate the percent of total based off the the first column in each pane. However, table calculations only allow a calculation based off the each pane
SUM({ FIXED [Category]:SUM([Number of Records])})/TOTAL(SUM([Number of Records]))
does not produce the desired result.
It simply measures the number of records total in the category.
I cannot fixed the TOTAL function to category as it is a table calculation.
In the image, essentially I am trying to get all of the bars of the same color together without adjusting their heights.
enter image description here
I'm not really sure on what you're trying to do, when you say "percent of total based off the the first column in each pane" - does that mean total records with category 'furniture' & region 'central' shown as a percentage of all records, or total records with category 'furniture' shown as a percentage of all records with region 'central'? Or something else?
I have a feeling you can get to what you need by creating 2 fixed LOD calculations, or by fixing to 2 dimensions (e.g. { FIXED [Category],[Region]:SUM([Number of Records])}

How to get the values in the same column in Tableau?

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.

Calculating % Complete

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.

Display Percentage in a Row in Tableau

I am trying to display the percentage of row instead of their actual value.
I tried going to Analysis > percentage of row but it displays 100% for every cell. Any idea?
Before
Since you wanted to calculate the percentage row-wise checking Percentage option in Analysis should work but it may have not worked incase you have selected Percentage (Cell wise) .
For easier understanding create a Table Calculation and use the Edit Table Calculation to understand how the Calculation works.
Table Calc --> Percent of Total --> Row-wise(Table- across)
Adding a sample screenshot
Right click on the column you want and go to format of the number and change it to custom and add whatever you want
or go to the dimension/parameter you want to show. and change the default numbering format to %

Tableau cuts off fields in table

In Tableau, I have a table with 8 Dimensions in the Rows Shelf. I also have a Calculated Field Dimension called "Blank" which only contains whitespace (" ") as a placeholder. However, as shown in the image below, this table is only displaying Fields 3-8 despite Fields 1-8 being included in the Rows Shelf. How can I fix this? I have edited the photo to redact sensitive information, yet included field names so it conveys the necessary information.
For the sake of others that may stumble upon this question.
The reason the columns are not shown is due a Tableau setting that is defaulting the maximum number of visible "row labels" to 6. This setting can be changed easily.
Problem - Column labels hidden and labels concatenated:
Solution - Update the table layout settings:
At the top, click on Analysis > Table Layout > Advanced
Increase Maximum levels of row labels and Maximum levels of horizontal row labels to at least the number of dimensions in the Rows section.
Result - All column labels displayed: