Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
abc_18
Creator II
Creator II

Issue with set analysis expression

Hi,

I have a table chart in one of the dashboard, and data is as below:-

ProductCustomerInvoiceusage levelQty On Hand
xyz1Danielabcd0847Normal11
xyz1Danielabcd1454Normal11
xyz1Daniel---0

 

Now I have to colour code the measure column(Qty On Hand), based on the condition and codition is as below:-

I need to sum Qty on Hand for product / Customer and if the total is greater than the Level column

then it is Blue.Here the level  column is on the per  invoice line so we would need to AVG the value.

 

for ex:- if sum(Qty on Hand )> Level, it means  (2>1) so it should be blue

Plesae suggest, how to write expression for this.

Labels (1)
1 Reply
Vegar
MVP
MVP

Try this:

=if( sum( TOTAL <Customer> [Qty on Hand] ) > only(level), Blue(), Red())