Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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())