<?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 column based  on index value in another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2549906#M72114</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new column.&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;LI-CODE lang="markup"&gt;Next number CC =
VAR nextorder =
    MINX ( FILTER ( Data, Data[order] &amp;gt; EARLIER ( Data[order] ) ), Data[order] )
RETURN
    MAXX ( FILTER ( Data, Data[order] = nextorder ), Data[Number] )
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 31 May 2022 09:41:28 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-05-31T09:41:28Z</dc:date>
    <item>
      <title>Create a column based  on index value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2549820#M72110</link>
      <description>&lt;P&gt;l have a table which contains 2 columns: number and&amp;nbsp; order. l need a column "next_number" . l want to have the value of next row of the column number sort&amp;nbsp; by order. when the next number is null, we take the next number not null.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Number&lt;/TD&gt;&lt;TD&gt;order&lt;/TD&gt;&lt;TD&gt;Next_number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1,32&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2,3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2,3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0,9&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0,5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;0,5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;0,5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0,5&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;69&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;69&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please l need help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 09:19:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2549820#M72110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T09:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column based  on index value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2549906#M72114</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new column.&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;LI-CODE lang="markup"&gt;Next number CC =
VAR nextorder =
    MINX ( FILTER ( Data, Data[order] &amp;gt; EARLIER ( Data[order] ) ), Data[order] )
RETURN
    MAXX ( FILTER ( Data, Data[order] = nextorder ), Data[Number] )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 May 2022 09:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2549906#M72114</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-05-31T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column based  on index value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2550058#M72121</link>
      <description>&lt;P&gt;it gives the value of next row.&amp;nbsp; but when the next value of number is "0" it is supposed to skip it bcause it is null and use the next value of number not null.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:35:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2550058#M72121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column based  on index value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2550072#M72123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback, and sorry that I missed your requirement.&lt;/P&gt;
&lt;P&gt;Could you please check if the below and the attached pibx file are providing a correct result?&amp;nbsp;&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;
&lt;LI-CODE lang="markup"&gt;Next number CC =
VAR nextorder =
    MINX (
        FILTER ( Data, Data[order] &amp;gt; EARLIER ( Data[order] ) &amp;amp;&amp;amp; Data[Number] &amp;lt;&amp;gt; 0 ),
        Data[order]
    )
RETURN
    MAXX ( FILTER ( Data, Data[order] = nextorder ), Data[Number] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:45:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2550072#M72123</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-05-31T10:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column based  on index value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2550695#M72167</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;. It works.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 15:05:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-column-based-on-index-value-in-another-column/m-p/2550695#M72167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T15:05:34Z</dc:date>
    </item>
  </channel>
</rss>

