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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
fpennisi17
Helper III
Helper III

Measure including data from multiple table

Hi everyone,

I'm using power PowerBI to evaluate the results of multiple forecast providers for a specific variable.

The model I created has the following tables:

- Fact table of the measured variable, with hourly timestamp, the asset on which the variable is measured and the value

- Fact table of the different forecast provider, with the hourly timestamp, the asset on which the variable is measured, the provider name and the forecasted value

- Time dimension hierarchy (tables with hour, date, month, etc)

- Asset dimension, with asset and related properties

- Forecast provider dimension, with the provider properties

 

I want to create a measure that calculates the AverageX of the difference between the forecast and measured value and divide that amount by a property of the asset.

 

The solution I found so far is to join, in the forecast fact table, the measured value by hour and asset and the asset property via power query, but I don't like this solution and I would like one that uses only DAX, while ensuring good performance.

 

I tried to use the CALCULATE function in conjuction with the RELATED one, but I wasn't able to find a valid solution.

Any suggestion would be strongly appreciated.

 

Thank you

1 REPLY 1
fpennisi17
Helper III
Helper III

Could anyone help?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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