<?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: Generating Row Number in Power BI Visualization in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193666#M115874</link>
    <description>&lt;LI-CODE lang="markup"&gt;Ranking =
IF (
    ISINSCOPE ( table[company] ),
    RANKX (
        ALLSELECTED ( table[company] ),
        CALCULATE ( SUM ( table[Tran Amount] ) )
    )
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 18 Apr 2023 12:37:01 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-04-18T12:37:01Z</dc:date>
    <item>
      <title>Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193341#M115858</link>
      <description>&lt;P&gt;Hello !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table displaying the top 20 company by total transaction amount as you can see :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This table can change with filter such as the date or the country.&lt;/P&gt;&lt;P&gt;I would like to add a column in the left of the table to display the ranking. So basicaly 1 to 20 like this :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to do that ?&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, 18 Apr 2023 10:10:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193341#M115858</guid>
      <dc:creator>Wael03</dc:creator>
      <dc:date>2023-04-18T10:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193372#M115859</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking =
RANKX ( ALLSELECTED ( 'Table'[Company] ), [Tran Amount] )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 10:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193372#M115859</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-18T10:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193519#M115868</link>
      <description>&lt;P&gt;I've tried it but when I put table[company] i cannot choose "tran amount' as second parameter i can only pick company again&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 11:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193519#M115868</guid>
      <dc:creator>Wael03</dc:creator>
      <dc:date>2023-04-18T11:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193540#M115869</link>
      <description>&lt;P&gt;Ok so I've managed to make it work using this DAX command :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ranking =
RANKX ( ALLSELECTED ( table[company] ), CALCULATE ( SUM ( table[Tran Amount] ) ) )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But as you can see the "Total" disappear for the "1" how can I use the DAX command only for the 20 first rows and not the total row ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 11:55:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193540#M115869</guid>
      <dc:creator>Wael03</dc:creator>
      <dc:date>2023-04-18T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193666#M115874</link>
      <description>&lt;LI-CODE lang="markup"&gt;Ranking =
IF (
    ISINSCOPE ( table[company] ),
    RANKX (
        ALLSELECTED ( table[company] ),
        CALCULATE ( SUM ( table[Tran Amount] ) )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:37:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193666#M115874</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-18T12:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193819#M115882</link>
      <description>&lt;P&gt;Well it kinda worked but the "Total" disappeared :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is there any way to add an "ELSE" statement to put the "Total" back ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193819#M115882</guid>
      <dc:creator>Wael03</dc:creator>
      <dc:date>2023-04-18T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193823#M115884</link>
      <description>&lt;P&gt;I think that will come back automatically if you add a column which gives a total, e.g. the sum of tran amount. Without any columns which give a meaningful total value the total row is automatically hidden.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193823#M115884</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-18T13:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Row Number in Power BI Visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193836#M115887</link>
      <description>&lt;P&gt;The thing is that the row "total" is still here but the "total" id is not. So I added an else :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ranking =
IF (
    ISINSCOPE ( table[company] ),
    RANKX (
        ALLSELECTED ( table[company] ),
        CALCULATE ( SUM ( table[Tran Amount] ) )
    ), "Total"
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But as you can see the ranking is now decimal I don't know why&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:52:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Generating-Row-Number-in-Power-BI-Visualization/m-p/3193836#M115887</guid>
      <dc:creator>Wael03</dc:creator>
      <dc:date>2023-04-18T13:52:12Z</dc:date>
    </item>
  </channel>
</rss>

