<?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 How to change Relationship within one Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982502#M154413</link>
    <description>&lt;P&gt;I have dimension table dim_Account_Resource_CostItem (picture 1)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have fact table Budget (picture 2)&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;The realtionship between these tables (picture 3)&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;I have a Matrix report (picture 4)&lt;BR /&gt;Rows:&lt;BR /&gt;1.Resource&lt;BR /&gt;2.CostItem&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;The report uses measure Budget CP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Budget CP = 
    SWITCH(TRUE(),
    ISINSCOPE(dim_Account_Resource_CostItem[Account_ID]), BLANK(),
    SUM('Budget'[Value])
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is that for Resources "Laboratory", "Tractors" and "Water" it shows one value 600 summarized by CostItem not separated by Resources.&lt;BR /&gt;&lt;BR /&gt;It's understandable why.&lt;BR /&gt;The question is - how to change the measure Budget CP or how to make additional changes to get the result -&lt;BR /&gt;If Resource in ("CostOfMaterial", "CostOfServices") then use relationship by ItemCost, but if Resource in ("Laboratory", "Tractors", "Water") then use use relationship by Resource between dim_Account_Resource_CostItem table and Budget table?&lt;BR /&gt;&lt;BR /&gt;The result should be:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to pbix file 'Razosana_v3.0_MODEL - EXAMPLE.pbix' for download:&lt;/P&gt;&lt;P&gt;&lt;A title="pbix example" href="https://failiem.lv/u/u679acqvrr" target="_self"&gt;https://failiem.lv/u/u679acqvrr&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 08:33:04 GMT</pubDate>
    <dc:creator>JānisB</dc:creator>
    <dc:date>2024-06-10T08:33:04Z</dc:date>
    <item>
      <title>How to change Relationship within one Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982502#M154413</link>
      <description>&lt;P&gt;I have dimension table dim_Account_Resource_CostItem (picture 1)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have fact table Budget (picture 2)&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;The realtionship between these tables (picture 3)&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;I have a Matrix report (picture 4)&lt;BR /&gt;Rows:&lt;BR /&gt;1.Resource&lt;BR /&gt;2.CostItem&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;The report uses measure Budget CP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Budget CP = 
    SWITCH(TRUE(),
    ISINSCOPE(dim_Account_Resource_CostItem[Account_ID]), BLANK(),
    SUM('Budget'[Value])
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is that for Resources "Laboratory", "Tractors" and "Water" it shows one value 600 summarized by CostItem not separated by Resources.&lt;BR /&gt;&lt;BR /&gt;It's understandable why.&lt;BR /&gt;The question is - how to change the measure Budget CP or how to make additional changes to get the result -&lt;BR /&gt;If Resource in ("CostOfMaterial", "CostOfServices") then use relationship by ItemCost, but if Resource in ("Laboratory", "Tractors", "Water") then use use relationship by Resource between dim_Account_Resource_CostItem table and Budget table?&lt;BR /&gt;&lt;BR /&gt;The result should be:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to pbix file 'Razosana_v3.0_MODEL - EXAMPLE.pbix' for download:&lt;/P&gt;&lt;P&gt;&lt;A title="pbix example" href="https://failiem.lv/u/u679acqvrr" target="_self"&gt;https://failiem.lv/u/u679acqvrr&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:33:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982502#M154413</guid>
      <dc:creator>JānisB</dc:creator>
      <dc:date>2024-06-10T08:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Relationship within one Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982931#M154427</link>
      <description>&lt;P&gt;plz share sample data&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982931#M154427</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-06-10T08:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Relationship within one Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982973#M154429</link>
      <description>&lt;P&gt;The link to example pbix file in the main topic.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-change-Relationship-within-one-Measure/m-p/3982973#M154429</guid>
      <dc:creator>JānisB</dc:creator>
      <dc:date>2024-06-10T08:34:05Z</dc:date>
    </item>
  </channel>
</rss>

