<?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 Previous Week a month Month and Year earlier in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989334#M154648</link>
    <description>&lt;P&gt;Hello, is there a method to get these results with DAX based on one slicer. what I need it the results of a week from four weeks ago and the same week a year ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date table set up with the week commencing field. I can easily get the green section, but I am not sure about the Dax to get the orange, if its possible.&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>Wed, 12 Jun 2024 17:44:02 GMT</pubDate>
    <dc:creator>NewbieJono</dc:creator>
    <dc:date>2024-06-12T17:44:02Z</dc:date>
    <item>
      <title>Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989334#M154648</link>
      <description>&lt;P&gt;Hello, is there a method to get these results with DAX based on one slicer. what I need it the results of a week from four weeks ago and the same week a year ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date table set up with the week commencing field. I can easily get the green section, but I am not sure about the Dax to get the orange, if its possible.&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>Wed, 12 Jun 2024 17:44:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989334#M154648</guid>
      <dc:creator>NewbieJono</dc:creator>
      <dc:date>2024-06-12T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989565#M154680</link>
      <description>&lt;P&gt;Yes. It's called time intelligence and you can read about it here&amp;nbsp;&lt;A href="https://exceleratorbi.com.au/dax-time-intelligence-beginners/" target="_blank" rel="noopener"&gt;https://exceleratorbi.com.au/dax-time-intelligence-beginners/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989565#M154680</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-06-12T20:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989937#M154723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292993" data-lia-user-login="NewbieJono" class="lia-mention lia-mention-user"&gt;NewbieJono&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think you can try the following DAX code, it might be able to give you some help.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;4 Week Before = 
CALCULATE (
    [YourMeasure],
    DATEADD ( 'DateTable'[WeekCommencing], -4, WEEK )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;1 Year before = 
CALCULATE (
    [YourMeasure],
    SAMEPERIODLASTYEAR ( 'DateTable'[WeekCommencing] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;From your screenshot I think there is some difficulty in trying to reproduce the results you want, if you can provide the .pbix file or more data I will reproduce the desired results for you.&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;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 02:10:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3989937#M154723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T02:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3990549#M154764</link>
      <description>&lt;P&gt;Thanks for your help with this. The WEEK bit seems to error?&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 08:04:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3990549#M154764</guid>
      <dc:creator>NewbieJono</dc:creator>
      <dc:date>2024-06-13T08:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3990581#M154766</link>
      <description>&lt;P&gt;Any ideas on why this does not bring back volumes? There are volumes last year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 08:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3990581#M154766</guid>
      <dc:creator>NewbieJono</dc:creator>
      <dc:date>2024-06-13T08:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3990692#M154778</link>
      <description>&lt;P&gt;You are incorrectly using inbuilt time intelligence. Read the rules here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/power-bi-calendar-tables/" target="_blank"&gt;https://exceleratorbi.com.au/power-bi-calendar-tables/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you must have a calendar table at the day level of granularity. Your measure refers to the week ending date. It should be calendar date in a calendar table at the day level&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:06:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/3990692#M154778</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-06-13T09:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week a month Month and Year earlier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/4012997#M158039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292993" data-lia-user-login="NewbieJono" class="lia-mention lia-mention-user"&gt;NewbieJono&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:42:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-a-month-Month-and-Year-earlier/m-p/4012997#M158039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T08:42:43Z</dc:date>
    </item>
  </channel>
</rss>

