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: 
Prozyn
Contributor
Contributor

.

 
Labels (1)
1 Solution

Accepted Solutions
Rick2Foqus
Contributor
Contributor

Try writing an if statement like this: 

IF(SUM({<Year = {"<$(= Year(Today()))" }>}Total_Sales) = 0, SUM({<Year = {"$(= Year(Today()))"}>} Total_Sales),)

View solution in original post

1 Reply
Rick2Foqus
Contributor
Contributor

Try writing an if statement like this: 

IF(SUM({<Year = {"<$(= Year(Today()))" }>}Total_Sales) = 0, SUM({<Year = {"$(= Year(Today()))"}>} Total_Sales),)