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
Anonymous
Not applicable

Variance Analysis

I have below "values" table:

 

Account

ClientService LineOps GeoYearPeriodScenarioData SourceCurrencyMeasureManagerRVP[Values]CORGDR TotalCOR ValueRevenueRevenue ValueSGASGA Value
1000100FinanceOshkosh20201BudgetInputUSDValueABSDGS400 Revenue0Revenue400 0
1000200AccountingRegina20202BudgetInputUSDValueABSDGS400 Revenue0Revenue400 0
1000100ITOshkosh20203BudgetInputUSDValueABSDGS400 Revenue0Revenue400 0
2000200FinanceRegina20204BudgetInputUSDValueABSDGS200CORCOR200 0 0
2000100AccountingOshkosh20205BudgetInputUSDValueABSDGS100CORCOR100 0 0
2000200ITRegina20206BudgetInputUSDValueABSDGS200CORCOR200 0 0
3000100FinanceOshkosh20207BudgetInputUSDValueABSDGS100 SGA0 0SGA100
3000200AccountingRegina20208BudgetInputUSDValueABSDGS200 SGA0 0SGA200
3000100ITOshkosh20209BudgetInputUSDValueABSDGS100 SGA0 0SGA100
1000200MarketingRegina202010BudgetInputUSDValueABSDGS200 Revenue0Revenue200 0
1000100FinanceOshkosh20201ActualInputUSDValueABSDGS500 Revenue0Revenue500 0
1000200AccountingRegina20202ActualInputUSDValueABSDGS500 Revenue0Revenue500 0
1000100ITOshkosh20203ActualInputUSDValueABSDGS300 Revenue0Revenue300 0
2000200FinanceRegina20204ActualInputUSDValueABSDGS200CORCOR200 0 0
2000100AccountingOshkosh20205ActualInputUSDValueABSDGS200CORCOR200 0 0
2000200ITRegina20206ActualInputUSDValueABSDGS100CORCOR100 0 0
3000100FinanceOshkosh20207ActualInputUSDValueABSDGS200 SGA0 0SGA200
3000200AccountingRegina20208ActualInputUSDValueABSDGS100 SGA0 0SGA100
3000100ITOshkosh20209ActualInputUSDValueABSDGS200 SGA0 0SGA200
1000200MarketingRegina202010ActualInputUSDValueABSDGS100 Revenue0Revenue100 0

 

I created the following measures:

Revenue = sum('values'[Revenue Value])
SGA = SUM('values'[SGA Value])
COR = sum('values'[COR Value])
Blank EBITDA = calculate([EBITDA], filter('values',[EBITDA]<>0))
 
Variance = calculate([EBITDA], filter('values',[EBITDA]<>0),filter('values','values'[Scenario] = "Actual")) - calculate([EBITDA], filter('values',[EBITDA]<>0),filter('values','values'[Scenario] = "Budget"))
 
I am trying to show Actual, Budget, and the Variance (Actual-Budget) in one matrix table visualization. 
I get the below tables when I use Blank Ebitda and Variance:
 
 
 

Power BI.PNG

 

How can I build a table that would show EBITDA as?:

 

Power BI 2.PNG

 

 

 

 

 

 

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous I think it should be something like this, add the following measure and put in matrix visual.

 

Base Sum = SUM ( Table[Amount] )

Actual = CALCULATE ( [Base Sum], Table[Scenario] = "Actual" )

Budget = CALCULATE ( [Base Sum], Table[Scenario] = "Budget" )

Variance = [Actual] - [Budget]

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k , thank you for the reply.

I modified your solution to get the answer.

I am looking for EBITDA number which is Revenue - Expense (sum of COR and SGA) .

 

My equation:

Actual EBITDA = calculate([EBITDA], filter('values',[EBITDA]<>0),filter('values','values'[Scenario] = "Actual"))
Budget EBITDA = calculate([EBITDA], filter('values',[EBITDA]<>0),filter('values','values'[Scenario] = "Budget"))
EBITDA Variance = [Actual EBITDA]-[Budget EBITDA]
 
This gets me the result. The only problem is that if I have to estimate the variance for Revenue,COR and SGA separately I would have to write 9 more equations. Is there an easy way to get all the variance analysis with minimum coding?

@Anonymous 

 

You may try ISINSCOPE to change the total.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.