Forum Discussion
Anonymous
7 years agoNot applicable
Logic help needed, conditional IF
Hello all gurus, I am new to PowerBI and need some help! I have a database like below: I need some help to figure out a DAX for this logic: if a customer_id was identified as an "NSU Cus...
- 7 years ago
Hi Anonymous ,
Try this one as a measure, please.
Measure = IF ( "NSU Customer" IN CALCULATETABLE ( VALUES ( 'table1'[NSU plan group] ), ALLEXCEPT ( 'table1', 'table1'[customer_id] ) ), "Customer", "Not Customer" )
Best Regards,
v-jiascu-msft
7 years agoMicrosoft Employee
Hi Anonymous ,
Try this one as a measure, please.
Measure = IF ( "NSU Customer" IN CALCULATETABLE ( VALUES ( 'table1'[NSU plan group] ), ALLEXCEPT ( 'table1', 'table1'[customer_id] ) ), "Customer", "Not Customer" )
Best Regards,
Anonymous
7 years agoNot applicable
Thank you v-jiascu-msft, it works! Much appreciated your help!