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: 
Not applicable

Dimension(Column) missing in Pivot when there is Null

Hi All,

I have created a Pivot table using below data.

    

          IDNameEMP NameDepartmentCityStateAmount
1SumanSumanAHydAP1000
2KrishnaHariBBangKtk2000
3RamGopalCChennaiTN3000
4RakeshPuriDPuneMH4000
5GiriGiriEDelhiDel5000

I want to show data for "Department", "City" and "State" when both "Name" & "EMP Name" matches. It's working fine when i look at complete data.

But i am facing issue when i selected single record(where "Name" and "EMP Name" is different.

I want to see all the dimensions in the pivot table even it has null(Due to my condition).

Can anyone help me on this.

Thanks in Advance!!

1 Solution

Accepted Solutions
sunny_talwar

May be this

=if(Name=[EMP Name], State, Dual('-', 1))

Capture.PNG

View solution in original post

4 Replies
krishnacbe
Partner - Specialist III
Partner - Specialist III

In pivot table you wrote the conditional expression to hide the values. Instead of null values try with N/A or some other text values.

Pivot table nature is there is no value in Department column, so it hides city and State.

CarlosAMonroy
Creator III
Creator III

Hi Krishna

You can try adding values:

=IF(Name=[EMP Name], Department,'')

Thanks,

Carlos

sunny_talwar

May be this

=if(Name=[EMP Name], State, Dual('-', 1))

Capture.PNG

Not applicable
Author

Above Like Sunny reply

PFA

Try like this

if(Name=[EMP Name],sum(Amount))

and uncheck the   presenattiontab>supress zero values option