Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
user467341
Creator II
Creator II

Pivot table Totals is empty due to set expression?

I have the following pivot table

user467341_0-1678257265879.png

The totals for first column is empty. After doing some troubleshooting, I figured it was due to my set expression set inside my measure:

=IF([Stage]<>'Removed',SUM(Hours))

When I change this set expression to

=SUM(Hours)

The total will work:

user467341_1-1678257389820.png

You can see that "Break" has double entry, that is because I did some data processing to aggregate any parts with "removed" into the break stage (hence my first picture). However, I can't use this set expression as this will report double hours for "Break".

I figured it must be due to the ELSE of my set expression, which is NULL.

How can I get my output to be this:

user467341_2-1678257540273.png

 

 

 

Labels (1)
4 Replies
MayilVahanan

Hi

Try like below

=SUM({<[Stage]-={'Removed'}>}Hours)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
user467341
Creator II
Creator II
Author

Hi Mayil, thanks for the reply. This will remove the column "-", which thus remove rows from body and gears (6.3 and 32 respectively) which is not I want from my expected output.

MayilVahanan

Can you send the sample data in excel and let us know the expected output.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
user467341
Creator II
Creator II
Author

Hi Mayil, the expected output is in my original post, third picture.