<?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: Group Ranking in Measure, and Bar chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3076413#M106976</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know why you have used [Coalesce] function in Rankx. Acutally, I am trying to use this dax in another coumn where Sumvalue is differenct column and Ranking is happening based on different column so, this dax is not working&amp;nbsp;&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;</description>
    <pubDate>Sun, 12 Feb 2023 06:56:38 GMT</pubDate>
    <dc:creator>Rahul_SC</dc:creator>
    <dc:date>2023-02-12T06:56:38Z</dc:date>
    <item>
      <title>Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3061933#M105835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written dax for group ranking. It is working fine in table. The Ranking is dynamic. If I unselect&amp;nbsp; a value from slicer (carrier name), the ranking gets updated for the selected values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ranking = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('Table'), 'Table'[LaneID] = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[LaneID])),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [sum],,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dense)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is the output of the table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not work the moment, I remove LaneID. How to make it work even, I do not keep Lane ID in table ?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Feb 2023 00:03:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3061933#M105835</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-05T00:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3061955#M105839</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you expecting something like:&lt;/P&gt;&lt;DIV&gt;Ranking =&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; RANKX(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ALLSELECTED('Table'[Carrier]),&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [sum],,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASC,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dense&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Feb 2023 00:55:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3061955#M105839</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-05T00:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062123#M105855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. But, I acutally can not use&amp;nbsp; "&lt;SPAN&gt;ALLSELECTED('Table'[Carrier])". This is because, If you see in my table (above image), I am ranking Carrier based on Total Samulation value within LaneID group (this is my requirement).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I follow your Dax, then we would get global ranking of carrier without considering LaneID.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dax (mentioned above) is working fine in the table and giving the required output. But the issue is as soon as I remove LaneID (column) from the table then it gives incorrect ranking (see below).&amp;nbsp;&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;P&gt;Can you suggest any other measure to calculate rank of carrier based on Total Simulation considering LaneID as group ? and, it should work even if LaneID (group) is not in the table. I want to do this because this l will use it to show bar graph to show value by carriers. The value will be calculated based on Ranking. If ranking changes then value also would change.&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;</description>
      <pubDate>Sun, 05 Feb 2023 08:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062123#M105855</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-05T08:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062413#M105898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what should be the result considering the same example?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 18:04:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062413#M105898</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-05T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062421#M105900</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the table 1 which is correct. I want to show this data like table 2. But we can see in the column value (Allocated Spend) is not same in both the tables. The table 2 should summarize the value for each carrier but it seems not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to show the value like in table 2.&amp;nbsp;&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;</description>
      <pubDate>Sun, 05 Feb 2023 18:20:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062421#M105900</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-05T18:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062423#M105902</link>
      <description>&lt;P&gt;To explain fulther my question -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LaneID, Carrier, TotalSimulation is a part of physical table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;allocated spend is a measure. It is calculated on % basis. like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;([RankMeasure] = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [TotalSimulation]*60%,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;([RankMeasure] = &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [TotalSimulation]*15%,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;([RankMeasure]=&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [TotalSimulation]*20%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Feb 2023 18:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3062423#M105902</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-05T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3063709#M105994</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I hope this is what you're looking for; please refr to attached sample file&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;RankMeasure = 
RANKX(
    CALCULATETABLE (
        VALUES ( 'Table'[Carrier] ), 
        ALLEXCEPT ( 'Table', 'Table'[LaneID] )
    ),
    [sum],,
    ASC,
    Dense
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;Allocated_Spend_New = 
SUMX ( 
    SUMMARIZE ( 'Table', 'Table'[LaneID], 'Table'[Carrier] ),
    VAR SumValue = [sum]
    VAR R1 = [Allocation % for R1]
    VAR R2 = [Allocation % for R2 Value]
    VAR R3 = [Allocation % for R3 Value]
    VAR RValue =
        SWITCH (
            [RankMeasure],
            1, R1,
            2, R2,
            3, R3
        )
    RETURN
        SumValue * RValue
) + 0&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:58:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3063709#M105994</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066372#M106184</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;,&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;The 2nd table (right side) is giving the correct output. This is exactly what I want but there is one issue in the Rank Measure. It is not dynamic. It has fixed the Ranking.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say, if I remove any carrier from the slicer then the Ranking should be done again on the remaining carrier of the table. I have written the measure (Rank Measure_New) which is working correctly. See below when all the carriers are selected then MSC has rank 1.&amp;nbsp;&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;P&gt;When I unselect MSC from the slicer then your Rank measure is not giving ranking dynamically, it has removed the Rank 1. RankMeasure_New is ranking correctly and giving rank on the remaining carrier dynamically.&amp;nbsp; This should also happen along with summarization of the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;</description>
      <pubDate>Tue, 07 Feb 2023 14:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066372#M106184</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-07T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066459#M106189</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;RankMeasure =&lt;BR /&gt;RANKX (&lt;BR /&gt;CALCULATETABLE ( VALUES ( 'Table'[Carrier] ), ALLSELECTED ( 'Table'[Carrier] ) ),&lt;BR /&gt;[sum],&lt;BR /&gt;,&lt;BR /&gt;ASC,&lt;BR /&gt;DENSE&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:43:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066459#M106189</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066487#M106190</link>
      <description>&lt;P&gt;&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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, ranking is correct (it is dynamic) but the summarized table is incorrect. At total, the value is correct (Allocated Spend_New) but in the filter context, it is not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have doing if Rank1 (100%), Rank 2 or 3 then 0% of Total Simulation.&amp;nbsp;&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;</description>
      <pubDate>Tue, 07 Feb 2023 14:55:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066487#M106190</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-07T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066845#M106222</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Will have to use all in one measure.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Allocated_Spend_New = 
VAR SelectedCarriers = ALLSELECTED ( 'Table'[Carrier] )
RETURN
    SUMX ( 
        SUMMARIZE ( 'Table', 'Table'[LaneID], 'Table'[Carrier] ),
        VAR SumValue = [sum]
        VAR R1 = [Allocation % for R1]
        VAR R2 = [Allocation % for R2 Value]
        VAR R3 = [Allocation % for R3 Value]
        VAR RValue =
            SWITCH (
                RANKX(
                    SelectedCarriers,
                    [sum],,
                    ASC,
                    Dense
                ),
                1, R1,
                2, R2,
                3, R3
            )
        RETURN
            SumValue * RValue
    ) + 0&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:06:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066845#M106222</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T18:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066958#M106236</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excellent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it is perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just need to modify switch function a little. Actullay, if we are making changes in R2 slicer then it is calulating for R1 in the table. When we change in R3 slicer then it is calculating for R2 in table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;R1 slicer is not linked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 19:21:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066958#M106236</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-07T19:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066999#M106241</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The workaround is, I made a little tweak in Rankx (subtracted by 1) to link R1 slicer. But would like to know why this is giving rank (added by one)&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;</description>
      <pubDate>Tue, 07 Feb 2023 19:37:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3066999#M106241</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-07T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3068376#M106341</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry, but I have expericed that the Rank measure is not working fine.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In slicer, if we select 3 carriers or less than 3 then Ranking is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the moment, we select more than 3 carriers in the slicer then we get different Ranking (probalby global ranking). Rank1 does not come under any carrier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 08:58:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3068376#M106341</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-08T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3069048#M106406</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I hope this time is correct&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Allocated_Spend_New = 
VAR SelectedCarriers = ALLSELECTED ( 'Table'[Carrier] )
RETURN 
    SUMX ( 
        SUMMARIZE ( 'Table', 'Table'[LaneID], 'Table'[Carrier] ),
        VAR SumValue = [sum]
        VAR R1 = [Allocation % for R1]
        VAR R2 = [Allocation % for R2 Value]
        VAR R3 = [Allocation % for R3 Value]
        VAR RValue =
            SWITCH (
                RANKX(
                    SelectedCarriers,
                    COALESCE ( [sum], 99999999999 ),,
                    ASC,
                    Dense
                ),
                1, R1,
                2, R2,
                3, R3
            )
        RETURN   
            SumValue * RValue 
    ) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:33:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3069048#M106406</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-08T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3076413#M106976</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know why you have used [Coalesce] function in Rankx. Acutally, I am trying to use this dax in another coumn where Sumvalue is differenct column and Ranking is happening based on different column so, this dax is not working&amp;nbsp;&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;</description>
      <pubDate>Sun, 12 Feb 2023 06:56:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3076413#M106976</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-12T06:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3076499#M106979</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="379438" data-lia-user-login="Rahul_SC" class="lia-mention lia-mention-user"&gt;Rahul_SC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beacuse when placed inside the summary table, one of the produced values of [sum] is blank. Blank is is always the minimum value therefore always has the ascending rank 1. COALESCE replaces the blank with a high number "99999999" to return the highest ascending rank. This won't have an other effect and can be used with measures other than [sum] without any problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 11:43:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3076499#M106979</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-12T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group Ranking in Measure, and Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3100043#M108951</link>
      <description>&lt;P&gt;&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, now completely understood.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 18:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Ranking-in-Measure-and-Bar-chart/m-p/3100043#M108951</guid>
      <dc:creator>Rahul_SC</dc:creator>
      <dc:date>2023-02-26T18:28:13Z</dc:date>
    </item>
  </channel>
</rss>

