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: 
Shahzad_Ahsan
Creator III
Creator III

How to Filter rows in Table in Qlik Sense

Hi Everyone

This is my table

NameStatus
AActive
BInactive
CActive
DActive
EInactive

I need the result like this

NameStatus
AActive
CActive
DActive

I need to show only active employee.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

If you want to do this in front end then try below.

Create a Table chart.

Add dimension as Name

Add expression as MaxString({<Status = {"Active"}>}Status)

If you want to do this in script, try below.

Load Name, Status from xyz where Status = 'Active';

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

9 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

If you want to do this in front end then try below.

Create a Table chart.

Add dimension as Name

Add expression as MaxString({<Status = {"Active"}>}Status)

If you want to do this in script, try below.

Load Name, Status from xyz where Status = 'Active';

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Shahzad_Ahsan
Creator III
Creator III
Author

Hi Kaushik

I want to do on the front end only.

As you said, I have created a dimension

But when adding to chart, its showing invalid dimension

Why??

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

You have to ass it as expression(Measure) and not as dimension.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Shahzad_Ahsan
Creator III
Creator III
Author

Thank You Kaushik

This is working

Shahzad_Ahsan
Creator III
Creator III
Author

After some research I found this is also working

If(Status='Active',Status,Null())

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Good to know that you went ahead and found solution by your own..

Keep learning...


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Josh-Head-of-BI-HGreg
Contributor II
Contributor II

It doesn't work. It only adds a dash - where condition is not met. The actual requirement is to show only the rows where condition of one column is met, exactly as shown in Shahzad's question.

Dan36
Contributor II
Contributor II

This is true - doesnt work

trigotrt
Contributor II
Contributor II

If the table shows only dimensions (without any aggregation) then you can "convert" the Status dimension to measure and use set analysis there:

Only({< Status = {'Active'} >} Status)

And keep the other column(s) as dimensions.

 

reference:

https://stackoverflow.com/questions/68358479/how-do-i-present-a-filtered-dashboard-table-in-qlik-sen...