Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
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.
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)
Hello @joshua1990 ,
I have created a sample scenario:
Order table:
Product Table:
Both related on Product ID
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:
Hope this is what you are looking for.
Cheers!
Vivek
Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |