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

Dimensions Do Not Work As Expected When Graph Has 'P' Possible Data

i,

I have a graph using expressions with the 'P' function but when I try to filter one of the dimensions it does not work.

I'll send a small application in attach that if you select 1 value in the LOV should filter and show in the graph only the line with this value.

Additionally i also intended that only the available values (using the same "P" function) in the LOV? it's possible ?

Thank you in advance for your help.

Ricardo

1 Solution

Accepted Solutions
swuehl
MVP
MVP

And as list box field expression:

=Aggr( Only({1<FactKey={"R1"},Cod = P({1<FactKey={"R2"}>} Cod)>} Cod), Cod)

View solution in original post

5 Replies
sunny_talwar

May be remove 1 within the P()

=Sum({$<FactKey={"R1"}, Cod = P({<FactKey={"R2"}>} Cod)>} Value)

swuehl
MVP
MVP

Try the intersection operator *

=sum( {$<FactKey={"R1"},Cod *= P({1<FactKey={"R2"}>} Cod)>} Value )

swuehl
MVP
MVP

And as list box field expression:

=Aggr( Only({1<FactKey={"R1"},Cod = P({1<FactKey={"R2"}>} Cod)>} Cod), Cod)

Anonymous
Not applicable
Author

Both (3) the answers are correct, but Stefan Wühl as answered the 2 I give him the points of the correct answer.

Thank you very much.

sunny_talwar

ok