Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression Total

Hi All

For some reason, When I use the expression total for the below IF Statement, it seems to display as true even though we are in Nov. - NUM(month(today())) is definitely greater than data in January - Please see attached for illustration.

Expression

=IF(Month_PurNum<=NUM(month(today())),SUM(JanValue_Pur),SUM(Jan_P))

13 Replies
Not applicable
Author

It seems like your problem is that for the row you are having issues with has no Month_PurNum so your formula does not return the correct results.

Try this. It should now return a 0 because it does not fit into either category.

=IF(Month_PurNum<=NUM(month(today())),SUM(JanValue_Pur),

IF(Month_PurNum>NUM(month(today())),SUM(Jan_P)))

Not applicable
Author

It returns "-" and not 0

Not applicable
Author

You could try this again:

=sum(IF(Month_PurNum<=NUM(month(today())),(JanValue_Pur),

IF(Month_PurNum>NUM(month(today())),(Jan_P))))

This is begining to be to hard without being able to look at the chart.

You could also try selecting Suppress When Value is Null for the Month_PurNum dimension. That would only work if it isa null value and not a blank value

Not applicable
Author

Do you have a personal email?