Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dafnis14
Specialist
Specialist

Dimension and totals in pivot table top row

Hi people,

Need some help with the following....

The requirement I have is to display the following pivot table:

Report.png

Column E: Buy amount

Columns F,G,H: Costs by type (now only 3, but have to be dynamic)

Column I: Total of Columns F,G,H

Column J: Costs/Buy: Column I/Column E

I created the calculations in the script for every part

The dimension is the report item type

In the table I used one expression:

Pick(Report_PickID, num(sum(CostSummary_Total),'#,##0'),num(avg(CostSummary_Total),'#,##0.0%'))

Report_PickID =1 (sum) for columns E-I and 2 (avg) for J

In the table, the issue we can see is that the Cost/Buy is wrong for the family level (in pink).

Any idea how to resolve this?

Or, is there another way to display dimension total values and grand totals without creating it in the script?

I attached sample data.

Thanks in Advance!

1 Reply
dafnis14
Specialist
Specialist
Author