<?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: Calculate Distinct Values per Month/ Year (Running total?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748104#M146189</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="699839" data-lia-user-login="D_Brouwers" class="lia-mention lia-mention-user"&gt;D_Brouwers&lt;/a&gt;&amp;nbsp;your file is not visible.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 07:52:52 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2024-03-07T07:52:52Z</dc:date>
    <item>
      <title>Calculate Distinct Values per Month/ Year (Running total?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3739469#M145792</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;This is my first post, as I've used this form many times to help me out, but I cannot find a fitting solution this time.&amp;nbsp;&lt;BR /&gt;I have a visual in which I'd like to display the unique number of products that are checked per month and the running total (of unique products that are checked) for that year.&lt;BR /&gt;The number of unique products is calculated with a simple measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Aantal Unieke artikelen (YtD) = &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; DISTINCTCOUNT ( 'Voorraad vs Scanning'[Artikel] ),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; FILTER (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Kalender',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Kalender'[Jaar] = 2023&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;What I can't get working is the running total. I've tried&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;SUMX(VALUES( 'Voorraad vs Scanning'[Artikel] ), 'Voorraad vs Scanning'[Artikel])&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;but that ends up with the error that &lt;EM&gt;SUMX cannot work with values of type string&lt;/EM&gt;. I cannot change the type as product ref's are alphanumerical.&lt;BR /&gt;Any help is appreciated and the pbix can be found&amp;nbsp;&lt;A href="https://www.dropbox.com/scl/fi/nl1r65jxpt6cvl0f1n2v4/Test-Cycle-count-unique-value.pbix?rlkey=w1t7k85hf31n7jhuukrnftnrw&amp;amp;e=1&amp;amp;dl=0" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;(version2)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:59:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3739469#M145792</guid>
      <dc:creator>D_Brouwers</dc:creator>
      <dc:date>2024-03-07T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct Values per Month/ Year (Running total?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3739872#M145813</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="699839" data-lia-user-login="D_Brouwers" class="lia-mention lia-mention-user"&gt;D_Brouwers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;usually, SUMX summing some numberical column, like quantity, price... check &lt;A href="https://learn.microsoft.com/en-us/dax/sumx-function-dax?WT.mc_id=DP-MVP-4025372" target="_self"&gt;link&lt;/A&gt; for official documentation&lt;/P&gt;
&lt;P&gt;your model is not available, so maybe you need &lt;A href="https://learn.microsoft.com/en-us/dax/countax-function-dax?WT.mc_id=DP-MVP-4025372" target="_self"&gt;COUNTAX &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 11:35:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3739872#M145813</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-04T11:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct Values per Month/ Year (Running total?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748026#M146184</link>
      <description>&lt;P&gt;Hi some_bih,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to attach the pbix for reference (I hope it worked). I've also had a look at COUNTAX, but couldn't get that to provide the desired outcome. So....if anyone has any additional suggestions, I'd love to hear them.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 07:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748026#M146184</guid>
      <dc:creator>D_Brouwers</dc:creator>
      <dc:date>2024-03-07T07:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct Values per Month/ Year (Running total?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748104#M146189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="699839" data-lia-user-login="D_Brouwers" class="lia-mention lia-mention-user"&gt;D_Brouwers&lt;/a&gt;&amp;nbsp;your file is not visible.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 07:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748104#M146189</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-07T07:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct Values per Month/ Year (Running total?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748793#M146214</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;Link has been updated. This time it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 12:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3748793#M146214</guid>
      <dc:creator>D_Brouwers</dc:creator>
      <dc:date>2024-03-07T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct Values per Month/ Year (Running total?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3762713#M146816</link>
      <description>&lt;P&gt;In the meantime I've found a solution offline that seems to work and which I'm happy to share.&lt;BR /&gt;As a first step I've added a calculated column to my table;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FirstOccurrence =&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VAR CurrentYear = YEAR('Voorraad vs Scanning'[Datum])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VAR CurrentValue = 'Voorraad vs Scanning'[Artikel]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; MINX(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Voorraad vs Scanning',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Voorraad vs Scanning'[Artikel] = CurrentValue &amp;amp;&amp;amp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YEAR('Voorraad vs Scanning'[Datum]) = CurrentYear&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Voorraad vs Scanning'[Datum]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ) = 'Voorraad vs Scanning'[Datum],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; CurrentValue,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; BLANK()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;As a final step I've counted the number of non-blank occurence of this "&lt;EM&gt;FirstOccurrence&lt;/EM&gt;".&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 07:46:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-Values-per-Month-Year-Running-total/m-p/3762713#M146816</guid>
      <dc:creator>D_Brouwers</dc:creator>
      <dc:date>2024-03-14T07:46:19Z</dc:date>
    </item>
  </channel>
</rss>

