<?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: Variance between filtered date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3247399#M119694</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="550556" data-lia-user-login="jayceeb" class="lia-mention lia-mention-user"&gt;jayceeb&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I suppose you don't have a date table and the month shown in the visual and the slicer is coming the automatic time intelligence&amp;nbsp;hierarchy?&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 11:27:43 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-22T11:27:43Z</dc:date>
    <item>
      <title>Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3247318#M119687</link>
      <description>&lt;P&gt;Hi, How to get the variance for filtered dates.&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;5477604&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;5469004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Variance&lt;/TD&gt;&lt;TD&gt;-8,600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 10:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3247318#M119687</guid>
      <dc:creator>jayceeb</dc:creator>
      <dc:date>2023-05-22T10:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3247399#M119694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="550556" data-lia-user-login="jayceeb" class="lia-mention lia-mention-user"&gt;jayceeb&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I suppose you don't have a date table and the month shown in the visual and the slicer is coming the automatic time intelligence&amp;nbsp;hierarchy?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 11:27:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3247399#M119694</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-22T11:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3250826#M119939</link>
      <description>&lt;P&gt;Hi, I have a Date table shown below.&lt;/P&gt;&lt;P&gt;however I don't know how to get the variance. I'm using only one column for date and I want to select between months. please help&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 10:28:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3250826#M119939</guid>
      <dc:creator>jayceeb</dc:creator>
      <dc:date>2023-05-24T10:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3250887#M119942</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="550556" data-lia-user-login="jayceeb" class="lia-mention lia-mention-user"&gt;jayceeb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Variance =&lt;BR /&gt;VAR MaxMonth =&lt;BR /&gt;MAX ( MonthsF[YearMonth] )&lt;BR /&gt;VAR MinMonth =&lt;BR /&gt;MIN ( MonthsF[YearMonth] )&lt;BR /&gt;VAR MaxMonthValue =&lt;BR /&gt;CALCULATE ( SUM ( Consumptions[Total] ), MonthsF[YearMonth] = MaxMonth )&lt;BR /&gt;VAR MinMonthValue =&lt;BR /&gt;CALCULATE ( SUM ( Consumptions[Total] ), MonthsF[YearMonth] = MinMonth )&lt;BR /&gt;RETURN&lt;BR /&gt;MaxMonthValue - MinMonthValue&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3250887#M119942</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-24T11:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3250934#M119947</link>
      <description>&lt;P&gt;It works. Thank you very much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3250934#M119947</guid>
      <dc:creator>jayceeb</dc:creator>
      <dc:date>2023-05-24T11:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3260958#M120568</link>
      <description>&lt;P&gt;Hi could you please help with the percentage. for this calculated months?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 05:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3260958#M120568</guid>
      <dc:creator>jayceeb</dc:creator>
      <dc:date>2023-05-31T05:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3261059#M120581</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="550556" data-lia-user-login="jayceeb" class="lia-mention lia-mention-user"&gt;jayceeb&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do yu mean something like this?&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Variance % =
VAR MaxMonth =
    MAX ( MonthsF[YearMonth] )
VAR MinMonth =
    MIN ( MonthsF[YearMonth] )
VAR MaxMonthValue =
    CALCULATE ( SUM ( Consumptions[Total] ), MonthsF[YearMonth] = MaxMonth )
VAR MinMonthValue =
    CALCULATE ( SUM ( Consumptions[Total] ), MonthsF[YearMonth] = MinMonth )
RETURN
    DIVIDE ( MaxMonthValue - MinMonthValue, MaxMonthValue )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 May 2023 06:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3261059#M120581</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-31T06:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3263617#M120749</link>
      <description>&lt;P&gt;Hi. I tried but all shows zero %.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Thu, 01 Jun 2023 09:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3263617#M120749</guid>
      <dc:creator>jayceeb</dc:creator>
      <dc:date>2023-06-01T09:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3263629#M120751</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="550556" data-lia-user-login="jayceeb" class="lia-mention lia-mention-user"&gt;jayceeb&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Change the data type to %.&amp;nbsp;&lt;BR /&gt;However, this gives you the percentage difference between the two selected months if this is what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 10:05:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3263629#M120751</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-01T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between filtered date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3263635#M120752</link>
      <description>&lt;P&gt;OMG. Thanks master.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 10:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variance-between-filtered-date/m-p/3263635#M120752</guid>
      <dc:creator>jayceeb</dc:creator>
      <dc:date>2023-06-01T10:14:20Z</dc:date>
    </item>
  </channel>
</rss>

