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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

PowerBI Olap Cube Variance Column Matrix

Hi everyone,

Very new to PowerBI. I know I could do this all in excel in a second and schedule refreshes via powerautomate however I want the challenge of building powerBI dashboards. I want to use a matrix table to show actual and budget, that much is easy, however I want a third column showing variance between these two. My data connection is an OLAP cube. This is my current set-up for the matrix visual:

afitz_0-1704774303552.png afitz_2-1704774404465.png

 

and this is my scenario table:

afitz_1-1704774336512.png

I thought I could do a new measure and do a sum is actual - sum is bud but it won't display my visual. Can anyone provide some help or a good resource for me to research?

3 REPLIES 3
DataInsights
Super User
Super User

@Anonymous,

 

Try this measure. Alternatively, you could create base measures (one for Actual, and one for Budget), and use them in the Variance measure.

 

Variance =
VAR vActual =
    CALCULATE ( [Amt $], Scenario[Scenario Name] = "Actual" )
VAR vBudget =
    CALCULATE ( [Amt $], Scenario[Scenario Name] = "Budget" )
VAR vResult = vActual - vBudget
RETURN
    vResult

 





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

Proud to be a Super User!




Anonymous
Not applicable

Hi there,

 

Apologies for the delay, i was on vacation and thank you for taking the time to get back to me. I have successfully created the measure, however when I add it into my visual this is the result:

afitz_0-1705519535718.png

I would like 1 column for the account product, one for the Actual Amt $ and one for the budget amt $ and then the variance column at the end. Any advice?

@Anonymous,

 

You may need to use MDX according to the article below.

 

https://learn.microsoft.com/en-us/system-center/scsm/olap-cubes-overview?view=sc-sm-2022 

 

"After the raw data has been processed in an OLAP cube, users can perform more complex calculations and queries using multidimensional expressions (MDX) to define their own measure expressions or calculated members."





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.