Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
JoannaM
Contributor III
Contributor III

Create field in script editor according to set analysis formula

Hi all

I have created the following formula in set analysis:

sum(
aggr(
Sum(total [BU production days])
/
[production days per year]
*
aggr([production days per month],%date)
,%date)
)

I am breaking down a yearly budget to production days.  I tried everything and the formula above is the only one working for me and giving me back the numbers I need.

How can I translate this to the script editor?

Thanks for the input.

BR, Joanna

Maybe @rwunderlich, you have an idea? Last time I also had a similiar chanllenge and because of your input I could solve my problem.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be like this?

Table1:
Load %date, Sum([BU production days])/Sum([production days per year]) as TotalSum Resident Table Group By %date;
Left Join (Table1)
Load %date, Sum(TotalSum) as Sum_New Resident Table Group By %date;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

1 Reply
Anil_Babu_Samineni

May be like this?

Table1:
Load %date, Sum([BU production days])/Sum([production days per year]) as TotalSum Resident Table Group By %date;
Left Join (Table1)
Load %date, Sum(TotalSum) as Sum_New Resident Table Group By %date;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful