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: 
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())