Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Alternate row color +null

Hi ,

I have used the below logic to get the alternate colors.But i'm not get the colored null values.

Logic: =if(even(RowNo(TOTAL)),lightgray(),white())

Untitled.png

Thanks..

9 Replies
dsharmaqv
Creator III
Creator III

marcus_sommer

AFAIK NULL couldn't be colored - therefore you need to replace the NULL's with a real value either within the data or maybe by something like: rangesum(YourExpression, 0) as chart-expression.

- Marcus

avinashelite

Try this

=if(even(RowNo(TOTAL)),lightgray(),if(even(RowNo(TOTAL)) and expression=null(),lightgray(),white()))

nareshthavidishetty
Creator III
Creator III
Author

Hi,

It's not working.

Thanks..

sasikanth
Master
Master

Try this

IF(Even(RowNo(TOTAL)) OR Len(Even(RowNo(TOTAL)) )=0,Lightgray(),white())

avinashelite

Then convert the null values to 0 ,

if(len(Trim(Expression))>0,Expression,0)

NOTE:

Replace the Expression with your actual expression

avinashelite

if you are not able to achieve the same, provide the sample app

nareshthavidishetty
Creator III
Creator III
Author

Hi,

Still the nulls were not colored.

Thanks..

Anil_Babu_Samineni

Would you provide sample to look, Where this is not working. Even i've dump and i tried it covered to Null values

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