<?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: filter selection previous month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-selection-previous-month/m-p/926028#M9380</link>
    <description>&lt;P&gt;Try like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rank diff = if(rank(all(Sales),[MTD Sales],,desc,dense) &amp;gt;rank(all(Sales),[last MTD Sales],,desc,dense),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.&lt;BR /&gt;In case it does not help, please provide additional information and mark me with @ &lt;/STRONG&gt;&lt;BR /&gt;Thanks. &lt;STRONG&gt;My Recent Blog -&lt;/STRONG&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-1-Time-Intelligence-in/ba-p/922885" target="_blank"&gt;Decoding Direct Query - Time Intelligence&lt;/A&gt; , &lt;A href="https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners/ba-p/890814" target="_blank"&gt;Winner Coloring on MAP&lt;/A&gt; , &lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;&amp;gt;HR Analytics&lt;/A&gt; , &lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p/881739" target="_blank"&gt;Power BI Working with Non-Standard Time&lt;/A&gt;And &lt;A href="https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601" target="_blank"&gt;Comparing Data Across Date Ranges&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/amitchandak78/" target="_blank"&gt;Connect on Linkedin&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2020 13:30:17 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-02-08T13:30:17Z</dc:date>
    <item>
      <title>filter selection previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-selection-previous-month/m-p/925987#M9379</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Sales table having sales brandwise and a date table having month and year columns which are dropped as filters.&lt;/P&gt;&lt;P&gt;I have column to display which should be the rank change of that brand from current month to previous month.&lt;/P&gt;&lt;P&gt;Its like when I select feb and feb rank is greater than jan rank than it should be displaying 1 else 0. It should be dynamic according to the month selction in the filters and if no month filter is there then it should display rank according to sales of current year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help me out?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 10:38:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-selection-previous-month/m-p/925987#M9379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-08T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: filter selection previous month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-selection-previous-month/m-p/926028#M9380</link>
      <description>&lt;P&gt;Try like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rank diff = if(rank(all(Sales),[MTD Sales],,desc,dense) &amp;gt;rank(all(Sales),[last MTD Sales],,desc,dense),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.&lt;BR /&gt;In case it does not help, please provide additional information and mark me with @ &lt;/STRONG&gt;&lt;BR /&gt;Thanks. &lt;STRONG&gt;My Recent Blog -&lt;/STRONG&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-1-Time-Intelligence-in/ba-p/922885" target="_blank"&gt;Decoding Direct Query - Time Intelligence&lt;/A&gt; , &lt;A href="https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners/ba-p/890814" target="_blank"&gt;Winner Coloring on MAP&lt;/A&gt; , &lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;&amp;gt;HR Analytics&lt;/A&gt; , &lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p/881739" target="_blank"&gt;Power BI Working with Non-Standard Time&lt;/A&gt;And &lt;A href="https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601" target="_blank"&gt;Comparing Data Across Date Ranges&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/amitchandak78/" target="_blank"&gt;Connect on Linkedin&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 13:30:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filter-selection-previous-month/m-p/926028#M9380</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-02-08T13:30:17Z</dc:date>
    </item>
  </channel>
</rss>

