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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register 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),)