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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
MVP
MVP

May be remove 1 within the P()

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

swuehl
Champion III
Champion III

Try the intersection operator *

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

swuehl
Champion III
Champion III

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
MVP
MVP

ok