Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

employee count for active

Dear All

I have employee master with active and in-active flag  how to show only active employee's in straight table

Thanks in Advance

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
Not applicable

Hi,

Hope it will work

RawData:LOAD * INLINE [
Employee,Flag
v1, Active
v2, IN-Active
v3, Active
v4, IN-Active
v5, Active

]
;

In Straight Table Take Dimension Employee , Flag

Expression = Sum({<Flag={'Active'}>}1)

Then Hide Expression in Presentation Tab

View solution in original post

2 Replies
m_woolf
Master II
Master II

You can use set analysis in the expression, something like this:

sum({<Flag = {'A'}>}Amt)

You can also use a calculated dimension:

=if(Flag = 'A',Employee)

Not applicable

Hi,

Hope it will work

RawData:LOAD * INLINE [
Employee,Flag
v1, Active
v2, IN-Active
v3, Active
v4, IN-Active
v5, Active

]
;

In Straight Table Take Dimension Employee , Flag

Expression = Sum({<Flag={'Active'}>}1)

Then Hide Expression in Presentation Tab