<?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 Asynchronous matrix table wrong subtotal in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3017303#M102496</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my client, I had to develop an asynchronous matrix table :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I built my measure to show in the subtotal row the evolution (in %) between the minimum year and the maximum year.&lt;/P&gt;&lt;P&gt;When I have data for each year to compare (one row for 2021 vs one row for 2020), the subtotal is correct.&lt;/P&gt;&lt;P&gt;When I don't, the subtotal is false.&lt;/P&gt;&lt;P&gt;The expected subtotal would be 100% if no row "2020", -100% if no row "2021"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one of the measure I use :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NbMandAllType with Evol = 
    IF(HASONEVALUE('Calendar'[Date].[Year]),
        [NbMandAllType],
        FORMAT([Evol all type between A min and A max],"+0\ %;-0\ %;+0\ %")
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I undersdand why I get what I get. When I have only Year row, the condition "HASONEVALUE('Calendar'[Date].[Year])" becomes true for the subtotal row as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to fix it ? I think I have to add another condition in my IF, maybe a Year row count, but I can't get it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 16:14:38 GMT</pubDate>
    <dc:creator>sebouier</dc:creator>
    <dc:date>2023-01-12T16:14:38Z</dc:date>
    <item>
      <title>Asynchronous matrix table wrong subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3017303#M102496</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my client, I had to develop an asynchronous matrix table :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I built my measure to show in the subtotal row the evolution (in %) between the minimum year and the maximum year.&lt;/P&gt;&lt;P&gt;When I have data for each year to compare (one row for 2021 vs one row for 2020), the subtotal is correct.&lt;/P&gt;&lt;P&gt;When I don't, the subtotal is false.&lt;/P&gt;&lt;P&gt;The expected subtotal would be 100% if no row "2020", -100% if no row "2021"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one of the measure I use :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NbMandAllType with Evol = 
    IF(HASONEVALUE('Calendar'[Date].[Year]),
        [NbMandAllType],
        FORMAT([Evol all type between A min and A max],"+0\ %;-0\ %;+0\ %")
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I undersdand why I get what I get. When I have only Year row, the condition "HASONEVALUE('Calendar'[Date].[Year])" becomes true for the subtotal row as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to fix it ? I think I have to add another condition in my IF, maybe a Year row count, but I can't get it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 16:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3017303#M102496</guid>
      <dc:creator>sebouier</dc:creator>
      <dc:date>2023-01-12T16:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous matrix table wrong subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3017848#M102537</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="300219" data-lia-user-login="sebouier" class="lia-mention lia-mention-user"&gt;sebouier&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what if you just write the measure like?&lt;/P&gt;&lt;P&gt;NbMandAllType with Evol =&lt;BR /&gt;FORMAT([Evol all type between A min and A max],"+0\ %;-0\ %;+0\ %")&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 21:35:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3017848#M102537</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-12T21:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous matrix table wrong subtotal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3019167#M102653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do that, my table will contain only pourcentage values, the subtotal value would be correct but not the year row values.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:05:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Asynchronous-matrix-table-wrong-subtotal/m-p/3019167#M102653</guid>
      <dc:creator>sebouier</dc:creator>
      <dc:date>2023-01-13T12:05:01Z</dc:date>
    </item>
  </channel>
</rss>

