<?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 % Comparison from Pervious Year and Month Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883262#M40509</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a help with regards to&amp;nbsp;% Comparison from Pervious Year and Month Measure and both should come from same visual using drill down option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we can use any dummy data to achieve my graphs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year Wise Presentation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When i drill down i should view Month Wise View like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jun 2021 10:30:21 GMT</pubDate>
    <dc:creator>kolturra</dc:creator>
    <dc:date>2021-06-05T10:30:21Z</dc:date>
    <item>
      <title>% Comparison from Pervious Year and Month Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883262#M40509</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a help with regards to&amp;nbsp;% Comparison from Pervious Year and Month Measure and both should come from same visual using drill down option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we can use any dummy data to achieve my graphs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year Wise Presentation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When i drill down i should view Month Wise View like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Raghu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 10:30:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883262#M40509</guid>
      <dc:creator>kolturra</dc:creator>
      <dc:date>2021-06-05T10:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: % Comparison from Pervious Year and Month Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883363#M40512</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70330" data-lia-user-login="kolturra" class="lia-mention lia-mention-user"&gt;kolturra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure if I read your question correctly. If you want to drill down to the next level, you click on the double arrow.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Make sure your fields are stacked as below:&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 14:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883363#M40512</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-05T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: % Comparison from Pervious Year and Month Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883385#M40517</link>
      <description>&lt;P&gt;Sorry I think I did not give proper communication in my earlier message. We need to create measure for % comparison with previous year and month&lt;BR /&gt;&lt;BR /&gt;Year wise Visual.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Year wise it has values of each year in bar.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;% Comparison with previous year which is line chart - This we have to achieve with measure&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Drill Down Visual - Once we click on specific year, we will drill down to Month level.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Months wise it has values of each month in bar.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;% Comparison with previous month which is line chart - This we have to achieve with measure&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My data is in below format&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 1 - Month - Jan 2020 to Dec 2021&lt;/P&gt;&lt;P&gt;Column 2&amp;nbsp; - Value - between 100 to 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not able to paste table because of some error, if you create this table then my data will be ready&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 15:33:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883385#M40517</guid>
      <dc:creator>kolturra</dc:creator>
      <dc:date>2021-06-05T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: % Comparison from Pervious Year and Month Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883402#M40521</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="70330" data-lia-user-login="kolturra" class="lia-mention lia-mention-user"&gt;kolturra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I created the sample data based on your explanation for the years 2020 to 2022, add a date table to use Time Intelligence functions, created the following single measure to calculate % variance for both year and month level. I also attached the PBIX file for you to learn.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;vs Previous Period  % = 
var __Curr = [Amount]
var __PreYR = 
    CALCULATE(
        [Amount],
         DATEADD( Dates[Date] , -1,YEAR)
    )
var __PreMO = 
     CALCULATE(
        [Amount],
        DATEADD( Dates[Date] , -1,MONTH)
    )

var result = 
    IF(  
        ISFILTERED(Dates[Year-Month]),
        DIVIDE( __Curr - __PreMO , __PreMO ),
        DIVIDE( __Curr - __PreYR , __PreYR )
    )
return
    result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 16:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-from-Pervious-Year-and-Month-Measure/m-p/1883402#M40521</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-05T16:07:21Z</dc:date>
    </item>
  </channel>
</rss>

