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: 
sanp96
Contributor III
Contributor III

Help with Pivot tables

Hello everyone,

I am relatively new to Qlik and I am trying to work on a Pivot table.  I have a loaded table that has a column named Employee status which has 4 values viz. Active, terminated, retired and transferred.

I wanted to build a pivot table based on all employees that have a status as 'Active'.  Is there any way I can only pull those records into the pivot table?

Any help is appreciated.

Thanks!

Labels (1)
1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

In your expression's include this condition in your set analysis

Sum( {<[Employee Status] = {'Active'} >} <yourmeasure>)

 

That should do it for you.  Other options if it needs to get more complicated:

- create a secondary field with just the values you want to display and use that dimension in the chart, suppress null values.

- create a calculated dimension aggr(only ( {<[Employee Status] = {'Active'} >}   [Employee Status])  [Employee Status]) and suppress null values.

View solution in original post

1 Reply
stevejoyce
Specialist II
Specialist II

In your expression's include this condition in your set analysis

Sum( {<[Employee Status] = {'Active'} >} <yourmeasure>)

 

That should do it for you.  Other options if it needs to get more complicated:

- create a secondary field with just the values you want to display and use that dimension in the chart, suppress null values.

- create a calculated dimension aggr(only ( {<[Employee Status] = {'Active'} >}   [Employee Status])  [Employee Status]) and suppress null values.