Forum Discussion
If function on dataset
- Anonymous3 years ago
rpinxt ,
If the two tables are related to each other this will work.Measure =Var a = MAX(Sheet1[Flow]) = "Reworked"var b = MAX(Sheet1[Amt LC]) < -50var c = a && bvar d = IF(c,MAX('Sheet1 (2)'[Quantity]), 0)return dRegards,
Ashfiya
--------------------------------------------------------------------------------------------------------------------------
Did I help you today? Please mark my post as a solution and hit the Kudos button.
Anonymous well not understanding your logic fully.
Tried this :
First of I do not understand why you reference Flow by using a MAX?
From table 'AVN Rework Flow' I want to check if the value is "Reworked"
And from table 'AVN Rework' I want to check if the amount is more/less then - 50
If these are both true then I want to show the quantity.
And if it is false I want to show 0 (quantity).
As you see now the true and false are all over the place.
Reworked shows false but also Other shows false.
And x shows true (guessing with the max you where thinking that Reworked would be the word highest in alphabet?)
rpinxt
Since it's a row-by-row operation in the measure, irrespective of any aggregation ( min or max ) it will take the value itself. Since you mentioned "Flow" and my "Quantity" come from 2 different tables. How are these tables related to each other? Do you have any primary column?