Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Row Coloring for Missing Values

Hi,

As you can see in the attached app, each row of the table will take a color based on this expression in its background property:

if(even(aggr(NODISTINCT rowno(), PAIR)),rgb(210,210,210),white())


which is to highlight each pair of rows with alternating white and gray based on PAIR values.


This works fine until there is a missing value in one of the expressions in the table. For example,  Customer F, PAIR 2, subcategory 4 has no imported data for Measure 1. So qlikview is not colorizing the subcategory 4 row with gray (as measure does not exist). However, this row has data for Measure 2.


So does anyone know of a trick to make it paint that row gray as it should.

1 Solution

Accepted Solutions
kuba_michalik
Partner - Specialist
Partner - Specialist

If the PAIR order is crucial and it's not just about simple banding (for example, you make selections for subcategory so only one row per some PAIRs is visible), then use this:

If(Even(Only(TOTAL<PAIR> Aggr(NODISTINCT RowNo(), PAIR))),RGB(210,210,210),White())

as the color expression.

I find it a rather unusual use of Aggr. Thanks for the learning opportunity!

View solution in original post

2 Replies
kuba_michalik
Partner - Specialist
Partner - Specialist

If the PAIR order is crucial and it's not just about simple banding (for example, you make selections for subcategory so only one row per some PAIRs is visible), then use this:

If(Even(Only(TOTAL<PAIR> Aggr(NODISTINCT RowNo(), PAIR))),RGB(210,210,210),White())

as the color expression.

I find it a rather unusual use of Aggr. Thanks for the learning opportunity!

Not applicable
Author

Thank you.