Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ranking -- if nothing to rank show Blank

hi ,

I am ranking products. When I choose certain filters -- there is nothing to rank -- in that case I see a garbled message ' bad min or max value in gauge'

how do i get rid of this and show something else?

thanks

7 Replies
pover
Luminary Alumni
Luminary Alumni

You might try using a if statement

if(isnull(rank(...)),0,rank(...))

Regards.

Not applicable
Author

would i need to use that in the definition of the example or in the min or max area of the gauge?

pover
Luminary Alumni
Luminary Alumni

Given the error message, I would say in the min or max area of the gauge becuase the range of those areas should never be null.

Regards.

Not applicable
Author

I have not used the rank function.

In the expression I am simply using the field value. and then in the gauge section I am using

SUM(expression value) for MAX. So I get little linear gauges with a staircase kinda effect.

In my case I suppose i do not need to use rank then?

pover
Luminary Alumni
Luminary Alumni

No. I misunderstood you.

Just try the following then:

if(isnull(SUM(expression value)),0,SUM(expression value))

Regards.

Not applicable
Author

The expression is right but it does not seem to work. As I am still getting the original 'error' when no values are there.

tia

pover
Luminary Alumni
Luminary Alumni

Please post the min and max expression of the gauge and the main expression to get a better idea or what is going on.