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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mark_manalo
Contributor
Contributor

set analysis formula works in textobject but not in LOAD SCRIPT

I have the following formula in a Text Object:

    =Num(Sum(Aggr(Count({<Jahr={$(vTodayYear)}, Kw={">=1<=$(vTodayKw)"}, Database.Kennzahl={'Ew'}, Database.Szenario={'Actual'}>} DISTINCT Database.MitarbeiterID), Kw) /  vTodayKw) , '###.##0')

This works and it gives me the desired Value. But when I want to SET it to LOAD SCRIPT like this:

    SET vMyVar = =Num(Sum(Aggr(Count({<Jahr={$(vTodayYear)}, Kw={">=1<=$(vTodayKw)"}, Database.Kennzahl={'Ew'}, Database.Szenario={'Actual'}>} DISTINCT Database.MitarbeiterID), Kw) /  vTodayKw) , '###.##0');

This doesn't work and theres no ErrorMessage

Thanks for any help!

1 Reply
Anil_Babu_Samineni

How you are calling in Text object? vMyVar Instead use $(vMyVar)

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