<?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: Need help with Dax to display Previous Month Name in a Card based no a Slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1531070#M30051</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;, this works perfectly. Really appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sathwik&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 13:08:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-03T13:08:56Z</dc:date>
    <item>
      <title>Need help with Dax to display Previous Month Name in a Card based no a Slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1530955#M30043</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have Created a DAX to display the Slicer Filtered Value in Card, but I am not able to write the same DAX to display Previous Month Name, Previous Quarter Name, or Previous Year Name based on the slicer selection.&lt;BR /&gt;For Eg: If Slicer is filtered for Feb, the Previous Month's Card should show Jan, similarly for Quarter and Year.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dax for Current Selection:&lt;BR /&gt;Selected date Dynamic Title = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var curr_yr = YEAR(TODAY())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISFILTERED('Calendar Table'[Date].[Month]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX(VALUES ('Calendar Table'[Date].[Month]),'Calendar Table'[Date].[Month],",") &amp;amp; " " &amp;amp; VALUES('Calendar Table'[Date].[Year]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISFILTERED('Calendar Table'[Date].[Quarter]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX(VALUES ('Calendar Table'[Date].[Quarter]),'Calendar Table'[Date].[Quarter],",") &amp;amp; " " &amp;amp; VALUES('Calendar Table'[Date].[Year]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISFILTERED('Calendar Table'[Date].[Year]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX(VALUES ('Calendar Table'[Date].[Year]),'Calendar Table'[Date].[Year],","),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISFILTERED('Calendar Table'[Date]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX(VALUES ('Calendar Table'[Date]),'Calendar Table'[Date],","),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Current Year"))))&lt;BR /&gt;The Goal here is to display 2 cards, one with current selection(I think I have achieved that) and the other one with previous names (Month, Quarter and Year) based on the selection on the slicer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Dec 2020 12:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1530955#M30043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-03T12:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax to display Previous Month Name in a Card based no a Slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1531008#M30046</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Make sure name you want to display is avaiable as columns in date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Month Name = CALCULATE(max('Date'[Month Year]),DATESMTD('Date'[Date]))&lt;BR /&gt;last Month Name = CALCULATE(max('Date'[Month Year]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))&lt;BR /&gt;Last Qtr Name = CALCULATE(max('Date'[Qtr Year]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))&lt;BR /&gt;Last year Name = CALCULATE(max('Date'[Year]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 12:40:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1531008#M30046</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-03T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax to display Previous Month Name in a Card based no a Slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1531070#M30051</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;, this works perfectly. Really appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sathwik&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 13:08:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-to-display-Previous-Month-Name-in-a-Card/m-p/1531070#M30051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-03T13:08:56Z</dc:date>
    </item>
  </channel>
</rss>

