Forum Discussion
rpinxt
3 years agoSolution Sage
If function on dataset
I have this data set: In this "Flow" comes from an excel file and the rest from 1 other data source. Now I want to do an excel like funtion like: If 'Flow' = "Reworked" then TRUE -...
- 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
3 years agoNot applicable
rpinxt ,
Correct me if I am wrong, your condition is
IF
flow = Reworked AND Amt LC > -50
result = Show Quantity Value
Else
result = 0 (false )
rpinxt
3 years agoSolution Sage
I was able to solve my problem 😁
I merged the source with the excel file based on 'FlowKey'.
Now I had everything in 1 table. Then with calculated columns it was easy(er) to get the amounts that I wanted.
Thanks for your help