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

Set analyses with masteritem vBudget

What is the right syntax with set analyses when year=2017 and I want to use the masteritem vBudget?

masteritem in script is: vBudget = sum(Budget)

1 Solution

Accepted Solutions
jayshrinipurte
Partner - Creator
Partner - Creator

Hi Marcellino....

vBudget= Sum({<Year = '2017'>} Budget)


wherever you need this expression, use this variable as "$(vBudget)"


Regards,

Jayshri

View solution in original post

8 Replies
Anil_Babu_Samineni

May be this?

Sum({<Year = {2017}>} Budget)

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
Marcellino_Groothof
Contributor III
Contributor III
Author

I want to use the masteritem vBudget within the set analyses (QlikView)

Anil_Babu_Samineni

This?

Sum({<Year = {2017}, masteritem = {$(vBudget)}>} Budget)

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
Marcellino_Groothof
Contributor III
Contributor III
Author

=for example: sum({$<Jaar={'2012'}>} $(vBudget)) but this doesn't work (2 sums)

Anil_Babu_Samineni

It works but it sums the double

sum({$<Jaar={'2012'}>} Aggr($(vBudget), YourDimensions))

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
jayshrinipurte
Partner - Creator
Partner - Creator

Hi Marcellino....

vBudget= Sum({<Year = '2017'>} Budget)


wherever you need this expression, use this variable as "$(vBudget)"


Regards,

Jayshri

Marcellino_Groothof
Contributor III
Contributor III
Author

Thanks Jayshri,

The following expression I have used now:

Sum({$<SalesPerson={"=$(vBudget)>355000"}>}Budget)

Regards,

Marcellino

jayshrinipurte
Partner - Creator
Partner - Creator

Welcome  Marcellino....