- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

DAX - Switch Function with What if Scenarios
Hi! I am working on a report, which I am creating multiple what if scenarios.
In that, I am creating 3 what if Scenario.
1A - Whole Number
2B - Whole Number
2C - Fixed Decimal - Conversion Rate - 2B & 2C are to be expected to work together.
Now, If I slice 1A as 500 - The Result should show as 500
If I want to use the combo of 2B and 2C (2B = 500, 2C = 10%) it should overwrite the 1A result of 500 and show 50.
For this I am using Switch Function,
-------------------------------------------------------------------
If I slice 2A as 100, I am getting 100 as result. But the Expected result is 0 as the 2B is 0%. The 2B is not playing part in it.
Please help me for the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @jayasurya_prud ,
If I slice 2A as 100, I am getting 100 as result. But the Expected result is 0 as the 2B is 0%. The 2B is not playing part in it.
I couldn't find 2A in your screenshot and I think 2C should be in percentage data type and 2B should be in number type.
So I guess Measure''[2a_2b] ' may be 2C*2B.
Measure =
IF(ISFILTERED('2B'[2B])||ISFILTERED('2C'[2C]),[2B Value] * [2C Value] ,[1A Value])+0
If this reply still couldn't help you solve your issue, please show me more details. You can share a sample file with me and show me a screenshot with the result you want.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
11-06-2024 08:30 PM | |||
11-14-2024 07:09 PM | |||
06-25-2024 01:26 AM | |||
12-16-2024 06:20 AM | |||
07-12-2024 11:37 PM |
User | Count |
---|---|
114 | |
90 | |
86 | |
54 | |
46 |