<?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: Measure to get both selected month of the current year, and the same month from the previous year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760885#M36824</link>
    <description>&lt;P&gt;Thanks for the suggestion: I actually managed to solve it by making a sligh modification to your formula:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Wasserfall GJ VJ = VAR MonNum = CALCULATE(MAX(ln_dim_period[Monat1]), ALLSELECTED(ln_dim_period)) RETURN CALCULATE(SUM(Wasserfall[Value])/1000, Wasserfall[Monat]=MonNum, ALL(ln_dim_period[Jahr1]), ALL(ln_dim_period[Name]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 02 Apr 2021 05:00:34 GMT</pubDate>
    <dc:creator>wl2020</dc:creator>
    <dc:date>2021-04-02T05:00:34Z</dc:date>
    <item>
      <title>Measure to get both selected month of the current year, and the same month from the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760622#M36815</link>
      <description>&lt;P&gt;I am trying to create a waterfall chart that looks like this, which compares the results of last year and this year&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The datatable in question is a vertical table that with a label, a value, and date column.&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;It is connected to a date table, and I have a drop down slicer with the dates. When a user choose a date, I want to get the results of the date chose, as well as the same date last year, sort of like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have created a DAX formula,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Wasserfall GJ VJ = VAR MonNum = 1 RETURN CALCULATE(SUM(Wasserfall[Value])/1000, Wasserfall[Monat]=MonNum, ALL(ln_dim_period[Jahr1]), ALL(ln_dim_period[Name]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which works, but only if I manually enter a number. If I change the number to something dynamic such as SELECTEDVALUE(Month), it would only pull up the information of the month selected, and not that of the same month from the previous year. Does anyone have any idea how to fix the formula so it responds to the date slicer?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Apr 2021 23:23:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760622#M36815</guid>
      <dc:creator>wl2020</dc:creator>
      <dc:date>2021-04-01T23:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to get both selected month of the current year, and the same month from the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760847#M36823</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="207346" data-lia-user-login="wl2020" class="lia-mention lia-mention-user"&gt;wl2020&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is OK with you, please share your sample pbix file, then I can try to come up with desirable measures for your report.&lt;/P&gt;&lt;P&gt;By only seeing the screenshot of your report, in my opinion, no need to write VAR MonNum=1.&lt;/P&gt;&lt;P&gt;Instead,&lt;/P&gt;&lt;P&gt;VAR&amp;nbsp; currentmonth = Max (currentmonthnumbercolumn in your date table), then fix some of the measures in other area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”times" color="”#000000”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”times" color="”#000000”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 04:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760847#M36823</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-02T04:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to get both selected month of the current year, and the same month from the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760885#M36824</link>
      <description>&lt;P&gt;Thanks for the suggestion: I actually managed to solve it by making a sligh modification to your formula:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Wasserfall GJ VJ = VAR MonNum = CALCULATE(MAX(ln_dim_period[Monat1]), ALLSELECTED(ln_dim_period)) RETURN CALCULATE(SUM(Wasserfall[Value])/1000, Wasserfall[Monat]=MonNum, ALL(ln_dim_period[Jahr1]), ALL(ln_dim_period[Name]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Apr 2021 05:00:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-both-selected-month-of-the-current-year-and-the/m-p/1760885#M36824</guid>
      <dc:creator>wl2020</dc:creator>
      <dc:date>2021-04-02T05:00:34Z</dc:date>
    </item>
  </channel>
</rss>

