Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
LRiley
Frequent Visitor

Complex 'What If' Analysis In Power BI Using DAX

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.

Picture1.jpg

 

 

 

 

 

 

 

If I make a selection from my first table as an example, I filtered it to the bottom row which is highlighted Yellow

NameFoodSalesvalue
Nick Miragliaketchup17

then I apply a What if statement  - this Person sold celery seeds instead of ketchup

NameFoodSalesvalue
Nick Miragliacelery seeds15

 

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.

 

Picture4.jpg

 

any help would be much appreciated it's driving me mental

 

Thanks in advance.

 

 

1 REPLY 1
MFelix
Super User
Super User

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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors