Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate

Hi,

   Everyone, I got a question. the script is as follows:

t:

LOAD * INLINE [

     Level2, Sales

    B, 3

    A, 7

    B, 4

    A, 2

];

LOAD * INLINE [

    Level1

    A

    B

    C

];

Now I have a question, I choose Level1='A', how to make the chart like bellow:

That means Level2 only appear the value where Level2 = Level1

So, how could I change the expression?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try:

sum({<Level2=P(Level1)>}Sales)

View solution in original post

4 Replies
tresesco
MVP
MVP

Try:

sum({<Level2={"=Level2=Level1"}>}Sales)

Not applicable
Author

for further, if i choose Level1={'A','B'},then error is coming

tresesco
MVP
MVP

Try:

sum({<Level2=P(Level1)>}Sales)

Digvijay_Singh

may be like this -

Sum({<Level1=,Level2={"=Level2=Level1"}>}Sales)