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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table Expression

Hi All,

I am facing issue with null values. if the value is null it is displaying as 0.

This is the expression

=Sum({<WAVE = {"WAVE1"}>} DEALER_RECOMMENDATION_VALUE_CURRENT_WAVE)  *0.2*100)

Please help.

filter.png

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

= if ( Sum({<WAVE = {"WAVE1"}>} DEALER_RECOMMENDATION_VALUE_CURRENT_WAVE) > 0 ,

     Sum({<WAVE = {"WAVE1"}>} DEALER_RECOMMENDATION_VALUE_CURRENT_WAVE)  *0.2*100) ,

     null() )

View solution in original post

5 Replies
maxgro
MVP
MVP

maybe you can use the nullcount to check for null, example

if(NullCount(exp)>0, '???',  sum(exp))

jonathandienst
Partner - Champion III
Partner - Champion III

If displaying 0 is not correct, what would you like to see if the underlying field is null?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hi,

i need to display null as empty. (Wave3, Wave4, Wave5 columns are empty)

This is how i display in SSRS report. I am trying to replicate the same in QV report.

Also i need to display the average. please help.

filter.png

Thanks

Anonymous
Not applicable
Author

= if ( Sum({<WAVE = {"WAVE1"}>} DEALER_RECOMMENDATION_VALUE_CURRENT_WAVE) > 0 ,

     Sum({<WAVE = {"WAVE1"}>} DEALER_RECOMMENDATION_VALUE_CURRENT_WAVE)  *0.2*100) ,

     null() )

Not applicable
Author

Thank you Bill.