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: 
neeraj_gupta
Contributor II
Contributor II

How to get colour background at last column No in Pivot

I am trying to get Last Column No Colour Red in Pivot

I Have written below script but i am not getting all correct No.

Please help me...

if(ColumnNo()=1,Green(),

if(ColumnNo()=Max({<GRADE>}aggr(nodistinct max({<GRADE>}distinct GRADE),State)),red()

))

4 Replies
Anil_Babu_Samineni

Neeraj Gupta wrote:

I am trying to get Last Column No Colour Red in Pivot

I Have written below script but i am not getting all correct No.

Does simply red() for BG color not working. Or u mean last row?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
neeraj_gupta
Contributor II
Contributor II
Author

last row

isingh30
Specialist
Specialist

Try like this -

=IF(Product = 'C' and Sales = 17, LightRed())

Screenshot.PNG

Let me know.

Thanks.

isingh30
Specialist
Specialist

Screen.PNG