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

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.

Reply
Gjorge
Regular Visitor

Variance - Actual vs Plan in Matrix

When I add a new measure (in to the value field)  that provides the difference between actual and plan, I'm getting two additon al column

 

This is how i'm calculting variance

Variance = CALCULATE(sum(PB01[Sales]),PB01[Scenario]="Actual")- CALCULATE(sum(PB01[Sales]),PB01[Scenario]="Plan")

 

This is what i'm getting

 

Customer  Actual variance Plan  Variance

Abc Inc         7             3           10          3

 

 

The dataset has the following colums

Customer

Sale_Amount

Scenario : Actual, Plan 

 

 

 

 

1 ACCEPTED SOLUTION
austinsense
Impactful Individual
Impactful Individual

Simple answer, create three measures - one for actual, one for plan, one for variance

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

View solution in original post

7 REPLIES 7
austinsense
Impactful Individual
Impactful Individual

Are you putting the scenario column on the report as well?

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

Yes.  This is the setting for the matrix;

 

Row : Customers

Column: Scenario

Value: Sales

 

I tried to add new calculated field ( variance) to the Value and got two additional columns

 

austinsense
Impactful Individual
Impactful Individual

Cool, you have two values for each scenario, two scenarios * two values = four columns

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

 

Here goes what I'm getting:

 

Customer  Actual variance Plan  Variance

Abc Inc         7             3           10          3

 

 

..But this what I need

 

Customer  Actual Plan  Variance

Abc Inc         7        10          3

austinsense
Impactful Individual
Impactful Individual

Simple answer, create three measures - one for actual, one for plan, one for variance

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

Hi I have a similar problem

 

I am getting

 

                           Qtr1                 |            Qtr2

Product  |      total sales | variance |   total sales | variance

 

I need

 

                           Qtr1  |      Qtr2      |

Product  |      total sales |   total sales | variance

 

can you help ?

Thank Austin .. Much appreciated your help

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.