<?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 how to select distinct values from a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267116#M21281</link>
    <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following scenario and appreciate your support.&lt;/P&gt;&lt;P&gt;Table : XXXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sales order&amp;nbsp; &amp;nbsp; description&amp;nbsp; &amp;nbsp; LastChangeDate&lt;/P&gt;&lt;P&gt;0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order1&amp;nbsp; &amp;nbsp; &amp;nbsp;01.08.2020&lt;/P&gt;&lt;P&gt;0002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order2&amp;nbsp; &amp;nbsp; &amp;nbsp;02.08.2020&lt;/P&gt;&lt;P&gt;0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order1&amp;nbsp; &amp;nbsp; &amp;nbsp;12.07.2020&lt;/P&gt;&lt;P&gt;0002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order2&amp;nbsp; &amp;nbsp; &amp;nbsp;05.06.2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to select discting&amp;nbsp; Sales orders ,descriptions&amp;nbsp; and the latest "LastChangedDate".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sales order&amp;nbsp; &amp;nbsp; description&amp;nbsp; &amp;nbsp; LastChangeDate&lt;/P&gt;&lt;P&gt;example expected results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sales order&amp;nbsp; &amp;nbsp; description&amp;nbsp; &amp;nbsp; LastChangeDate&lt;/P&gt;&lt;P&gt;0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order1&amp;nbsp; &amp;nbsp; &amp;nbsp;01.08.2020&lt;/P&gt;&lt;P&gt;0002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order2&amp;nbsp; &amp;nbsp; &amp;nbsp;02.08.2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appriciate your solution .&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;</description>
    <pubDate>Sun, 02 Aug 2020 20:59:56 GMT</pubDate>
    <dc:creator>venkatt</dc:creator>
    <dc:date>2020-08-02T20:59:56Z</dc:date>
    <item>
      <title>how to select distinct values from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267116#M21281</link>
      <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following scenario and appreciate your support.&lt;/P&gt;&lt;P&gt;Table : XXXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sales order&amp;nbsp; &amp;nbsp; description&amp;nbsp; &amp;nbsp; LastChangeDate&lt;/P&gt;&lt;P&gt;0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order1&amp;nbsp; &amp;nbsp; &amp;nbsp;01.08.2020&lt;/P&gt;&lt;P&gt;0002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order2&amp;nbsp; &amp;nbsp; &amp;nbsp;02.08.2020&lt;/P&gt;&lt;P&gt;0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order1&amp;nbsp; &amp;nbsp; &amp;nbsp;12.07.2020&lt;/P&gt;&lt;P&gt;0002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order2&amp;nbsp; &amp;nbsp; &amp;nbsp;05.06.2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to select discting&amp;nbsp; Sales orders ,descriptions&amp;nbsp; and the latest "LastChangedDate".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sales order&amp;nbsp; &amp;nbsp; description&amp;nbsp; &amp;nbsp; LastChangeDate&lt;/P&gt;&lt;P&gt;example expected results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sales order&amp;nbsp; &amp;nbsp; description&amp;nbsp; &amp;nbsp; LastChangeDate&lt;/P&gt;&lt;P&gt;0001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order1&amp;nbsp; &amp;nbsp; &amp;nbsp;01.08.2020&lt;/P&gt;&lt;P&gt;0002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales order2&amp;nbsp; &amp;nbsp; &amp;nbsp;02.08.2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appriciate your solution .&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 20:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267116#M21281</guid>
      <dc:creator>venkatt</dc:creator>
      <dc:date>2020-08-02T20:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to select distinct values from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267120#M21282</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="124090" data-lia-user-login="venkatt" class="lia-mention lia-mention-user"&gt;venkatt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just put all your columns into visual table and set aggregation for date value as Last:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 21:26:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267120#M21282</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-08-02T21:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to select distinct values from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267122#M21283</link>
      <description>&lt;P&gt;Might seem like a simple solution, however, are you able to use a slicer or are you looking for a Dax specific solution?&amp;nbsp;&lt;BR /&gt;Try dragging the LastChangeDate into the slicer and visuals on your report will adjust to show the corresponding values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 21:32:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267122#M21283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-02T21:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to select distinct values from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267409#M21290</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="124090" data-lia-user-login="venkatt" class="lia-mention lia-mention-user"&gt;venkatt&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;description = lastnonblankvalue(Table[LastChangeDate],max(Table[description]))&lt;/P&gt;
&lt;P&gt;// Add this desc and rest two as same&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;//or this measure in place of date&lt;/P&gt;
&lt;P&gt;Measure = &lt;BR /&gt;VAR __id = MAX ( 'Table'[ Sales order ] )&lt;BR /&gt;VAR __date = CALCULATE ( MAX( 'Table'[LastChangeDate] ), ALLSELECTED ( 'Table' ), 'Table'[ Sales order ] = __id ) &lt;BR /&gt;RETURN CALCULATE ( Max ( 'Table'[LastChangeDate] ), VALUES ( 'Table'[ Sales order ), 'Table'[ Sales order] = __id, 'Table'[LastChangeDate] = __date )&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 03:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267409#M21290</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-03T03:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to select distinct values from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267812#M21298</link>
      <description>&lt;P&gt;HI Amit ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. Is it possible to create new table using dax and achive only the distinct values of sales orders along with only LastChangedDate.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 07:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267812#M21298</guid>
      <dc:creator>venkatt</dc:creator>
      <dc:date>2020-08-03T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to select distinct values from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267819#M21299</link>
      <description>&lt;P&gt;Hi Carlos,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply, i am looking for Dax solution , so that i can list the distint values into separate table and visualize only unique values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 07:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-select-distinct-values-from-a-table/m-p/1267819#M21299</guid>
      <dc:creator>venkatt</dc:creator>
      <dc:date>2020-08-03T07:59:38Z</dc:date>
    </item>
  </channel>
</rss>

