<?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: Calculating unique values by month in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161572#M49974</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335643" data-lia-user-login="JRA21_13_19_25" class="lia-mention lia-mention-user"&gt;JRA21_13_19_25&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
  VAR __Table = SELECTCOLUMNS('Table',"Month",[Month],"Product ID",[Product ID],"Availability",[Availability])
RETURN
  COUNTROWS(DISTINCT(__Table))&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 28 Oct 2021 18:57:11 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-10-28T18:57:11Z</dc:date>
    <item>
      <title>Calculating unique values by month in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161567#M49973</link>
      <description>&lt;P&gt;HELLO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a DAX formula that will calculate the total UNIQUE products by Month and Availabilty using the table below.&lt;/P&gt;&lt;P&gt;&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;So one formula will calculate total unique products for Online and this should give a value of 5 and for Instore it should give a value of 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started by using the CALCULATE Function below but I don't know how to factor in finding the unique products by month:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Unique Products for Online = CALCULATE(DISTINCTCOUNT(Products[Product ID]),Products[Availability]="Online",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone kindly help me out with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&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;</description>
      <pubDate>Thu, 28 Oct 2021 18:53:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161567#M49973</guid>
      <dc:creator>JRA21_13_19_25</dc:creator>
      <dc:date>2021-10-28T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating unique values by month in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161572#M49974</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335643" data-lia-user-login="JRA21_13_19_25" class="lia-mention lia-mention-user"&gt;JRA21_13_19_25&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
  VAR __Table = SELECTCOLUMNS('Table',"Month",[Month],"Product ID",[Product ID],"Availability",[Availability])
RETURN
  COUNTROWS(DISTINCT(__Table))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Oct 2021 18:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161572#M49974</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-10-28T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating unique values by month in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161592#M49975</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; THANK YOU SO MUCH GREG!!! IT WORKED&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 19:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161592#M49975</guid>
      <dc:creator>JRA21_13_19_25</dc:creator>
      <dc:date>2021-10-28T19:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating unique values by month in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161919#M49984</link>
      <description>&lt;P&gt;This seems like a good situation for SUMMARIZE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure1 =
COUNTROWS (
    SUMMARIZE ( Table1, Table1[Month], Table1[Product ID], Table1[Availability] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Oct 2021 00:58:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-unique-values-by-month-in-DAX/m-p/2161919#M49984</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-10-29T00:58:23Z</dc:date>
    </item>
  </channel>
</rss>

