<?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: Dynamic Sorting stacked bar chart based on slicer value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2850902#M91370</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307670" data-lia-user-login="rashesh" class="lia-mention lia-mention-user"&gt;rashesh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a sample to have a test, I think Power BI doesn't support us to sort the bar chart by value in each legend.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;our demand is a good idea, while it is not supported to implement in Power BI currently.&lt;BR /&gt;You can vote up this idea for this function：&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=5fffb834-c6a7-eb11-89ee-0003ff452f24" target="_blank"&gt;Microsoft Idea (powerbi.com)&lt;/A&gt;&lt;BR /&gt;Or you can submit a new &lt;A href="https://ideas.powerbi.com/ideas/search-ideas/" target="_self"&gt;idea&lt;/A&gt; to improve the Power BI.&lt;BR /&gt;It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 09:42:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-19T09:42:35Z</dc:date>
    <item>
      <title>Dynamic Sorting stacked bar chart based on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848363#M91203</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have one slicer and 3 Stacked bar charts and this bar chart contains only X-axis and legends.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my slicer, I have values like 1,2,3,4 when I select 1 or 2, or 3 my stacked bar chart should sort according to alphabetic order but instead of these three when I select 4 My stacked bar chart has to be sorted based on legend value, not the alphabet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for whatever effort you are giving into this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 07:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848363#M91203</guid>
      <dc:creator>rashesh</dc:creator>
      <dc:date>2022-10-18T07:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Sorting stacked bar chart based on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848387#M91205</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Here is one way to do this:&lt;BR /&gt;&lt;BR /&gt;1. create measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dynamic sort = &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _val = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table 6'[Value]) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;_val &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;}, &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table (10)'[Column1]),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;_val = &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table (10)'[Column2]))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Here table 6 = slicer values&lt;BR /&gt;&lt;BR /&gt;Table (10) = column chart fact table &lt;BR /&gt;&lt;BR /&gt;Data:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;2. place the measure in a tooltip:&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;3. Select sorting to happen based on this measure (... in the top right of the chart)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;SPAN&gt;&lt;SPAN&gt;4. Based on selection the chart is sorted with numbers or with alphabet:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank" rel="noopener"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;
&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Oct 2022 07:46:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848387#M91205</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-10-18T07:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Sorting stacked bar chart based on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848473#M91210</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;for your answer but&lt;BR /&gt;I am sorry to not mention one thing I need to sort the legend, not the axis based on the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 08:18:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848473#M91210</guid>
      <dc:creator>rashesh</dc:creator>
      <dc:date>2022-10-18T08:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Sorting stacked bar chart based on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848744#M91230</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to have a dynamic legend. Then the easiest way is to use field parameters:&lt;BR /&gt;&lt;BR /&gt;1. Create a new field parameter:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(enable this in preview features)&lt;BR /&gt;&lt;BR /&gt;2. Place the desired olumns:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Now palce the parameter in legend:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selecting values from parameter slicer will change the legend&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 09:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848744#M91230</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-10-18T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Sorting stacked bar chart based on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848880#M91234</link>
      <description>&lt;P&gt;Thank you so much for your great&amp;nbsp;&lt;SPAN&gt;effort&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp; But let me clear my requirement again.&lt;BR /&gt;&lt;BR /&gt;You can see my table and visual that is given below.&lt;BR /&gt;here I selected the 1 so my legends are short according to the alphabetic order same as 2 or 3 but instead of these three when 4 is selected from the slicer this my stocked bar chart legend must sort according to the value(sum of X_Axis) column.&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hope it clears you&amp;nbsp;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;@amitchandak&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 06:39:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2848880#M91234</guid>
      <dc:creator>rashesh</dc:creator>
      <dc:date>2022-10-19T06:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Sorting stacked bar chart based on slicer value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2850902#M91370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307670" data-lia-user-login="rashesh" class="lia-mention lia-mention-user"&gt;rashesh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a sample to have a test, I think Power BI doesn't support us to sort the bar chart by value in each legend.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;our demand is a good idea, while it is not supported to implement in Power BI currently.&lt;BR /&gt;You can vote up this idea for this function：&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=5fffb834-c6a7-eb11-89ee-0003ff452f24" target="_blank"&gt;Microsoft Idea (powerbi.com)&lt;/A&gt;&lt;BR /&gt;Or you can submit a new &lt;A href="https://ideas.powerbi.com/ideas/search-ideas/" target="_self"&gt;idea&lt;/A&gt; to improve the Power BI.&lt;BR /&gt;It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 09:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Sorting-stacked-bar-chart-based-on-slicer-value/m-p/2850902#M91370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-19T09:42:35Z</dc:date>
    </item>
  </channel>
</rss>

