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: 
Not applicable

Help with Aggregation within a set analyisis expression

Hi Guys,

Wondering if someone can help, im trying to aggregate this set analysis expression by service_id , ive tried a few things and im not having any luck. It doesn't seem to change the values has anyone had this sort of problem before ?

sum(aggr(sum({1<service_state = {'installed'}, m_ref=(P({1<portfolio_class = {'Managed Networks', 'Public Cloud Services', 'Managed Apps (on public cloud)', 'Hybrid & Private Cloud Services', 'Managed AWS/azure platforms', 'Managed apps on AWS/azure'}, service_state = {'installed'}>}))>}service_annualised_arv),service_id))

Thanks

Sarah

2 Replies
sunny_talwar

May be add your set analysis to outer aggregation also

Sum({1<service_state = {'installed'}, m_ref=(P({1<portfolio_class = {'Managed Networks', 'Public Cloud Services', 'Managed Apps (on public cloud)', 'Hybrid & Private Cloud Services', 'Managed AWS/azure platforms', 'Managed apps on AWS/azure'}, service_state = {'installed'}>}))>}

Aggr(Sum({1<service_state = {'installed'}, m_ref=(P({1<portfolio_class = {'Managed Networks', 'Public Cloud Services', 'Managed Apps (on public cloud)', 'Hybrid & Private Cloud Services', 'Managed AWS/azure platforms', 'Managed apps on AWS/azure'}, service_state = {'installed'}>}))>} service_annualised_arv), service_id))

vinieme12
Champion III
Champion III

can you try

sum(TOTAL <service_id> aggr(sum({1<service_state = {'installed'}, m_ref=(P({1<portfolio_class = {'Managed Networks', 'Public Cloud Services', 'Managed Apps (on public cloud)', 'Hybrid & Private Cloud Services', 'Managed AWS/azure platforms', 'Managed apps on AWS/azure'}, service_state = {'installed'}>}))>}service_annualised_arv),service_id))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.