Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show null value in pivot table instead of 0 for specified row

Hi All,

example.PNG

I have a table which contains several reports (left table). I have to create a pivot table (right one), and I need to show only ReportA but I have to show zero values also and the Total should be null value. (Total is a row in the table and not necessary the total of the Products)

I have created an if statement (if(Product='Total', null(), sum(....)).

I remove the tick from the checkbox on Presentation tab named Suppress Zero values.

But when I did this ReportB appears in my pivot table as you can see on the right table. Is there any solution if I want to show null value for the specified row but I have to use set analysis in the expression?

Thanks for you time and help!

Gabor

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

Please see if the attached file helps?

Untitled.jpg

View solution in original post

7 Replies
srchagas
Creator III
Creator III

Hi Could You Attach a Sample ?

Not applicable
Author

Sure!

awhitfield
Partner - Champion
Partner - Champion

Hi,

why are you importing the TOTAL value as a Dimension?

1.Don't load the TOTAL product

2. Enable Partial Sums

3. Change expression to Sum({<Report = {'ReportA'}>}MeasureB)

And you get this:

Andy

Not applicable
Author

Hi,

As I wrote earlier the Total Product not necessary equal with sum of products.

And in the Total Product row I have to show null value as you can see in the example.

Thanks

Gabor

sasiparupudi1
Master III
Master III

Please see if the attached file helps?

Untitled.jpg

sgrice
Partner - Creator II
Partner - Creator II

change this

(if(Product='Total', null(), sum(....))

to

(if(Product='Total', '-', sum(....)).

Not applicable
Author

Thank you very much! It works the way how I'd like: