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!
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
234 | |
48 | |
47 | |
44 | |
42 |
User | Count |
---|---|
297 | |
211 | |
82 | |
75 | |
64 |