<?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 not working as expected in hierarchy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040543#M104271</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to create a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AccuracyABS = 
SUMX(
    TableName,
    ABS(TableName[Sold units] - TableName[demand forecast])
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 14:27:23 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-01-24T14:27:23Z</dc:date>
    <item>
      <title>Measure not working as expected in hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040492#M104262</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following example data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Model&lt;/TD&gt;&lt;TD&gt;Submodel&lt;/TD&gt;&lt;TD&gt;Sold units&lt;/TD&gt;&lt;TD&gt;demand forecast&lt;/TD&gt;&lt;TD&gt;ABS(sold units-demand)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;x1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;x2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;x3&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;x4&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like now to sum the different abs values (0+1+1+2) in model granularity, but instead, when applying to a Matrix, it calculates the abs as the following:&lt;/P&gt;&lt;P&gt;(3+4+15+6) - (2+7+4+4) = 28-17 =11&lt;/P&gt;&lt;P&gt;While I would like it to sum it like: (1+3+11+2) = 17&lt;/P&gt;&lt;P&gt;So the table would be:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Model&lt;/TD&gt;&lt;TD&gt;Sold units&lt;/TD&gt;&lt;TD&gt;Demand Forecast&lt;/TD&gt;&lt;TD&gt;sum of Abs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying everything and searching around. What is the proper way of doing this, and understanding it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:14:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040492#M104262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-24T14:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not working as expected in hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040518#M104268</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, see this:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-Roll/m-p/411443#M150" target="_blank"&gt;Matrix Measure Total Triple Threat Rock &amp;amp; Roll - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:22:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040518#M104268</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-24T14:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not working as expected in hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040543#M104271</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to create a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AccuracyABS = 
SUMX(
    TableName,
    ABS(TableName[Sold units] - TableName[demand forecast])
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040543#M104271</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-24T14:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not working as expected in hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040560#M104273</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;BR /&gt;The problem is Sold units and Demand Forecast are two different fact tables (Orders and Forecast), linked to a parent table called "Master" where there are categories to filter by (model, SKU, etc.).&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:30:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040560#M104273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-24T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not working as expected in hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040564#M104274</link>
      <description>&lt;P&gt;Greg, tysm for your answer.&lt;BR /&gt;I have definately seen that different times but never started to learn about it. Thanks for the resources.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:31:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-working-as-expected-in-hierarchy/m-p/3040564#M104274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-24T14:31:19Z</dc:date>
    </item>
  </channel>
</rss>

