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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trouble in maintaining text color format on pivot table

The issue seems to be rather weird as the color formatting goes off for some of the text. Kindly see highlighted text on the screenshot below.

Textcolor.PNG

I am not typing any of this word so there will be no room for any typos.The script is based on the first column and there are no issue's in the first column.

=if(YERptGroupName='TOTAL INCOME'or YERptGroupName='SUB-TOTAL'

or YERptGroupName='TOTAL OPERATING EXPENSES' OR YERptGroupName='PROFIT BEFORE TAX (PBT)'

OR YERptGroupName='PROFIT AFTER TAX (PAT)', RGB(0,0,128))

5 Replies
sujeetsingh
Master III
Master III

what do you want to implement through this code

Not applicable
Author

I am basically trying to highlight the sub-totals and totals with color  from other rows on my pivot table. The code above simply explains, if the first column contains a row with the string SUB-TOTAL, change the text color to blue.

This works fine for the first column but does not work for the second column as you can see the screenshot above.

sujeetsingh
Master III
Master III

Got it but a little clearence needed....so here you are writting that

if (yertptgroupname='sss',red(),yelluw())

what ever the needed is .....

but please explain the condition you want the colors to be...

Not applicable
Author

The conditions are simple. I just need some specific words to be in bold and colored.
I have 2 pivot tables, one that shows values from account groups and the other with the account details.

See screenshot below.
First Pivot:

PnL1.PNG

Second Pivot (With details)

PnL2.PNG

If you can notice on the second screenshot the colors are missing one one of it. If click on the account name then it shows with color.

Anonymous
Not applicable
Author

Is the colour missing on the account row because there is a no data associated to that row ?

Can you add a new field to the datamodel table, alongside the 'P&L Group Name' field, to show whether bold or not, then just test for that in your background colour and text format expressions.

Jonathan