<?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: how to create current month vs previous month line chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318233#M124166</link>
    <description>&lt;P&gt;1). The card visual doesn't have the same filters - it only has a filter on year month, the chart has a filter on date as well. Your measure replaces the filter on year month, so the card visual works.&lt;/P&gt;
&lt;P&gt;2). I would think that the other measures you have seen work because they are replacing existing filters on the same columns. Otherwise they would need to use REMOVEFILTERS&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 11:18:06 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-07-06T11:18:06Z</dc:date>
    <item>
      <title>how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3317997#M124157</link>
      <description>&lt;P&gt;hello everyone i have a slicer that lets me seelct a month ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;when i select for example june , i can see the dates of junes on the x-axis and the value of june&lt;BR /&gt;&lt;BR /&gt;what i want is how can i add last month so may on the chart while keeping structure of date to june?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;so i want a dotted line for previous month that can show how we performed this month vs last one&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 09:19:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3317997#M124157</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-07-06T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318088#M124158</link>
      <description>&lt;P&gt;If your current measure is [Value] then you can create a new measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Value last month =
CALCULATE ( [Value], DATEADD ( 'Date'[Date], -1, MONTH ) )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 09:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318088#M124158</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-06T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318165#M124161</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to learn from you regarding the q from&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="434309" data-lia-user-login="eliasayyy" class="lia-mention lia-mention-user"&gt;eliasayyy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I can see that your measure works for my test data.&lt;/P&gt;&lt;P&gt;However, I wrote a similar measure which displays no line on the line chart.&lt;/P&gt;&lt;P&gt;Are you able to help me understand why it displays the exact same value as your measure within the card visual, but displays nothing at all on the line chart?&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;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 10:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318165#M124161</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-07-06T10:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318186#M124163</link>
      <description>&lt;P&gt;When a table is marked as a date table it has some special behaviour. If you apply a filter onto the Date column then filters on any other columns of the date table are automatically removed. That means that in my code all other filters on the date table are removed, but in your version there are 2 conflicting filters in place. The first filter is on the date, from the chart, and the second which you place on the year month column. e.g. it is filtering rows where the date is June 18 and the year month is May 2023 - that returns no rows so the measure is blank.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 10:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318186#M124163</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-06T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318222#M124165</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for teaching me this special behavior.&amp;nbsp; (Can't believe I've been working with DAX for 2 years without knowing this.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Does it only apply to certain visuals then?&lt;/P&gt;&lt;P&gt;Because it doesn't impact the card the same way as the line chart.&lt;/P&gt;&lt;P&gt;The card also has the same 2 conflicting filters in place, yet the measure is not blank within the card.&lt;/P&gt;&lt;P&gt;It shows the correct Sales for the previous month, just like your measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I have often seen other measures on Power BI forums filter other fields in the 'Date' (or 'Calendar') table aside from the 'Date'[Date] column without running into this same issue.&amp;nbsp; Would you guess that all those measures simply work due to the lucky absence of additional conflicting date filters?&amp;nbsp; (Now I want to go back &amp;amp; check.&amp;nbsp; LOL.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318222#M124165</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-07-06T11:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318233#M124166</link>
      <description>&lt;P&gt;1). The card visual doesn't have the same filters - it only has a filter on year month, the chart has a filter on date as well. Your measure replaces the filter on year month, so the card visual works.&lt;/P&gt;
&lt;P&gt;2). I would think that the other measures you have seen work because they are replacing existing filters on the same columns. Otherwise they would need to use REMOVEFILTERS&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318233#M124166</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-06T11:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to create current month vs previous month line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318246#M124168</link>
      <description>&lt;P&gt;Ah, ok.&amp;nbsp; That makes sense.&amp;nbsp; Thanks again very much for explaining.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-create-current-month-vs-previous-month-line-chart/m-p/3318246#M124168</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-07-06T11:27:25Z</dc:date>
    </item>
  </channel>
</rss>

