Forum Discussion
Need Help with DAX Measure
- 5 years ago
Hi, Anonymous
You can try:
measure = SWITCH ( TRUE (), DISTINCT ( Input[Customer] ) = BLANK () || DISTINCT ( Input[Customer] ) = DISTINCT ( ALL ( Input[Customer] ) ), SUM ( Input[Customer Mix] ), [Fx Customer Mix] )Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Power BI Community,
If All Values or No Values are selected from Customer Slicer, the above table should use Customer Mix Column, else it should use Fx Customer Mix Column.
Please help, thanks in advance.
Thank you
Kuber Kumar
Hi Anonymous
You use next measure:
measure =
SWITCH(TRUE,
ISFILTERED(table[customer]), [Fx Customer Mix], [Customer Mix])
- Anonymous5 years agoNot applicable
gabrielreversi Thank you for the quick response, I tried the measure, it is not giving the expcected result.
Please find both the images below
- gabrielreversi5 years agoFrequent Visitor
You will need dimension table dCustomer and build the measure using that dimension table.
This time using HASONVALUE.