Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
LDR
Creator II
Creator II

How to filter table by some column of their columns (like Excel)

Hi all,

First at all thanks for your time.

Ok, let's go ...

Let me show you the data set I'm playing with:

1- Script Editor:

[Steps]:
LOAD * INLINE
[
ID,Step,Quantity
1,STEP1,1
1,STEP2,1
1,STEP3,1
2,STEP2,1
2,STEP3,1
3,STEP3,1
](delimiter is ',');

2-  My Goal: My goal is to put this data in one table and show for each ID the steps it passed. For doing that I created several measure master items (one for each step):

LDR_0-1604312951678.png  

STEP1 --> SUM({<[Step]={STEP1}>}[Quantity])

STEP2 --> SUM({<[Step]={STEP2}>}[Quantity])

STEP3 --> SUM({<[Step]={STEP3}>}[Quantity])

3- Current Result:

4- Desired Result: I'd like to show all steps quantities when STEP1, STEP2 and STEP3 are  = 1. I mean, the possibility to show IDs which have passed for each STEP. In Excel it would be easy to apply some filter to columns "STEP1 to 3" and show all rows where STEP1 to 3 are equal to 1 but with QLIK SENSE I can't apply this kind of filters using measures.

I know, I can do it via SQL applying a LEFT JOIN approach but I'd like to know if it's possible to do it in a different way.

Thanks

 

 

4 Replies
Kushal_Chawda

@LDR  try below expression

=sum({<ID={"=count(distinct Step) = count(distinct total Step)"}>}Quantity)
LDR
Creator II
Creator II
Author

Hi @Kushal_Chawda 

Ok, with your formula I can detect which IDs have passed for all steps but, how can I apply this filter to the table and show all STEPs for  these IDs?

Thanks

Kushal_Chawda

@LDR  you can add Step as dimension so you will get all Steps as well

Vegar
MVP
MVP

@LDR I think you are asking for something related to what Qlik refers to (in QlikView)  as "AND-mode".

Maybe this post on Generating AND, OR , NOT selection logic in Qlik Sense can be of help to you.