Forum Discussion
if or a switch statement
- 7 years ago
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
Hi Rubal
Have you read the documentations?
Cheers!
A
- Rubal7 years ago
Helper II
yes, I have. Need the formula example for my specific case though
- v-piga-msft7 years ago
Resident Rockstar
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
- v-piga-msft7 years ago
Resident Rockstar
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