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: 
Ayden
Contributor III
Contributor III

If statement

hello there need help to rewrite this set analysis to an If statement to create a field at the script vs the front end.

 

sum({< [ Date]={">=$(vCurrentDay)"}>} Quantity)

Labels (3)
2 Replies
rbartley
Specialist II
Specialist II

How about the following?

Sum(if([Date]=Date(Today(),'dd/MM/yyyy'),[Quantity])) as 'Quantity Today'  (change formatting of date as appropriate)

 

 

justISO
Specialist
Specialist

Hi, try

sum(If(date([Date])>= date($(vCurrentDay)), Quantity)

Additionally, you can change variable $(vCurrentDay) to actual formula, like date(today())