<?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 Topn N sorting for Stacked bar chart in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/1998009#M30914</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Need help and support one issue&lt;/P&gt;&lt;P&gt;In Tableau there is feature of showing Top N for stacked bar chart as shown below by Business Unit &amp;amp; By Company Code&lt;/P&gt;&lt;P&gt;each have individual sliders. If I change 6 or 7 for Business Unit (BU) it shows 6 &amp;amp; 7 respectively&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mhnsan1113_0-1628082424146.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/566870i878A0F12C7E8D20E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mhnsan1113_0-1628082424146.png" alt="Mhnsan1113_0-1628082424146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If am applying same in powerbi , i am not getting the results. i used by creating table&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1) Rank by BU = GENERATESERIES(0, 20, 1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;2 )&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Rank by BU Value = SELECTEDVALUE('Rank by BU'[Rank by BU])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;then went to main table and created&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(a)selectRanktopnumber. = IF(HASONEVALUE('Rank by BU'[Rank by BU]),MIN('Rank by BU'[Rank by BU]),20)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(b)Rankby BU. = IF(HASONEVALUE(po_change[business_unit]),RANKX(ALL(po_change[business_unit]),[PO Line No Count],,DESC))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(c)BU-RANK Final. = if ([(b)Rankby BU.]&amp;lt;[(a)selectRanktopnumber.],1,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Used the (c) in filters &amp;amp; 1) as slicer (marked in yellow).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mhnsan1113_3-1628085272521.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/566886i373BD54570187AED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mhnsan1113_3-1628085272521.png" alt="Mhnsan1113_3-1628085272521.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mhnsan1113_2-1628084985761.png" style="width: 141px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/566883i2C85D973FF30B198/image-dimensions/141x165?v=v2" width="141" height="165" role="button" title="Mhnsan1113_2-1628084985761.png" alt="Mhnsan1113_2-1628084985761.png" /&gt;&lt;/span&gt;&lt;P&gt;Its not getting sorted instead of 2 i'm getting 4 business unit.&lt;/P&gt;&lt;P&gt;Request if someone can help on the workaround&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 13:59:32 GMT</pubDate>
    <dc:creator>Mhnsan1113</dc:creator>
    <dc:date>2021-08-04T13:59:32Z</dc:date>
    <item>
      <title>Topn N sorting for Stacked bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/1998009#M30914</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Need help and support one issue&lt;/P&gt;&lt;P&gt;In Tableau there is feature of showing Top N for stacked bar chart as shown below by Business Unit &amp;amp; By Company Code&lt;/P&gt;&lt;P&gt;each have individual sliders. If I change 6 or 7 for Business Unit (BU) it shows 6 &amp;amp; 7 respectively&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mhnsan1113_0-1628082424146.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/566870i878A0F12C7E8D20E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mhnsan1113_0-1628082424146.png" alt="Mhnsan1113_0-1628082424146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If am applying same in powerbi , i am not getting the results. i used by creating table&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1) Rank by BU = GENERATESERIES(0, 20, 1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;2 )&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Rank by BU Value = SELECTEDVALUE('Rank by BU'[Rank by BU])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;then went to main table and created&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(a)selectRanktopnumber. = IF(HASONEVALUE('Rank by BU'[Rank by BU]),MIN('Rank by BU'[Rank by BU]),20)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(b)Rankby BU. = IF(HASONEVALUE(po_change[business_unit]),RANKX(ALL(po_change[business_unit]),[PO Line No Count],,DESC))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(c)BU-RANK Final. = if ([(b)Rankby BU.]&amp;lt;[(a)selectRanktopnumber.],1,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Used the (c) in filters &amp;amp; 1) as slicer (marked in yellow).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mhnsan1113_3-1628085272521.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/566886i373BD54570187AED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mhnsan1113_3-1628085272521.png" alt="Mhnsan1113_3-1628085272521.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mhnsan1113_2-1628084985761.png" style="width: 141px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/566883i2C85D973FF30B198/image-dimensions/141x165?v=v2" width="141" height="165" role="button" title="Mhnsan1113_2-1628084985761.png" alt="Mhnsan1113_2-1628084985761.png" /&gt;&lt;/span&gt;&lt;P&gt;Its not getting sorted instead of 2 i'm getting 4 business unit.&lt;/P&gt;&lt;P&gt;Request if someone can help on the workaround&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 13:59:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/1998009#M30914</guid>
      <dc:creator>Mhnsan1113</dc:creator>
      <dc:date>2021-08-04T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Topn N sorting for Stacked bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/2001195#M30942</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317916"&gt;@Mhnsan1113&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Can you please share a pbix file or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 01:43:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/2001195#M30942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-06T01:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Topn N sorting for Stacked bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/2007810#M31027</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i am not able to attached the test pbix file. when clicked on insert is asking for url.&lt;/P&gt;&lt;P&gt;how do i copy/paste the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 09:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/2007810#M31027</guid>
      <dc:creator>Mhnsan1113</dc:creator>
      <dc:date>2021-08-10T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Topn N sorting for Stacked bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/2014861#M31097</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317916"&gt;@Mhnsan1113&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can upload it to your network driver and share the link here.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Notice: please not attach sensitive data in your sample.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 08:14:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Topn-N-sorting-for-Stacked-bar-chart/m-p/2014861#M31097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-13T08:14:54Z</dc:date>
    </item>
  </channel>
</rss>

