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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Null values in set analysis

Hi all,

I'm looking for null handling in set analysis.

I have gone through many threads though, couldn't find an appropriate solution.

Here is what i'm looking for.

sum({<[Month]={'<=$(=max([Month]))'}>}[SALES])

This will do an YTD calculation. But for some months i have sales value as null (). so i dont see any accumulated sales value for that country.

I tried something like below already, that's not working out.

sum({<[SALES]={*},[Month]={'<=$(=max([Month]))'}>}[SALES])

Thanks in advance.

5 Replies
MK_QSL
MVP
MVP

Can you provide sample data please?

Not applicable
Author

try "show zero" in presentation tab

Not applicable
Author

Try,

   In Presentation tab,

  1. Uncheck 'Suppress zero-Values'

  2.Check-In 'Zero On-bars'

Regards

Lathaa

sunny_talwar

This might help:

Sum({<[SALES]={'*?'},[Month]={'<=$(=max([Month]))'}>}[SALES])


I have found out that only * doesn't seem to remove null, but '*?' does. Give it a try, may be it solves your issue.


HTH


Best,

S

Not applicable
Author

Hi

  My suggestion is remove the null's in script level only that will be best practices

load

*

resident Table1 where sales>=0;

try this

thanks

Manju