How to use Grand total for multiple column in tableau - tableau-api

I have one table with three columns say c1,c2 and c3. I want to show grant total for all three columns. I have tried but grand total's logic was working only with column and not for three column.
So is there any way to do so..

If all three columns are measures then you should be able to just go to Analysis->Totals->Show Column Grand Totals.
Or are you also trying to count a dimension? Your question is not very clear.

Related

Tableau splitting ranking without breaking the rank

I am trying to split a ranking table into two, but the problem is when I split it, the ranking is messed up.
See the images below. This is the ranking table before split
So, with the above table, I wanted to split with the Profit column. So, when the profit is above 10,000 then group one, other wise group 2.
Next 2 images are after split.
As you can see the second split image starts with 1 instead of 10.
How can I split it without messing up the ranking?
Duplicate the Rank of Profit calc and use that to filter.
Below, rank of profit = rank(sum([Profit]))

Grand Total for discrete column

I am new to tableau and trying to show grand total for discrete columns however it shows blank. Is there a workaround. Can one total for discrete columns?
Here's the snapshot:
I tried to follow tableaus notes and removed the discrete columns and double clicked it , however it becomes continuos and tries to aggregate it. Is there a work around?
Please help
You can't grand total a discrete column. It either has to be continuous OR you create a WINDOW_SUM calculation to calculate the grand total, then put the total in the Title area instead of within the table.
An easy way is to move your discrete measure from the Rows shelf to the Text shelf and then make it continuous. If you have multiple measures, you can get a similar effect with the placeholder fields Measure Names and Measure Values

Adding a row subtotal for certain columns only

I have data as shown in this table:
If I add a grand total column Io get sales and units across the window.
Is there a way to add a row total for only Contract Owners AAA and BBB? But not CCC & IDN?
Arrange your data on the sheet as shown on the screenshot (using Measure Names and Measure Values), display subtotals and then use the individual measure pills to hide subtotals for selected measures.

Aggregating ratios in Crystal Reports pivot table

Simple pivot table:
In this case, I'm pulling back 5 fields from the database:
Category
Year
Quarter
Numerator
Divisor
2 unfortunate facts. First, the year/quarters drift to provide a rolling 8-quarter view. Consequently, there will usually be 1 full year and 2 partials with their respective quarters. Second, the measures to be displayed are ratios of numerator to divisor. Naturally, Crystal is assuming that I want to divide everything and then total it, which is not correct.
How do you get the pivot table totals to calculate correctly as SUM({Numerator})/SUM({Denominator})? Since there are multiple levels in play, the Sum({Numerator}, {Attribute})/Sum({Denominator}, {Attribute}) doesn't seem to work or I'm missing an extra element to it.
This crosstab is intended to replace a report that individually calculated every cell, and is not viable for long-term maintenance. If the totals can't be corrected, we'll have to revert back to that format.
Once you create a cross tab... you can insert saperate column or row inside the existing column using the option embeeded summary
Right click---> Embeeded Summary ---> insert embeeded summary
This will insert a row as Edit This Formula.
Now on the newly created cell
Right click---> Embeeded Summary ---> Edit Calculation formula
This will open a window there write your division formula.

Displaying multiple columns / dataset rows per detail section

I need to create a report where each page contains four columns. I initialy had them as subreports but I guess they dont need to be.
How do I make it so each entry in a supplied dataset is represented as a column? Say if I had a dataset with 6 rows, the report would span two pages with four columns on the first and two on the second.
In other horizontal reports I had one dataset row represented as a row in the detail section of the report. But now I need four dataset set rows for each detail section, as the detail section contains four columns.
Guess what I really am looking for is a vertical detail section, sort of, while retaining the rest of the report horizontal.
I suggest using a Crosstab - these are the Crystal equivalent of pivot tables in Excel, or matrixes in SSRS.