Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER 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

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

Regards,
Kaushik
If reply is satisfactory, please "Like" the post.
If reply is solution, please mark as "Correct".

View solution in original post

7 Replies
kaushiknsolanki

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

Regards,
Kaushik
If reply is satisfactory, please "Like" the post.
If reply is solution, please mark as "Correct".

View solution in original post

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

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

Regards,

Kaushik Solanki

Regards,
Kaushik
If reply is satisfactory, please "Like" the post.
If reply is solution, please mark as "Correct".
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

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

Keep learning...


Regards,

Kaushik Solanki

Regards,
Kaushik
If reply is satisfactory, please "Like" the post.
If reply is solution, please mark as "Correct".
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.