Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
sspawar88
Creator II
Creator II

How to Exclude range in If Condition

Hi Everyone,

I am creating calculated dimension in stacked Bar Chart.

Each bar in Chart gives 100% in which each stack has belongs to some defined ranges for colour.

Calculative dimension are as below:

if(param_name='TEMP' and (param_value)<='-1' and (param_value)>= '-10', 'Red',

if(param_name='TEMP' and (param_value)<= '-10.1' and (param_value)>='-13.9', 'Yellow',

if(param_name='TEMP' and (param_value)<= '-14' and (param_value)>='-17.9', 'Amber',

if(param_name='TEMP' and (param_value)<= '-20','Green')))

Problem is this If condition also consider below range:

param_value<=-18 & param value>=-19.9

it has to be excluded.

How to achieve this?

Thanks in Advance.

13 Replies
sspawar88
Creator II
Creator II
Author

we are trying to exclude values from -18 to -19.9

sasiparupudi1
Master III
Master III

=if(param_name='TEMP' and (param_value)<='-1' and (param_value)>= '-10', 'Red',

if(param_name='TEMP' and (param_value)<= '-10.1' and (param_value)>='-13.9', 'Yellow',

if(param_name='TEMP' and (param_value)<= '-14' and (param_value)>='-17.9', 'Amber',

if(param_name='TEMP' and (param_value<=-20 and (not (param_value> -18  and param_value< 19.9))),'Green'))))

sspawar88
Creator II
Creator II
Author

No..Its Not working. its still considering range which will exclude from showing.

have to try out some differerent way.

Not applicable

Please upload a sample QVW with the issue for quick resolution.

Regards,

KKR