<?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: Correct measure to use to mapping in Bridge table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3401454#M128445</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;-Sorry i need to explore. If you can suggest that measure,will be of great help. Thank u for your response&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 04:00:51 GMT</pubDate>
    <dc:creator>InsHunter</dc:creator>
    <dc:date>2023-08-28T04:00:51Z</dc:date>
    <item>
      <title>Correct measure to use to mapping in Bridge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3400138#M128347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Being a new bie to PBI Need help to arrive at correct measure to take in to account the bridging table .&lt;BR /&gt;Recreated my actual case with simple sample data.&lt;BR /&gt;Two fact tables,Three dim tables and a Bridge table.&lt;BR /&gt;Bridge table has n to 1 relationship as well as 1 to n relation ship between ID1 and ID2&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My current measure does not take in to account the relation ship while calculation as it still calculates the values for independent IDs&amp;nbsp; and not taking the ID&amp;nbsp; mapping to account. Expected correct values given in red after aggregation.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Sample PBIX file" href="https://drive.google.com/file/d/1NwijYKBDzng82mm6jXpthB8SkWAG1OJo/view?usp=drive_link" target="_self"&gt;https://drive.google.com/file/d/1NwijYKBDzng82mm6jXpthB8SkWAG1OJo/view?usp=drive_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enclosing the PBIX sample file.&lt;BR /&gt;Deeply appreciate your support.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2023 04:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3400138#M128347</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-08-26T04:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Correct measure to use to mapping in Bridge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3401151#M128422</link>
      <description>&lt;P&gt;Are you familiar with the TREATAS function?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 22:42:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3401151#M128422</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-08-27T22:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Correct measure to use to mapping in Bridge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3401454#M128445</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;-Sorry i need to explore. If you can suggest that measure,will be of great help. Thank u for your response&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 04:00:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3401454#M128445</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-08-28T04:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Correct measure to use to mapping in Bridge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3402655#M128513</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Request to confirm whether the below approach is right in current context&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Energy_per_cum(Rev1) = 
CALCULATE(

VAR Units =
CALCULATE(
    [Energy (Units)],
    TREATAS(
        SUMMARIZE(
            Bridge_Table,Bridge_Table[ID1]),
            Fact_Table1[ID1])
)

VAR Flow_cum  = 
CALCULATE(
    [Flow (Ltrs)],
    TREATAS(
        SUMMARIZE(
            Bridge_Table,Bridge_Table[ID2]),
            Fact_Table2[ID2]
    )
)

VAR Units_per_Cum = DIVIDE(Units,Flow_cum)

RETURN Units_per_Cum
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Aug 2023 16:48:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3402655#M128513</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-08-28T16:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Correct measure to use to mapping in Bridge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3402834#M128519</link>
      <description>&lt;P&gt;Yeah, sort of.&amp;nbsp; The good thing about TREATAS is that it works (better) without joins.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 18:34:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3402834#M128519</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-08-28T18:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Correct measure to use to mapping in Bridge table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3403256#M128576</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;-Thanks for your suggestion&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 00:40:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Correct-measure-to-use-to-mapping-in-Bridge-table/m-p/3403256#M128576</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-08-29T00:40:47Z</dc:date>
    </item>
  </channel>
</rss>

