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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
justalkak
Partner - Contributor III
Partner - Contributor III

Set analysis with p()

Hi,

I have the following case:

User_ID              User_ID_2                  Value

A                             A                                        1

-                               A                                       1

-                             A                                          1

I need to be able to sum(Value) and get result = 3 when a user filters User_ID = A. No option to change data model.

I remember doing similar thing with sth like sum({<User_ID = P({1}User_ID_2)>} Value), but I must be doing sth's wrong because it doesn't work or I am totally thinking this wrong..

Can you please advise how to get the result?

Thanks

 

Labels (1)
1 Solution

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

Hi,
Something like this should do the trick: sum({<User_ID,User_ID_2=p(User_ID)>}Value)

View solution in original post

2 Replies
vincent_ardiet_
Specialist
Specialist

Hi,
Something like this should do the trick: sum({<User_ID,User_ID_2=p(User_ID)>}Value)

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

May be Sum({<User_ID_2=P(User_ID), User_ID=>} Value)

Help users find answers! Don't forget to mark a solution that worked for you!