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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
lmonincx
Creator II
Creator II

displaying only high level although calculations needs to be done on a lower level without display

Hi

I am looking for a way to put an if statement on a dim level and then display a table only containing a higher level but still applying the calculation on the lower level

Group Prod Amount

A Bike 150

A Motor 200

B Plane 400

I would like to display on Group level the sum of amount which is on Prod level > 170, it needs to be a straight table having only Group as a dim and an expression

THis mean for group A to report only 200

Any idea how to accomplish this in QV?

See attached qvw

1 Solution

Accepted Solutions
vidyut
Partner - Creator II
Partner - Creator II

Hi,

I tried the following expression:

sum(aggr(IF(Sum ([Omzet inkoop bedrag]) > Sum ([Advies Minimum Aantal]*[Actie Inkoop Prijs]), 0, Sum ([Advies Minimum Aantal]*[Actie Inkoop Prijs])- Sum ([Omzet inkoop bedrag])),Artikel,Winkel))



and it gives 56,50 for Volume O, and not for E. Please check

View solution in original post

4 Replies
vidyut
Partner - Creator II
Partner - Creator II

Change the expression in the second chart to sum(If(Bedrag>=200,Bedrag)) , That will do.

lmonincx
Creator II
Creator II
Author

Hi, that worked in this small example, but in the actual application it's not just a number like <= 200 but a calculation, I can't get it to work there, can you have a look please?

it's the meaning that the measure 56,50 is going to be displayed in the lower table for Volume E.

Many thanks!

Linda

vidyut
Partner - Creator II
Partner - Creator II

Hi,

I tried the following expression:

sum(aggr(IF(Sum ([Omzet inkoop bedrag]) > Sum ([Advies Minimum Aantal]*[Actie Inkoop Prijs]), 0, Sum ([Advies Minimum Aantal]*[Actie Inkoop Prijs])- Sum ([Omzet inkoop bedrag])),Artikel,Winkel))



and it gives 56,50 for Volume O, and not for E. Please check

lmonincx
Creator II
Creator II
Author

Hi,

You are right the measure belongs to O and not E, thanks this realy helped me Big Smile

Kind regards,

Linda