Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
hi team,please help me on this.
Invoice ID | Invoice | QTY | Received | 3way/No | Final Result |
123 | 1 | 1 | 1 | 3way | no |
123 | 0 | 1 | 0 | No | no |
123 | 0 | 0 | 0 | 3way | no |
124 | 0 | 0 | 0 | 3way | 3way |
124 | 0 | 0 | 0 | 3way | 3way |
124 | 1 | 1 | 1 | 3way | 3way |
Note : i need final Result column as the output.
Condition : if the invoice ID = 123 and any one of that ID row exist in 3way/No = No then entire rows of that ID should "no" otherwise 3way.
please help me on this.TIA.
Solved! Go to Solution.
Okay,
Final Result =
VAR c =
COUNTROWS (
FILTER (
'Table',
EARLIER ( 'Table'[Invoice ID] ) = 'Table'[Invoice ID]
&& 'Table'[3way/No] = "No"
)
)
RETURN
IF ( c = 1, "no", "3way" )
Next time please make sure to give all of your conditions in your initial request so that we can get the full extent of what you're trying to do.
Proud to be a Super User!
Hey @aditya369 ,
Try this
Final Result = IF('Table'[Invoice ID]=123,if('Table'[3way/No] = "No","no","no"),"3way")
Proud to be a Super User!
Hi,thanks for the response. i have too many rows with different id's so i need solution in dynamically not in static.can you please modify the code.
Okay,
Final Result =
VAR c =
COUNTROWS (
FILTER (
'Table',
EARLIER ( 'Table'[Invoice ID] ) = 'Table'[Invoice ID]
&& 'Table'[3way/No] = "No"
)
)
RETURN
IF ( c = 1, "no", "3way" )
Next time please make sure to give all of your conditions in your initial request so that we can get the full extent of what you're trying to do.
Proud to be a Super User!
Thank you so much watsky for the quick response and thanks for the support.
It's my pleasure! I'm happy I could find a solution for you!
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |