Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Karthick30
Creator
Creator

Pivot Table Total Issue

Hi ,

 I am using Pivot table. In that measure, I am giving If condition and result is coming fine.. but total is coming as 0.

Karthick30_0-1666805214994.png

 

 

Labels (2)
4 Replies
Vegar
MVP
MVP

You're holding back some important information.  What does your measure expression look like and what are the names of the dimensions in your pivot table?

You do mention that  you have an IF statement.  Could it be that the if statement returns null()/false when you have more than one dimension values on one row.

Try to get your expression to work using no dimensions in your table, then it will probably work when you add dimensions afterwards. 

Karthick30
Creator
Creator
Author

Hi @Vegar ,

 Please find the measure value as below

f(A='India',sum({<B={'Annual Plan'},A={'India'}>}L)/1000 - below(sum({<B={'Annual Plan'}>}L)/1000) - below(below(sum({<B={'Annual Plan'}>}L)/1000)),
sum( {<B={'Annual Plan'}>}L)/1000)

L is the value we are summing

Result I am getting is 

Karthick30_0-1666848761951.png

 

3088 Total is not correct. Actual total is 2908. 

 

Mark_Little
Luminary
Luminary

HI @Karthick30 

First thing to try is the totaling function

mark6505_0-1666853058983.png

 

Change to sum.

Karthick30
Creator
Creator
Author

@Mark_Little . we dont have that option in Pivot table. Its available only in Normal native chart.