<?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: Want to write rank by each month per area DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2246738#M53951</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awesome.This is working as expected But i want to know how it works?&lt;/P&gt;&lt;P&gt;i mean&lt;/P&gt;&lt;P&gt;1.why we need to use area column from derived PBI table instead of existing one ?(What is the difference between these two columns)&lt;/P&gt;&lt;P&gt;2. How negative value (i.e. in if condition we mention -1) giving maxrank+1 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 05:13:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-20T05:13:10Z</dc:date>
    <item>
      <title>Want to write rank by each month per area DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2245769#M53907</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate&amp;nbsp; rank by month per each area. If there is any null value/no value in sales column will asign lowset rank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power BI Link:&amp;nbsp;&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Au-aOkl1BoHujVmkmN9Ws9yFCDSk?e=LQfhyt" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!Au-aOkl1BoHujVmkmN9Ws9yFCDSk?e=LQfhyt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Sample Data&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Having first 3 columns are source columns , Rank-output which we need to generate , In the &lt;STRONG&gt;attached one drive file having original data&lt;/STRONG&gt; posting requirement with sample data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Output Visual:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me out on this ?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Dec 2021 18:39:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2245769#M53907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-18T18:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Want to write rank by each month per area DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2245785#M53908</link>
      <description>&lt;P&gt;Ranking over Sheet1 isn't quite what you want since each area can have multiple rows per month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANKX (
    ALL ( Sheet1[Area] ),
    CALCULATE (
        SUM ( Sheet1[Sales] ),
        ALLEXCEPT ( Sheet1, Sheet1[YearMonth], Sheet1[Area] )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Dec 2021 19:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2245785#M53908</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-18T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Want to write rank by each month per area DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2245996#M53916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. I am getting rank now but want to showcase rank to null values also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to assign maxrank+1 to all null values.&lt;/P&gt;&lt;P&gt;In the below example, We don't have sales in the area of C&amp;amp; K (Apr-2021) but we need to assign rank to all null values i.e.maxrank+1(15+1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Assign Rank to null values&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Power BI Refrence Link: &lt;STRONG&gt;&lt;A href="https://1drv.ms/u/s!Au-aOkl1BoHujVmkmN9Ws9yFCDSk?e=rEW41e" target="_blank"&gt;https://1drv.ms/u/s!Au-aOkl1BoHujVmkmN9Ws9yFCDSk?e=rEW41e&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 07:26:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2245996#M53916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-19T07:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Want to write rank by each month per area DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2246286#M53933</link>
      <description>&lt;P&gt;In order to show anything in these cells, I'd recommend creating a dimension table for [Area].&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(See attached.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can define blank to be a negative number like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANKX (
    ALL ( Sheet1[Area] ),
    VAR SumSales =
        CALCULATE (
            SUM ( Sheet1[Sales] ),
            ALLEXCEPT ( Sheet1, Sheet1[YearMonth], Sheet1[Area] )
        )
    RETURN
        IF ( ISBLANK ( SumSales ), -1, SumSales )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 19 Dec 2021 19:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2246286#M53933</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-19T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Want to write rank by each month per area DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2246738#M53951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awesome.This is working as expected But i want to know how it works?&lt;/P&gt;&lt;P&gt;i mean&lt;/P&gt;&lt;P&gt;1.why we need to use area column from derived PBI table instead of existing one ?(What is the difference between these two columns)&lt;/P&gt;&lt;P&gt;2. How negative value (i.e. in if condition we mention -1) giving maxrank+1 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 05:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2246738#M53951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T05:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Want to write rank by each month per area DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2247912#M53997</link>
      <description>&lt;P&gt;The problem with the existing table is that there are no rows for "c" and "k" in Apr-21, so you run into an &lt;A href="https://www.sqlbi.com/articles/understanding-dax-auto-exist/" target="_blank"&gt;auto-exist problem&lt;/A&gt; where those cells won't show anything no matter how you define the measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I picked -1 rather arbitrarily. I assumed the smallest non-blank value would be zero and picked something less than that. Feel free to pick your favorite negative number instead.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 15:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Want-to-write-rank-by-each-month-per-area-DAX/m-p/2247912#M53997</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-20T15:23:55Z</dc:date>
    </item>
  </channel>
</rss>

