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: 
fionna51
Creator
Creator

How can I manage selection (default selection) in straight table?


Hi all,

I created a straight table, the dimension is calculated, which is something like: =Pick(Match(Program, 'P1', 'P2', 'P3'), [P1 Name], [P2 ID], [P3 Org]) . Everything looks fine. For example, when I make selection Program='P1', the table will show all P1 names together with all related aggregation values. My fact table for this calculated dimension part showed below.

ProgramP1 nameP2 IDP3 Org
P1name1ID1O1
P1name2ID2
P1name1ID3O1
P2name3ID3
P2name3ID2
P3name3ID1O2

So, in my straight table, when Program='P1', the calculated dimension should show name1 and name 2. Program=P2, show ID2 and ID 3, etc.

It is fine when just look at the straight table, but when I click to select name1, I just want to see name1 aggregated information, which should only show me one row. however, I got wrong result, and the current selection section showed, I selected P1 name    name1, P2 ID  ID1 and P3 Org  O1 at the same time. I think it makes sense since I have 3 columns used for this calculated dimension. If I create a list box just show P1 name field and make selection, the straight table will display correctly.

Is there anyway I can handle the selection?

3 Replies
Anonymous
Not applicable

Hi Wei,

Could you please upload an example of your table.

Regards,

Karla

hariprasadqv
Creator III
Creator III

Hi,

Aggr and distinct functions may help you.

fionna51
Creator
Creator
Author

Thanks. I will find time to create an example.