Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
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
Partner

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)

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Marcellino_Groothof
Contributor III
Contributor III

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

Anil_Babu_Samineni

This?

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

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Marcellino_Groothof
Contributor III
Contributor III

=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))

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
jayshrinipurte
Partner
Partner

Hi Marcellino....

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


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


Regards,

Jayshri

View solution in original post

Marcellino_Groothof
Contributor III
Contributor III

Thanks Jayshri,

The following expression I have used now:

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

Regards,

Marcellino

jayshrinipurte
Partner
Partner

Welcome  Marcellino....