Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Evaluating "sets" in the context of a dimension (Set analysis priblem?)

Hi,

i've a problem with set analysis. I want calculate sum values about a PDV (that i select with variable) for only those Articoli that are in common with the PDV present in row: on the left there is tha data base, on top we have the variable where select the PDV target, on center we have the graph were i want the calculationthx for support

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

i've already read that post. But we resolve like this:

sum(aggr(nodistinct sum({$<PDV={$(v_PDV)}>}Prezzo), Articolo))

thx anyway

View solution in original post

3 Replies
Not applicable
Author

i resolve in a static way:

if(PDV='a',sum(total {$<PDV = {$(=v_PDV)},Articolo = p({$<PDV={'a'}>} Articolo)>} Prezzo),

    if(PDV='b',sum(total {$<PDV = {$(=v_PDV)},Articolo = p({$<PDV={'b'}>} Articolo)>} Prezzo),

        if(PDV='c',sum(total {$<PDV = {$(=v_PDV)},Articolo = p({$<PDV={'c'}>} Articolo)>} Prezzo),

            if(PDV='d',sum(total {$<PDV = {$(=v_PDV)},Articolo = p({$<PDV={'d'}>} Articolo)>} Prezzo)))))

but i want something dynamic, something like this:

sum(total {$<PDV = {$(=v_PDV)},Articolo = p({$<PDV={???}>} Articolo)>} Prezzo)

where ??? i want the value of PDV corresponding the row chart

Not applicable
Author

Hi,

i've already read that post. But we resolve like this:

sum(aggr(nodistinct sum({$<PDV={$(v_PDV)}>}Prezzo), Articolo))

thx anyway