<?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 get Previous Year sales value for complete year ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105981#M109448</link>
    <description>&lt;P&gt;Sorry I cant share .pbix due to internal policies. But I can give information about data model. Sales attribute is coming from a salesorder fact object. and year , month attributes are coming from calendar diamension object.&amp;nbsp; salesorder and calendar tables have many to one relationship. The dataset has star schema.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 13:58:00 GMT</pubDate>
    <dc:creator>saurabhtd</dc:creator>
    <dc:date>2023-03-01T13:58:00Z</dc:date>
    <item>
      <title>How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105705#M109422</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Hello everyone,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;I need help in DAX logic. I need dax calculation logic for calculating sum(Salesorder[salesinlocalcurrency]) for complete previous year i.e from 1st jan till 31 dec. The result I should be able to filter with 'calendar'Month filter/slicer.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Eg : when Year = 2017 is selected in filter then I am looking for sum(Salesorder[salesinlocalcurrency]) for dates all starting between 1 st jan 2016 till 31 st Dec 2016. The result of measure used for above calculation should filter based on Month Filter/slicer. i.e when I select different months it should chnage the value and give correct result for selcted month.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;I tried some ways, these below dax are two of the ways I tried getting required result.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;1. previous year sales = CALCULATE(SUM(salesorder[salesinlocalcurrency]),DATEADD('calendar'[Date],-1,YEAR))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;This gives YTD previous year but I want complete previous year.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;2. previous year sales1 = CALCULATE(SUM(salesorder[salesinlocalcurrency]),DATESYTD(ENDOFYEAR(DATEADD('calendar'[Date],-1,YEAR)),"12/31"))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;This formula gives correct result but I cannot filter the result based on calendar'Month' which I want.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;I am attaching sample dataset and PBI file for your reference.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Some information about Dataset : - Sales attribute is coming from a salesorder fact object. and year , month attributes are coming from calendar diamension object. salesorder and calendar tables have many to one relationship. The dataset has star schema.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Please help I tried many ways but I unable to fulfill this requirement. Thank for reading this. Thanks in advance for your help.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;&lt;A title="You can use this file as a sample " href="https://drive.google.com/file/d/1OreMC-itsp_TRPWNP5fFN8_yuLsAR9Xo/view?usp=sharing" target="_self"&gt;Sample Datamodel PBI file&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="520150" data-lia-user-login="andhiii079845" class="lia-mention lia-mention-user"&gt;andhiii079845&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 16:36:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105705#M109422</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T16:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105846#M109440</link>
      <description>&lt;P&gt;What is the problem? The filter requirment? Do you have a example file or some screenshot from the data, model.&lt;BR /&gt;If you choose 2019, you want to see 2019 and 2018?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 12:37:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105846#M109440</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105851#M109441</link>
      <description>&lt;P&gt;Yes. Yes the answer of that measure should change based on filter. When I choose 2023 from year filter. Current year measure should show 2023 sales value. and Previous year should show 2022 complete year sales value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 12:42:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105851#M109441</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T12:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105866#M109442</link>
      <description>&lt;P&gt;Without the .pbix or further information about the data model and involved tables it is very diffcult to explain every step for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 12:50:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105866#M109442</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105981#M109448</link>
      <description>&lt;P&gt;Sorry I cant share .pbix due to internal policies. But I can give information about data model. Sales attribute is coming from a salesorder fact object. and year , month attributes are coming from calendar diamension object.&amp;nbsp; salesorder and calendar tables have many to one relationship. The dataset has star schema.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 13:58:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105981#M109448</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105990#M109451</link>
      <description>&lt;P&gt;Yes, you use the year slicer from the year dimension table, right?&lt;BR /&gt;Please share your DAX formula and involved columns for the bar chart. Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3105990#M109451</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T14:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106012#M109454</link>
      <description>&lt;P&gt;I used year filter from calendar diamension table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For finding current year sales the below formuala is meeting my requirements. I can filter this based on calendar'Month'&lt;/P&gt;&lt;P&gt;Current year sales = CALCULATE(SUM(salesorder[salesinlocalcurrency]),'calendar'[Year] = SELECTEDVALUE('calendar'[Year],YEAR(TODAY())))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for finding previous year sales I have tried many ways&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;previous year sales = CALCULATE(SUM(salesorder[salesinlocalcurrency]),DATEADD('calendar'[Date],-1,YEAR))&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives YTD previous year but I want complete previous year.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;previous year sales1 = CALCULATE(SUM(salesorder[salesinlocalcurrency]),DATESYTD(ENDOFYEAR(DATEADD('calendar'[Date],-1,YEAR)),"12/31"))&amp;nbsp;&lt;/P&gt;&lt;P&gt;This formula gives correct result but I cannot filter the result based on calendar'Month' which I want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106012#M109454</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106060#M109463</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478644" data-lia-user-login="saurabhtd" class="lia-mention lia-mention-user"&gt;saurabhtd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems doable. Please abstract your case and reproduce it with simplified sample data. That would be very helpful for those who might be able to help you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:36:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106060#M109463</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-01T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106257#M109489</link>
      <description>&lt;P&gt;I agree build a simple .pbix fille which show us the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 16:25:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106257#M109489</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106267#M109491</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1OreMC-itsp_TRPWNP5fFN8_yuLsAR9Xo/view?usp=sharing" target="_self"&gt;Sample PBI file&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click on this you will be able to download the file. The problem is also explained in that file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 16:35:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106267#M109491</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T16:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106312#M109495</link>
      <description>&lt;P&gt;I check the pbi file right now. Where is your month / year filter you mentioned in the description?&lt;BR /&gt;DO you want to filter with a slicer like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:09:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106312#M109495</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T17:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106323#M109497</link>
      <description>&lt;P&gt;No. It will be filter like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106323#M109497</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106332#M109500</link>
      <description>&lt;P&gt;Okay, my fault. I think you mean slicer.&lt;BR /&gt;If years is selected: sum() privious year (complete year)&lt;BR /&gt;if month and year is selcted: sum() complete month in the last year? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:21:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106332#M109500</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106361#M109502</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:40:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106361#M109502</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T17:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106365#M109503</link>
      <description>&lt;P&gt;Perhaps try this:&lt;BR /&gt;&lt;BR /&gt;&l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t;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;RELATED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[month]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;_monthfilter&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Salesorder&lt;/SPAN&gt;&lt;SPAN&gt;[salesinlocalcurrency]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_monthfilter&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;_functionmonth&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;_functionyear&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:42:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106365#M109503</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106402#M109507</link>
      <description>&lt;P&gt;Thank you. This works perfectly I checked. Thank you again for helping. Is there any much more efficient logic than this possible ? just asking because it is taking significant time to load when change filter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106402#M109507</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T18:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106409#M109508</link>
      <description>&lt;P&gt;It depands what kind of machine you have and how many data you have in the dataset. In my case with the sample file it is very fast (less then 0,5 sec)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:11:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106409#M109508</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T18:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106416#M109509</link>
      <description>&lt;P&gt;yeah. Right. I was checking at my actual dataset. The actual dataset is big that I had not shared because of policies. There it is taking to much time to load when I filter with month/year. That's why I asked&amp;nbsp; is there any optimized dax also possible ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:17:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106416#M109509</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T18:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106419#M109510</link>
      <description>&lt;P&gt;Good question, I am not so good in DAX to know how to optimize it. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:17:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106419#M109510</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-03-01T18:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Previous Year sales value for complete year ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106424#M109512</link>
      <description>&lt;P&gt;Not an issue. Thank you helped in realising this logic. I had tried a lot but was unable to figure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 18:19:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Previous-Year-sales-value-for-complete-year/m-p/3106424#M109512</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-03-01T18:19:22Z</dc:date>
    </item>
  </channel>
</rss>

