<?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: Rank the duplicates values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611302#M32381</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;thanks a lot. It works!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; Regarding the aim - I had the parent table with unique agreement where it was displayed period of agreement( e.g. 3 months ),amount by agreement and % by this amount. I have to show the %&amp;nbsp;&lt;SPAN&gt;proportionately the period (3 mon) with displaying date in&amp;nbsp; frame of start date and end date of agreement. I multiplied the agreement and need some index to increment the dates in frame&amp;nbsp; of agreement. The final result should look like&amp;nbsp;&lt;A href="http://prntscr.com/xagiki" target="_blank" rel="noopener"&gt;http://prntscr.com/xagiki&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 13:01:15 GMT</pubDate>
    <dc:creator>Paulshap</dc:creator>
    <dc:date>2021-01-20T13:01:15Z</dc:date>
    <item>
      <title>Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1610824#M32364</link>
      <description>&lt;P&gt;Hi community,&lt;BR /&gt;have the next issue. I have several values I have to rank.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that&amp;nbsp; ranks function assign the same rank to each row and there is no any identifier to break the tie. I can't create index in Powerquery as this is calculated table. I tried to generate index via&amp;nbsp;&lt;SPAN&gt;GENERATESERIES in var and return this index, but it displayes the error.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://prntscr.com/x9zipf" target="_blank" rel="noopener"&gt;http://prntscr.com/x9zipf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The formula is below&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column 2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var gen=GENERATESERIES(1,COUNTROWS(Table),1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTCOLUMNS(gen,"index",[Value])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anybody have the same issue and how did you solve this problem?&lt;BR /&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:25:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1610824#M32364</guid>
      <dc:creator>Paulshap</dc:creator>
      <dc:date>2021-01-20T09:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1610929#M32365</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149316" data-lia-user-login="Paulshap" class="lia-mention lia-mention-user"&gt;Paulshap&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can add the index column in the calculated table calculation instead of creating a column.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR __Count = COUNTROWS('Table 1')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR __Table = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GENERATESERIES(1,__Count,1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;__Table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:11:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1610929#M32365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-20T10:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1610964#M32366</link>
      <description>&lt;P&gt;Hi, thanks for your solution, but I have to get single column with index, not total table. Your solution return total table with index.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1610964#M32366</guid>
      <dc:creator>Paulshap</dc:creator>
      <dc:date>2021-01-20T10:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611010#M32368</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149316" data-lia-user-login="Paulshap" class="lia-mention lia-mention-user"&gt;Paulshap&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;As you have said the table in the image is a calculated table.&lt;BR /&gt;Add another column of index column by doing the calculation in that table calculation. I hope you're getting my point.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611010#M32368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-20T10:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611023#M32369</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149316" data-lia-user-login="Paulshap" class="lia-mention lia-mention-user"&gt;Paulshap&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create a new calculated table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New table =
GENERATE (
    DISTINCT ( Table1 ),
    GENERATESERIES ( 1, CALCULATE ( COUNT ( Table1[sale_contract_id] ) ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise perhaps you can create the equivalent of the calculated table in PQ and add an index afterwards.&lt;/P&gt;
&lt;P&gt;I don't think it is possible to add a column like that directly in DAX (witout creating a new table) since there is nothing to&amp;nbsp;differentiate the duplicates. In any case, what is the&amp;nbsp;point of this? What are you trying to do, ultimately? Most likely it can be done without that column, since it doesn't seem to add any information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611023#M32369</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-20T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611029#M32370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&amp;nbsp;if you mean your formula, it give the result of total table, not single column. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 11:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611029#M32370</guid>
      <dc:creator>Paulshap</dc:creator>
      <dc:date>2021-01-20T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611142#M32374</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="149316" data-lia-user-login="Paulshap" class="lia-mention lia-mention-user"&gt;Paulshap&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Can you share your sample data or file after removing the sensitive data?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 11:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611142#M32374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-20T11:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rank the duplicates values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611302#M32381</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;thanks a lot. It works!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt; Regarding the aim - I had the parent table with unique agreement where it was displayed period of agreement( e.g. 3 months ),amount by agreement and % by this amount. I have to show the %&amp;nbsp;&lt;SPAN&gt;proportionately the period (3 mon) with displaying date in&amp;nbsp; frame of start date and end date of agreement. I multiplied the agreement and need some index to increment the dates in frame&amp;nbsp; of agreement. The final result should look like&amp;nbsp;&lt;A href="http://prntscr.com/xagiki" target="_blank" rel="noopener"&gt;http://prntscr.com/xagiki&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-the-duplicates-values/m-p/1611302#M32381</guid>
      <dc:creator>Paulshap</dc:creator>
      <dc:date>2021-01-20T13:01:15Z</dc:date>
    </item>
  </channel>
</rss>

