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 ,
I am new to Power BI and need some help with the below case. Appreciate if someone can help with the DAX formula for the case. I am not sure IF of SWITCH statement works best for the below case.
Please Note: I will have "AAA" and "BBB" as part of a visual filter too. Thank You.
(CASE
WHEN Field1 = "AAA" then "RETAIL * GROWTH FACTOR" AND "ONLINE * GROWTH FACTOR"
ELSE
WHEN Field1 = "BBB" then "RETAIL" AND "ONLINE"
END)
Solved! Go to Solution.
Hi @Rubal ,
It seems that you need to chang your query to dax in power bi.
Based on your logic, we could create the dax like below.
= IF ( Field1 = "AAA", "RETAIL * GROWTH FACTOR" && "ONLINE * GROWTH FACTOR", IF ( Field1 = "BBB", "RETAIL" && "ONLINE" ) )
However, more details about your scenario will be more helpful.
If it is convenient, could you share your data sample which could reproduce your scenario so that we could help further on it?
Best Regards,
Cherry
yes, I have. Need the formula example for my specific case though
Hi @Rubal ,
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share some data sample and your desired output.
Best Reagards,
Cherry
Hi @Rubal ,
It seems that you need to chang your query to dax in power bi.
Based on your logic, we could create the dax like below.
= IF ( Field1 = "AAA", "RETAIL * GROWTH FACTOR" && "ONLINE * GROWTH FACTOR", IF ( Field1 = "BBB", "RETAIL" && "ONLINE" ) )
However, more details about your scenario will be more helpful.
If it is convenient, could you share your data sample which could reproduce your scenario so that we could help further on it?
Best Regards,
Cherry
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 |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |