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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
joshua1990
Post Prodigy
Post Prodigy

Calculation based on Dimension and Fact Table

Hello everyone!

I would like to calculate the ratio between the actual Sales Value (fact) and the avg. Sales Value (Dimension).

We have a Sales table, that shows the actuals values for each item and each order

  • Date - Item - Value 

And we have a Dimension Table (Attibut List) that shows every dimension per code, also the avg. Sales Value that is updated once a year.

  • Item - Area - Costs - Avg. Value

 

Now I would like to calculate the ratio between the actual value and avg. Value.

Both tables are linked through the Item column.

 

Something like ?:

Ratio =
VAR Avg. Value = XXX
VAR Act. Value = XXX
RETURN
DIVIDE(Avg. Value, Act. Value)

 

 

1 REPLY 1
vivran22
Community Champion
Community Champion

Hello @joshua1990 ,

 

I have created a sample scenario:

 

Order table:

image.png

 

Product Table:

image.png

 

Both related on Product ID

 

image.png

 

Following is the measure:

Ratio = 
VAR _Actual = SUM(Orders[Order Quantity])
VAR _Avg = AVERAGE(Product2[Avg Orders])
VAR _Ratio = DIVIDE(_Actual,_Avg)
RETURN
_Ratio

 

In this, I have used Sum of Order Qty for Actual. You can choose to use any other aggregation.

 

Result:

 

image.png

 

Hope this is what you are looking for.

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.