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

Transfer formula from set analysis to script editor

Hi all

I would like to transfer a part from my formula in set analyis to the script editor.

I need to show the data from beginning of this month until today. 

Set analysis formula:

sum({<%date={"<$(=today())"}>}[prod days])

to editor.

How will {<%date={"<$(=today())"}>} look like in the script editor?

Thanks for any help.

Best regards, Joanna 

Labels (3)
1 Solution

Accepted Solutions
neerajthakur
Creator III
Creator III

if(MonthStart(date)<=Today(),Sum([prod days]),0) as Sum_Prod_Days

Make sure format of MonthStart(date) is same as Today(), you can use Num() in front of both to make this happen.

Thanks & Regards,
Please Accepts as Solution if it solves your query.

View solution in original post

2 Replies
neerajthakur
Creator III
Creator III

if(MonthStart(date)<=Today(),Sum([prod days]),0) as Sum_Prod_Days

Make sure format of MonthStart(date) is same as Today(), you can use Num() in front of both to make this happen.

Thanks & Regards,
Please Accepts as Solution if it solves your query.
JoannaM
Contributor III
Contributor III
Author

Hi 

Thanks for your help. It worked. 

if(%date<=Today()-1,([prod days]),0) as "prod days temp10"

Have a great day! 

Best regards, Joanna