<?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: Create a table containing the unique values of a user-sliced subset in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771934#M86321</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396279" data-lia-user-login="Cheetah" class="lia-mention lia-mention-user"&gt;Cheetah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?&lt;/P&gt;
&lt;P&gt;Thanks for your efforts &amp;amp; time in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Binbin Yu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 01:32:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-16T01:32:17Z</dc:date>
    <item>
      <title>Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771544#M86306</link>
      <description>&lt;P&gt;I'm new in DAX and PowerBI, just run into a "simple" problem, hope someone give me a hint.&lt;/P&gt;&lt;P&gt;The problem is like this:&amp;nbsp; we have a data table behind a PowerBI report, its column "A" is of interest, and the report has several slicers work on that table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The target is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Firstly, to create an one-column dynamic table that contains the unique values of the sliced subset of the column "A" of the data table.&amp;nbsp; After each time user makes his selection on the slicers,&amp;nbsp; the table is automatically updated to refelct the new subsetting of the column "A".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. secondly, to add a column to this dynamic table that contains the sequential numbers of the rows, i.e. 1, 2,..., N, with N the total number of rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheetah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 20:32:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771544#M86306</guid>
      <dc:creator>Cheetah</dc:creator>
      <dc:date>2022-09-15T20:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771920#M86319</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396279" data-lia-user-login="Cheetah" class="lia-mention lia-mention-user"&gt;Cheetah&lt;/a&gt;&amp;nbsp;Not sure I 100% understand, but try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Values = DISTINCT('Table'[A]) // whatever the user selects for A column, unique values
  VAR __Text = CONCATENATEX(__Values,[A],"|")
  VAR __Count = COUNTROWS(__Values)
  VAR __Table = 
    ADDCOLUMNS(
      GENERATESERIES(1,__Count,1),
      "A",PATHITEM(__Text,[Value])
   )
// do something with this dynamic table. You now have a dynamic indexed table where the index is the [Value] column and your A values are in the A column.
    &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 01:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771920#M86319</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-16T01:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771934#M86321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396279" data-lia-user-login="Cheetah" class="lia-mention lia-mention-user"&gt;Cheetah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?&lt;/P&gt;
&lt;P&gt;Thanks for your efforts &amp;amp; time in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Binbin Yu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 01:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2771934#M86321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-16T01:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2772254#M86341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396279" data-lia-user-login="Cheetah" class="lia-mention lia-mention-user"&gt;Cheetah&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Attached sample file considering the brand column as an example. It should work on any column and any set of slicers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to place the column in a table visual along with the following measure&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;No. = 
RANKX ( 
    CALCULATETABLE ( VALUES ( 'Product'[Brand] ), ALLSELECTED ( ) ),
    CALCULATE ( MAX ( 'Product'[Brand] ) ),,
    ASC,
    Dense
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 05:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2772254#M86341</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-16T05:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2774849#M86568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, thank you for the reply. Your images looks the very thing I want, but&lt;BR /&gt;the code is generating a number rather than a table, maybe you missed to post another section of code?&lt;BR /&gt;Cheetah&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 07:32:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2774849#M86568</guid>
      <dc:creator>Cheetah</dc:creator>
      <dc:date>2022-09-17T07:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2774850#M86569</link>
      <description>&lt;P&gt;HI &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 for the reply. I tried the code, it gives this error message:&amp;nbsp; "The syntax for ')' is incorrect."&lt;BR /&gt;Should I add a "return" line to the end of the code?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 07:35:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2774850#M86569</guid>
      <dc:creator>Cheetah</dc:creator>
      <dc:date>2022-09-17T07:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2774856#M86571</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396279" data-lia-user-login="Cheetah" class="lia-mention lia-mention-user"&gt;Cheetah&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Indeed it is generating a number. Which you need to place it along with the desired column in one table visual. Please download the attached file and see how it works.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 07:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2774856#M86571</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-17T07:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2775333#M86624</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="396279" data-lia-user-login="Cheetah" class="lia-mention lia-mention-user"&gt;Cheetah&lt;/a&gt;&amp;nbsp;Yeah, I have no idea what you want to do with that table VAR so that is just a code snippet, not a complete measure.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 18:51:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2775333#M86624</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-17T18:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2799119#M88028</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;! great solution.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 08:38:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2799119#M88028</guid>
      <dc:creator>Cheetah</dc:creator>
      <dc:date>2022-09-27T08:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table containing the unique values of a user-sliced subset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2799143#M88030</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;, thank you for the advice, and sorry for the missing informations.&amp;nbsp; I got the problem solved. Thank you all as a great Community Support Team!&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 08:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-table-containing-the-unique-values-of-a-user-sliced/m-p/2799143#M88030</guid>
      <dc:creator>Cheetah</dc:creator>
      <dc:date>2022-09-27T08:44:08Z</dc:date>
    </item>
  </channel>
</rss>

