Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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),)