Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi all,
I'm looking for some help on an advanced/Complex What-If Calculation using Dax, which I currently do in Excel.
I have two tables the same within my Date Model which both tables have their own measures and are identical as below.
If I make a selection from my first table as an example, I filtered it to the bottom row which is highlighted Yellow
| Name | Food | Sales | value |
| Nick Miraglia | ketchup | 1 | 7 |
then I apply a What if statement - this Person sold celery seeds instead of ketchup
| Name | Food | Sales | value |
| Nick Miraglia | celery seeds | 1 | 5 |
Then I need this to be taken into consideration in my second table - removes the first selection and adds the values from the what-if statement as below for the desired Output.
any help would be much appreciated it's driving me mental
Thanks in advance.
Hi @LRiley ,
I'm not getting how you are applying the what if statement.
Are you abble to share a mockup data or sample of your PBIX file ans expected result. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsDon't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 37 | |
| 29 | |
| 24 |