<?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 Score Card with Dynamic Ranking in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Score-Card-with-Dynamic-Ranking/m-p/4241244#M57834</link>
    <description>&lt;P&gt;Hi Everyone.&lt;BR /&gt;&lt;BR /&gt;I have an issue with score card and column charts where i need the dynamic ranking.&lt;BR /&gt;I have a category column with 16 distinct values in it and few other columns which im using as filters. Lets say 5 filters im using.&lt;BR /&gt;I need to Show the Category name in one scorecard and its percentage value in another score card and its last 6 months cloumn trend to its side.&lt;BR /&gt;Similarly i need to keep for 16 category values.&lt;BR /&gt;I need the dynamic ranking for it.&amp;nbsp;&lt;BR /&gt;I tried creating the dynamic ranking in measure. but it was not working. im getting all the values as "1"&lt;BR /&gt;I need to display all 16 rows&amp;nbsp; of two scorecard and a chart, in accending order of percentage value. that why i need a ranking. Based on the slicer selections the rank should change.&lt;BR /&gt;Lets say if i select one slicer value and it has onlt 5 categories, only i need to show the top 5 rows and remaining rows of score cards and graph should be empty.&amp;nbsp;&lt;BR /&gt;Im able to crack this by creating static ranking by creating a calculated table.But thats not the requriment.&lt;BR /&gt;Kindly help me with some ideas.&lt;BR /&gt;Thanks it advance.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 11:01:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-14T11:01:50Z</dc:date>
    <item>
      <title>Score Card with Dynamic Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Score-Card-with-Dynamic-Ranking/m-p/4241244#M57834</link>
      <description>&lt;P&gt;Hi Everyone.&lt;BR /&gt;&lt;BR /&gt;I have an issue with score card and column charts where i need the dynamic ranking.&lt;BR /&gt;I have a category column with 16 distinct values in it and few other columns which im using as filters. Lets say 5 filters im using.&lt;BR /&gt;I need to Show the Category name in one scorecard and its percentage value in another score card and its last 6 months cloumn trend to its side.&lt;BR /&gt;Similarly i need to keep for 16 category values.&lt;BR /&gt;I need the dynamic ranking for it.&amp;nbsp;&lt;BR /&gt;I tried creating the dynamic ranking in measure. but it was not working. im getting all the values as "1"&lt;BR /&gt;I need to display all 16 rows&amp;nbsp; of two scorecard and a chart, in accending order of percentage value. that why i need a ranking. Based on the slicer selections the rank should change.&lt;BR /&gt;Lets say if i select one slicer value and it has onlt 5 categories, only i need to show the top 5 rows and remaining rows of score cards and graph should be empty.&amp;nbsp;&lt;BR /&gt;Im able to crack this by creating static ranking by creating a calculated table.But thats not the requriment.&lt;BR /&gt;Kindly help me with some ideas.&lt;BR /&gt;Thanks it advance.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 11:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Score-Card-with-Dynamic-Ranking/m-p/4241244#M57834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-14T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Score Card with Dynamic Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Score-Card-with-Dynamic-Ranking/m-p/4242285#M57850</link>
      <description>&lt;P&gt;Hi&amp;nbsp; @Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyangliumsft_0-1728959820698.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1183095i1FCEE2647C09ED0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyangliumsft_0-1728959820698.png" alt="vyangliumsft_0-1728959820698.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;category Name =
VAR _group1 =
    SELECTEDVALUE ( 'Table'[Group1] )
VAR _group2 =
    SELECTCOLUMNS ( 'Table', "test", 'Table'[Group2] )
VAR _table =
    FILTER (
        ALL ( 'Table' ),
        'Table'[Group1] = _group1
            &amp;amp;&amp;amp; 'Table'[Group2] IN _group2
    )
VAR _table2 =
    SUMMARIZE ( _table, [Category] )
RETURN
    CONCATENATEX ( _table2, [Category], "-" )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;category percentage =
VAR _group1 =
    SELECTEDVALUE ( 'Table'[Group1] )
VAR _group2 =
    SELECTCOLUMNS ( 'Table', "test", 'Table'[Group2] )
VAR _today =
    TODAY ()
VAR _last6month =
    DATE ( YEAR ( _today ), MONTH ( _today ) - 6, DAY ( _today ) )
VAR _table =
    FILTER (
        ALL ( 'Table' ),
        'Table'[Group1] = _group1
            &amp;amp;&amp;amp; 'Table'[Group2] IN _group2
    )
VAR _table2 =
    ADDCOLUMNS (
        _table,
        "test1",
            [Category] &amp;amp; "-"
                &amp;amp; ROUND (
                    SUMX (
                        FILTER (
                            _table,
                            [Category] = EARLIER ( [Category] )
                                &amp;amp;&amp;amp; [Group1] = EARLIER ( [Group1] )
                                &amp;amp;&amp;amp; [Group2] = EARLIER ( [Group2] )
                                &amp;amp;&amp;amp; [Date] &amp;gt;= _last6month
                                &amp;amp;&amp;amp; [Date] &amp;lt;= _today
                        ),
                        [Value]
                    )
                        / SUMX (
                            FILTER (
                                _table,
                                [Category] = EARLIER ( [Category] )
                                    &amp;amp;&amp;amp; [Group1] = EARLIER ( [Group1] )
                            ),
                            [Value]
                        ),
                    2
                )
    )
VAR _table3 =
    SUMMARIZE ( _table2, [Category], [test1] )
RETURN
    CONCATENATEX (
        FILTER ( _table3, [Category] &amp;lt;= MAX ( [Category] ) ),
        [test1],
        "/"
    )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;category rank =
VAR _group1 =
    SELECTEDVALUE ( 'Table'[Group1] )
VAR _group2 =
    SELECTCOLUMNS ( 'Table', "test", 'Table'[Group2] )
VAR _today =
    TODAY ()
VAR _last6month =
    DATE ( YEAR ( _today ), MONTH ( _today ) - 6, DAY ( _today ) )
VAR _table =
    FILTER (
        ALL ( 'Table' ),
        'Table'[Group1] = _group1
            &amp;amp;&amp;amp; 'Table'[Group2] IN _group2
    )
VAR _table2 =
    ADDCOLUMNS (
        _table,
        "test1",
            ROUND (
                SUMX (
                    FILTER (
                        _table,
                        [Category] = EARLIER ( [Category] )
                            &amp;amp;&amp;amp; [Group1] = EARLIER ( [Group1] )
                            &amp;amp;&amp;amp; [Group2] = EARLIER ( [Group2] )
                            &amp;amp;&amp;amp; [Date] &amp;gt;= _last6month
                            &amp;amp;&amp;amp; [Date] &amp;lt;= _today
                    ),
                    [Value]
                )
                    / SUMX (
                        FILTER (
                            _table,
                            [Category] = EARLIER ( [Category] )
                                &amp;amp;&amp;amp; [Group1] = EARLIER ( [Group1] )
                        ),
                        [Value]
                    ),
                2
            )
    )
VAR _table3 =
    ADDCOLUMNS ( _table2, "rank", RANKX ( _table2, [test1],, DESC, DENSE ) )
RETURN
    MAXX ( FILTER ( _table3, [Category] = MAX ( 'Table'[Category] ) ), [rank] )
&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyangliumsft_1-1728959820702.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1183096iD17BDE5907F55107/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyangliumsft_1-1728959820702.png" alt="vyangliumsft_1-1728959820702.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 02:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Score-Card-with-Dynamic-Ranking/m-p/4242285#M57850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-15T02:39:18Z</dc:date>
    </item>
  </channel>
</rss>

