<?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: Return exact value from same month but from last year. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3049739#M105003</link>
    <description>&lt;P&gt;Thank you for your answer... So I made a new calculated column name 'FullDate' that return date format.&lt;BR /&gt;I've also already try run just dateadd, and yeah I got the date that I want.&lt;BR /&gt;But when I used it with&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(CalculatedTable1[CountRows]), DATEADD(CalculatedTable1[Full_Date], -1, year)) , the result in my PBI is blank? why?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 07:51:02 GMT</pubDate>
    <dc:creator>agustira97</dc:creator>
    <dc:date>2023-01-30T07:51:02Z</dc:date>
    <item>
      <title>Return exact value from same month but from last year.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3044493#M104603</link>
      <description>&lt;P&gt;I've already make an calculated table in visual studio and it look like this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;CountRows is created using CalculatedColumn where it will count how many rows with the same year and month.&lt;BR /&gt;I need to show not just exact same years and month, but also last year and last 2 year in my visualization.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to make dax measure to show last year and last 2 year without using aggregate like sum? Because CountRows already counted.&lt;/P&gt;&lt;P&gt;I want when my filter year = 2022 ; month = 12 it will show value from 2021-12 for my last year visualisation.&lt;BR /&gt;&lt;BR /&gt;*sorry for my bad english, hope you all can understand.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 08:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3044493#M104603</guid>
      <dc:creator>agustira97</dc:creator>
      <dc:date>2023-01-26T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Return exact value from same month but from last year.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3044653#M104611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501979" data-lia-user-login="agustira97" class="lia-mention lia-mention-user"&gt;agustira97&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;you could try using the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= CALCULATE(SUM(countrows]), SAMEPERIODLASTYEAR(DateTime[DateKey]))&lt;/LI-CODE&gt;&lt;P&gt;the SUM() will not alternate the aggregation you expect.&lt;BR /&gt;For 2 years, you can try to use instead :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; DATEADD(dates, -2, year)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Feel free to adjust the period or the timeframe you want.&lt;BR /&gt;&lt;BR /&gt;I hope that was useful.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 09:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3044653#M104611</guid>
      <dc:creator>IoannisPhilip</dc:creator>
      <dc:date>2023-01-26T09:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Return exact value from same month but from last year.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3049739#M105003</link>
      <description>&lt;P&gt;Thank you for your answer... So I made a new calculated column name 'FullDate' that return date format.&lt;BR /&gt;I've also already try run just dateadd, and yeah I got the date that I want.&lt;BR /&gt;But when I used it with&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(CalculatedTable1[CountRows]), DATEADD(CalculatedTable1[Full_Date], -1, year)) , the result in my PBI is blank? why?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 07:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-exact-value-from-same-month-but-from-last-year/m-p/3049739#M105003</guid>
      <dc:creator>agustira97</dc:creator>
      <dc:date>2023-01-30T07:51:02Z</dc:date>
    </item>
  </channel>
</rss>

