<?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 Median of growth in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3313280#M123913</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created a measure for yoy sales growth brand wise.&lt;/P&gt;&lt;P&gt;Now from this measure i want to create another measure which will categorise each brand as high&amp;nbsp;&lt;SPAN&gt;Based on the condition that if it's yoy growth is greater than median yoy growth of all brands, else it should be low&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: data is at order level&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone please guide me through this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a daxc but i am not so confident about it-&lt;/P&gt;&lt;P&gt;Mediangrowth=medianx(table, table[growth]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Category=if(table[growth]&amp;gt;mediangrowth, high, low)&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 21:27:14 GMT</pubDate>
    <dc:creator>Sscb</dc:creator>
    <dc:date>2023-07-03T21:27:14Z</dc:date>
    <item>
      <title>Median of growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3313280#M123913</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created a measure for yoy sales growth brand wise.&lt;/P&gt;&lt;P&gt;Now from this measure i want to create another measure which will categorise each brand as high&amp;nbsp;&lt;SPAN&gt;Based on the condition that if it's yoy growth is greater than median yoy growth of all brands, else it should be low&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: data is at order level&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone please guide me through this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a daxc but i am not so confident about it-&lt;/P&gt;&lt;P&gt;Mediangrowth=medianx(table, table[growth]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Category=if(table[growth]&amp;gt;mediangrowth, high, low)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 21:27:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3313280#M123913</guid>
      <dc:creator>Sscb</dc:creator>
      <dc:date>2023-07-03T21:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Median of growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3313710#M123933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584015" data-lia-user-login="Sscb" class="lia-mention lia-mention-user"&gt;Sscb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create calculated columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Mediangrowth = MEDIANX('Table','Table'[growth])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Category = IF('Table'[growth]&amp;gt;'Table'[Mediangrowth],"high","low")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(3) We can create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure_Mediangrowth = MEDIANX(ALL('Table'),'Table'[growth])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure_Category = IF(MAX('Table'[growth])&amp;gt;[Measure_Mediangrowth] ,"high","low")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 06:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3313710#M123933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-04T06:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Median of growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3314083#M123950</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the thing is growth is also a measure, which is yoy growth.&lt;/P&gt;&lt;P&gt;Will this work there as well?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3314083#M123950</guid>
      <dc:creator>Sscb</dc:creator>
      <dc:date>2023-07-04T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Median of growth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3314182#M123954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584015" data-lia-user-login="Sscb" class="lia-mention lia-mention-user"&gt;Sscb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure_Mediangrowth = MEDIANX(ALL('Table'),'Table'[growth])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure_Category = IF('Table'[growth]&amp;gt;[Measure_Mediangrowth] ,"high","low")&lt;/LI-CODE&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;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 02:58:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Median-of-growth/m-p/3314182#M123954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-05T02:58:18Z</dc:date>
    </item>
  </channel>
</rss>

