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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
carolin01
Partner - Creator II
Partner - Creator II

if(aggr(sum(...

Hi,

can anybody help me witht he correct variable syntax in this aggr-statement:

=if(aggr(Sum($(=vRevenueTotalMax)'$(vLagerSmaler)'&'$(vTopCustomer)',SoldToBusinessPartner)))

The Variable vLagerSmaler should give the user the option to choose > or <, the vTopCustomer should give the possibility to enter a value. This is used as calculated dimension to enable the user to filter the list of customers.

Best regards

Carolin

Labels (1)
5 Replies
MK_QSL
MVP
MVP

What is your expression after replacing the Variables?

carolin01
Partner - Creator II
Partner - Creator II
Author

Hi,

the Statement without variables would be  e.g.:

=if(aggr(Sum($(=vRevenueTotalMax)),SoldToBusinessPartner)>5000,SoldToBusinessPartner)

But also this doesn´t give me the result that I want...

Carolin

MK_QSL
MVP
MVP

May Be

SUM(Aggr(IF(SUM($(=vRevenueTotalMax))>5000, SoldToBusinessPartner),SoldToBusinessPartner)

carolin01
Partner - Creator II
Partner - Creator II
Author

Unfortunately no. The dimension then indcates "// Error in calculation"

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you attach sample file and your expected output?

Regards,

Jagan.