<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Measure including data from multiple table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-including-data-from-multiple-table/m-p/3081552#M107425</link>
    <description>&lt;P&gt;Could anyone help?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 14:06:38 GMT</pubDate>
    <dc:creator>fpennisi17</dc:creator>
    <dc:date>2023-02-15T14:06:38Z</dc:date>
    <item>
      <title>Measure including data from multiple table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-including-data-from-multiple-table/m-p/3069199#M106417</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm using power PowerBI to evaluate the results of multiple forecast providers for a specific variable.&lt;/P&gt;&lt;P&gt;The model I created has the following tables:&lt;/P&gt;&lt;P&gt;- Fact table of the measured variable, with hourly timestamp, the asset on which the variable is measured and the value&lt;/P&gt;&lt;P&gt;- 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&lt;/P&gt;&lt;P&gt;- Time dimension hierarchy (tables with hour, date, month, etc)&lt;/P&gt;&lt;P&gt;- Asset dimension, with asset and related properties&lt;/P&gt;&lt;P&gt;- Forecast provider dimension, with the provider properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the CALCULATE function in conjuction with the RELATED one, but I wasn't able to find a valid solution.&lt;/P&gt;&lt;P&gt;Any suggestion would be strongly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:08:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-including-data-from-multiple-table/m-p/3069199#M106417</guid>
      <dc:creator>fpennisi17</dc:creator>
      <dc:date>2023-02-08T14:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure including data from multiple table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-including-data-from-multiple-table/m-p/3081552#M107425</link>
      <description>&lt;P&gt;Could anyone help?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:06:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-including-data-from-multiple-table/m-p/3081552#M107425</guid>
      <dc:creator>fpennisi17</dc:creator>
      <dc:date>2023-02-15T14:06:38Z</dc:date>
    </item>
  </channel>
</rss>

