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

background color and text color

Hi,

When you expand an expression and  put a background color och textcolor to it, it there anyway you can avoid the headline to be colored aswell?

Thanks!

6 Replies
Anonymous
Not applicable
Author

Use the function RowNo() in the expression ... the header has no RowNo, the rows itself do have a rownumber > 0!!

rgrds,

Anita

Anonymous
Not applicable
Author

Good idea! But ihave a pivot table and when they're collapsed none of the rows has a rowno...

Anonymous
Not applicable
Author

e.g.:

if( rowno() = 0 or isnull(rownor()), HEADERCOLOR )

or

if( rowno() > 0, COLORROWS)

Anonymous
Not applicable
Author

True ... that's why you should do the check with:

rowno() = 0

or

isnull(rowno())

grand total rows have a rowno() of null()

and pivot tables subtotal rows have a rowno() of 0

so check both values to be sure to got the correct interpretation

Anonymous
Not applicable
Author

i added an expression to my tabel with just "rowno()" to check and first row after the healine has a row number of "0" så thats a problem. The oter rows (collapsed dimensions) har a "-" for row number.

Anonymous
Not applicable
Author

rob wunderlich has also a sample of how the rowno() works in his cookbook ... maybe good to look at this

http://community.qlik.com/thread/29413

cookbook\layout\alternatetotalformat.qvw

rgrds,

Anita