Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
fahimazizi60
Contributor
Contributor

using If condition for showing status of a Region by sales.

I want show the Good,Bad,Fair from by comparing the Region wise sales with the minimum and maximum value in table 1.

i am using this expression  but its not working.

=if(Classification ='Fair' and Aggr(Sum(Sales),[Region ID])>Min and Aggr(Sum(Sales),[Region ID])<Max, 'Fair',
if(Classification ='Bad' and Aggr(Sum(Sales),[Region ID])>Min and Aggr(Sum(Sales),[Region ID])<Max, 'Bad',
if(Classification ='Good' and Aggr(Sum(Sales),[Region ID])>Min and Aggr(Sum(Sales),[Region ID])<Max, 'Good',0)))

Labels (3)
1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand