<?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 Renumbering data items dynamically in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3574488#M137809</link>
    <description>&lt;P&gt;We have a data set that includes communications. User would like to add an ID that shows the people numbered sequentially, followed by the sequence of the communication specific to that person.&lt;/P&gt;&lt;P&gt;For example, John Doe is first in the list, so he becomes #1, and his first communication has id 1.1, second is 1.2, etc. Jane Smith shows up, her first communication is 2.1, 2.2, etc. The data might not be ordered by person (ie could be John, Jane, John, George, Jane, etc) so the generation of the ID needs to take that into account.&lt;/P&gt;&lt;P&gt;If the data set is filtered or sorted, the numbers should be regenerated so that they are in the right sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest a straightforward way to do this in dax?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 13:23:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-08T13:23:47Z</dc:date>
    <item>
      <title>Renumbering data items dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3574488#M137809</link>
      <description>&lt;P&gt;We have a data set that includes communications. User would like to add an ID that shows the people numbered sequentially, followed by the sequence of the communication specific to that person.&lt;/P&gt;&lt;P&gt;For example, John Doe is first in the list, so he becomes #1, and his first communication has id 1.1, second is 1.2, etc. Jane Smith shows up, her first communication is 2.1, 2.2, etc. The data might not be ordered by person (ie could be John, Jane, John, George, Jane, etc) so the generation of the ID needs to take that into account.&lt;/P&gt;&lt;P&gt;If the data set is filtered or sorted, the numbers should be regenerated so that they are in the right sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest a straightforward way to do this in dax?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 13:23:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3574488#M137809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-08T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Renumbering data items dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3576680#M137903</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you provide&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;s&lt;/SPAN&gt;&lt;SPAN&gt;ample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 02:49:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3576680#M137903</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-11T02:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Renumbering data items dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3577465#M137949</link>
      <description>&lt;P&gt;Thanks for the response. Here's a simplified example of how the data will appear, and what I'd like to generate as the ID. Basically the algorithm is as follows;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;People (name) in the result set are numbered sequentially from 1 onwards&lt;/LI&gt;&lt;LI&gt;Communications (Comment) are numbered sequentially for the person making the comment&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So the&amp;nbsp;&lt;STRONG&gt;Generated ID&lt;/STRONG&gt; is the value I want to generate dynamically, but it has to be able to be regenerated&amp;nbsp; if the result set is filtered, sorted, slicer applied, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Comment&lt;/TD&gt;&lt;TD&gt;Generated ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11-Dec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Some comment&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; 1.1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane Smith&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11-Dec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Some comment&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; 2.1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11-Dec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Some comment&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; 1.2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11-Dec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Some comment&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; 1.3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane Smith&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11-Dec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Some comment&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; 2.2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fred Flintstone&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 11-Dec&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Some comment&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; 3.1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make it clearer?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 11:37:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3577465#M137949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-11T11:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Renumbering data items dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3579220#M138033</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you need to add an index column to the power query.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Minindex = CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[Name]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
Var _N1=RANKX(ALL('Table'),[Minindex],,ASC,Dense)
Var _N2=CALCULATE(COUNT('Table'[Name]),FILTER(ALL('Table'),[Name]=SELECTEDVALUE('Table'[Name])&amp;amp;&amp;amp;[Index]&amp;lt;=SELECTEDVALUE('Table'[Index])))
Return
_N1&amp;amp;"."&amp;amp;_N2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this the result you expect?&lt;/SPAN&gt; &lt;SPAN&gt;Please see the attached document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 07:59:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3579220#M138033</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-12T07:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Renumbering data items dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3584521#M138284</link>
      <description>&lt;P&gt;This *is* the type of result I'm looking for, and I've managed to get it working with my actual data set, but is there a way to have it update dynamically if sorting or filtering is applied? For example if I set a date range, I'd like the numbering to start from 1 within that range.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:48:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3584521#M138284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-14T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Renumbering data items dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3585394#M138323</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide more example data? And give an example of the output you would expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 08:32:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Renumbering-data-items-dynamically/m-p/3585394#M138323</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-15T08:32:28Z</dc:date>
    </item>
  </channel>
</rss>

