Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
curiousfellow
Specialist
Specialist

conditional show (sub)column in pivot table

I have created a pivot table with column year and three subcolumns  sum(sales),count(articles), sum(credit_sales)

Now I want to display credit_sales only for the highest year.

Because I cannot find a way to hide the column credit_sales for previous years I did a conditional formatting where font color is white for previous years.

Only thing to solve now is how to conditional format the columnheader for credit_sales, could you help me with that ?

6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try something like =if(Year <> max(total Year), argb(0,0,0,0),0)


talk is cheap, supply exceeds demand
sunny_talwar

Do you have a sample you can share?

Anonymous
Not applicable

curiousfellow
Specialist
Specialist
Author

In those examples the subcolumn is shown or hidden for all years, also for the highest year

curiousfellow
Specialist
Specialist
Author

This works for the values but not for column headers

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Works for me.


talk is cheap, supply exceeds demand