<?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 Table total formula problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2632888#M77080</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem regarding my formula in an array. When I am on my Chartre de Bretagnes site, my calculation works perfectly. Unfortunately, when I change the Vannes example site, it seems that the formula does not agree with the total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;La formule est la suivante:&lt;/P&gt;&lt;P&gt;Bennes manquantes 2 = if([stock dispo2]-SUM('Table (2)'[Stock pour dev Co])&amp;gt;=0,0,[stock dispo2]-SUM('Table (2)'[Stock pour dev Co]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 07:44:55 GMT</pubDate>
    <dc:creator>Elie_HUCHET</dc:creator>
    <dc:date>2022-07-12T07:44:55Z</dc:date>
    <item>
      <title>Table total formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2632888#M77080</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem regarding my formula in an array. When I am on my Chartre de Bretagnes site, my calculation works perfectly. Unfortunately, when I change the Vannes example site, it seems that the formula does not agree with the total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;La formule est la suivante:&lt;/P&gt;&lt;P&gt;Bennes manquantes 2 = if([stock dispo2]-SUM('Table (2)'[Stock pour dev Co])&amp;gt;=0,0,[stock dispo2]-SUM('Table (2)'[Stock pour dev Co]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 07:44:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2632888#M77080</guid>
      <dc:creator>Elie_HUCHET</dc:creator>
      <dc:date>2022-07-12T07:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table total formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2632946#M77085</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="395728" data-lia-user-login="Elie_HUCHET" class="lia-mention lia-mention-user"&gt;Elie_HUCHET&lt;/a&gt; , You have use visual column to rebuild total &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bennes manquantes 2 = Sumx(values(Table (2)[Column]) , if([stock dispo2]-SUM('Table (2)'[Stock pour dev Co])&amp;gt;=0,0,[stock dispo2]-SUM('Table (2)'[Stock pour dev Co])) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or refer this video&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=ufHOOLdi_jk" target="_blank"&gt;https://www.youtube.com/watch?v=ufHOOLdi_jk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 08:06:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2632946#M77085</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-12T08:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table total formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2633621#M77142</link>
      <description>&lt;P&gt;Hello, thank you for your answer but it doesn't work. Have you got on other idea?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2633621#M77142</guid>
      <dc:creator>Elie_HUCHET</dc:creator>
      <dc:date>2022-07-12T12:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table total formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2640765#M77518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="395728" data-lia-user-login="Elie_HUCHET" class="lia-mention lia-mention-user"&gt;Elie_HUCHET&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;IF function will return values based on true or false, so you won't get total as you want.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;amitchandak&lt;/SPAN&gt;&amp;nbsp;'s reply should be a workaround, you need to use keycolumn in your visual to calculate the sum based on [&lt;SPAN&gt;Bennes manquantes 2] measure instead of the measure code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure with correct subtotal = SUMX(VALUES('TableName'[Keycolumn]),[Bennes manquantes 2])&lt;/LI-CODE&gt;
&lt;P data-unlink="true"&gt;The calculation is based on your data model.&amp;nbsp; If this reply still couldn'y help you solve your problem, please share a sample file with me and show me a screenshot with the result you want.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 08:51:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2640765#M77518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-15T08:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table total formula problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2672291#M79728</link>
      <description>&lt;P&gt;Thank you for your reply I found a solution!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 08:58:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-total-formula-problem/m-p/2672291#M79728</guid>
      <dc:creator>Elie_HUCHET</dc:creator>
      <dc:date>2022-08-01T08:58:07Z</dc:date>
    </item>
  </channel>
</rss>

