Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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())