<?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: placeholder erro with distintcount function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063483#M161305</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very clear , it seems to do the job but I have a little difference int he result that I have to understand&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 09:33:15 GMT</pubDate>
    <dc:creator>yamina</dc:creator>
    <dc:date>2024-07-26T09:33:15Z</dc:date>
    <item>
      <title>placeholder erro with distintcount function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063313#M161295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to solve this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to calculate the distincount number of "reference secondaire " which ' somme de mt facturé = 0"&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Somme Mt facturés =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;HG&lt;/SPAN&gt;&lt;SPAN&gt;[montant_facture]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to find the total result for each month&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;in this board but my measure is not correct&amp;nbsp;&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;</description>
      <pubDate>Fri, 26 Jul 2024 08:30:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063313#M161295</guid>
      <dc:creator>yamina</dc:creator>
      <dc:date>2024-07-26T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder erro with distintcount function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063434#M161304</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444835" data-lia-user-login="yamina" class="lia-mention lia-mention-user"&gt;yamina&lt;/a&gt;&amp;nbsp;Hi!&lt;/P&gt;&lt;P&gt;// Step 1: Calculate the sum of "montant_facture" for each "reference secondaire"&lt;BR /&gt;Sum_Mt_Factures_Per_Reference =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(HG[montant_facture]),&lt;BR /&gt;ALLEXCEPT(HG, HG[reference_secondaire])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;// Step 2: Create a new column to identify if the sum is zero&lt;BR /&gt;Is_Sum_Zero =&lt;BR /&gt;IF(&lt;BR /&gt;[Sum_Mt_Factures_Per_Reference] = 0,&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;// Step 3: Calculate the distinct count of "reference secondaire" where sum is zero&lt;BR /&gt;Distinct_Count_Reference_Zero_Sum =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT(HG[reference_secondaire]),&lt;BR /&gt;FILTER(HG, [Sum_Mt_Factures_Per_Reference] = 0)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:16:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063434#M161304</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-26T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder erro with distintcount function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063483#M161305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very clear , it seems to do the job but I have a little difference int he result that I have to understand&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063483#M161305</guid>
      <dc:creator>yamina</dc:creator>
      <dc:date>2024-07-26T09:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder erro with distintcount function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063504#M161307</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444835" data-lia-user-login="yamina" class="lia-mention lia-mention-user"&gt;yamina&lt;/a&gt;&amp;nbsp;in my opinon your previous result wasn't correct, because the sum of 1270 + 1065 +1028 + 853 + 794 + 905 + 635 is 6550, not 6365. If you want to share the pbix file I can help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Alternative approach using calculated columns and measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Calculated Column for Sum Check:&lt;/P&gt;&lt;P&gt;Is_Sum_Zero =&lt;BR /&gt;IF( CALCULATE( SUM(HG[montant_facture]), ALLEXCEPT(HG, HG[reference_secondaire]) ) = 0, 1, 0 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Measure for Distinct Count Using Calculated Column:&lt;BR /&gt;Distinct_Count_Reference_Zero_Sum_Alt =&lt;BR /&gt;CALCULATE( DISTINCTCOUNT(HG[reference_secondaire]), FILTER(HG, HG[Is_Sum_Zero] = 1) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please if it's correct, then accept my answer as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:46:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063504#M161307</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-26T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder erro with distintcount function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063541#M161311</link>
      <description>&lt;P&gt;Unfortunately i can 't share you the file it is not supported&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However I try with your second alternative measures I get the same result so I suppose that it is correct. How can i share you the file ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 10:04:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063541#M161311</guid>
      <dc:creator>yamina</dc:creator>
      <dc:date>2024-07-26T10:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: placeholder erro with distintcount function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063547#M161312</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444835" data-lia-user-login="yamina" class="lia-mention lia-mention-user"&gt;yamina&lt;/a&gt;&amp;nbsp;you can upload it in Drive and then share here the link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if also the second result is the same, that's the correct solution. Can you make a manual check for example on one month?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 10:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/placeholder-erro-with-distintcount-function/m-p/4063547#M161312</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-26T10:07:21Z</dc:date>
    </item>
  </channel>
</rss>

