<?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: DAX To Calculate the Difference between two months of a Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737806#M2136</link>
    <description>&lt;P&gt;There is no elegant soution, just have to use some tricks.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 15:37:51 GMT</pubDate>
    <dc:creator>parry2k</dc:creator>
    <dc:date>2019-07-11T15:37:51Z</dc:date>
    <item>
      <title>DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737745#M2127</link>
      <description>&lt;P&gt;I have a number of similiar measures, e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Risk Count = CALCULATE(
                COUNT('Flags Data'[Risk]),
                'Flags Data'[Risk] = "0"
)&lt;/PRE&gt;&lt;P&gt;I have used these in a matrix against some name and and showing Months as a Column Value, there are 2 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to show the difference between the two months but am unsure how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the below to get the previous month count, with the intention of subtracting the two, but this just show as a blank, and also it shows up&amp;nbsp; in the matrix for both months, when I just want one difference column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Previous Month Risk Count = CALCULATE( [Risk Count],
                            PREVIOUSMONTH(DateTable[Date]))&lt;/PRE&gt;&lt;P&gt;Any advice appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737745#M2127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737769#M2128</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; seems like you have date dimension in your model which is good. From which table you are showing column in your matrix? Are you showing month from DateTable?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737769#M2128</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737774#M2129</link>
      <description>&lt;P&gt;Thx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was the issue! I was using the Date field in my Fact Table!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:20:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737774#M2129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737784#M2131</link>
      <description>&lt;P&gt;However, this still isn't quite what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a measure&amp;nbsp; for the difference, using the measure stated above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Risk Count Diff = [Risk Count] - [Previous Month Risk Count]&lt;/PRE&gt;&lt;P&gt;When I bring that into my table this gives a column for both my selected months, but I want to only show the later month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Matrix is show these Columns&lt;/P&gt;&lt;PRE&gt;May                                       June   
Risk Count     Risk Count Difference      Risk Count     Risk Count Difference&lt;/PRE&gt;&lt;P&gt;But I want to see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;May            June   
Risk Count     Risk Count     Risk Count Difference&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737784#M2131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737792#M2133</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; I dont htink you can do that but instead, you drop all 3 measures on value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Risk Count&lt;/P&gt;
&lt;P&gt;- Previous Month Risk Count&lt;/P&gt;
&lt;P&gt;- Risk Difference&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and filter on most recent month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way you will only see June month on the header with 3 measures. Previous month implied it is May, Although if you want both the months on header, you cannot do it with matrix. Matrix is going to show all the values for each column (month)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737792#M2133</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737797#M2134</link>
      <description>&lt;P&gt;Thats a shame, I can't do that as I have other measures in the table that I need to see for May.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:33:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737797#M2134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T15:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737804#M2135</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; you can be smart with your Risk Difference measure to return blank value in case of May and in that case you will not see value for May, although the header will be there whcih you can minimize and turn off auto width.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:37:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737804#M2135</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX To Calculate the Difference between two months of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737806#M2136</link>
      <description>&lt;P&gt;There is no elegant soution, just have to use some tricks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-To-Calculate-the-Difference-between-two-months-of-a-Measure/m-p/737806#M2136</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T15:37:51Z</dc:date>
    </item>
  </channel>
</rss>

