Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
carolin01
Luminary Alumni
Luminary Alumni

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

5 Replies
MK_QSL
MVP
MVP

What is your expression after replacing the Variables?

carolin01
Luminary Alumni
Luminary Alumni
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
Luminary Alumni
Luminary Alumni
Author

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

jagan
Luminary Alumni
Luminary Alumni

Hi,

Can you attach sample file and your expected output?

Regards,

Jagan.