<?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 fetch beginning date and ending date to the measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491837#M68644</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;weekBeginingPriorWeek = 
TODAY() - 6 - WEEKDAY( TODAY() ,2) &lt;/PRE&gt;&lt;PRE&gt;weekEndingPriorWeek = 
TODAY() - WEEKDAY( TODAY() ,2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Not sure whether you wanna use the formulars as above meaning based on todays date, or if you'd like to use your own date column. If the latter fits your case, then just substitute TODAY() with whatever date column you have in your model &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 20:19:56 GMT</pubDate>
    <dc:creator>tackytechtom</dc:creator>
    <dc:date>2022-05-03T20:19:56Z</dc:date>
    <item>
      <title>How to fetch beginning date and ending date to the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491741#M68635</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have table named 'Calendar'&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It has colums named: CalendarDate, CalendarWeekBeginningDate, CalendarWeekEndingDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order for example: 05/02/22, 05/02/22, 05/08/22&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 05/01/22, 04/25/22, 05/01/22&lt;BR /&gt;&lt;BR /&gt;Today is 5/2/2022 and still we are in the week. I want to get&amp;nbsp;04/25/22, 05/01/22 as _weekBeginingPriorWeek and _weekEndingPriorWeek in a DAX function to use as variables.&amp;nbsp;&lt;BR /&gt;When Today is 5/8/2022 I want to get&amp;nbsp;05/02/22, 05/08/22 as _weekBeginingPriorWeek and visa versa&lt;BR /&gt;&lt;BR /&gt;I use AAS model to create DAX measures, how can i get those two specific days ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 19:21:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491741#M68635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-03T19:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch beginning date and ending date to the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491778#M68638</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[CalendarWeekBeginningDate]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Calendar'[CalendarDate]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()-&lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;I just come up with this solution, It gaves me what I want but I'm not sure&lt;BR /&gt;any comments?&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 May 2022 19:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491778#M68638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-03T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch beginning date and ending date to the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491837#M68644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;weekBeginingPriorWeek = 
TODAY() - 6 - WEEKDAY( TODAY() ,2) &lt;/PRE&gt;&lt;PRE&gt;weekEndingPriorWeek = 
TODAY() - WEEKDAY( TODAY() ,2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Not sure whether you wanna use the formulars as above meaning based on todays date, or if you'd like to use your own date column. If the latter fits your case, then just substitute TODAY() with whatever date column you have in your model &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 20:19:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491837#M68644</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-05-03T20:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch beginning date and ending date to the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491865#M68646</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example : 1st column how many items sold on that day, 2nd column calendar date, 3rd column 1st category item.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually, I'm gonna use those 2 variables in a dax function to filter in the first column&amp;nbsp;&lt;BR /&gt;such as bring me the how many sold item between those two variables ( beginning date of prior week " monday" to ending date of prior week "sunday" )&lt;BR /&gt;&lt;BR /&gt;What I shared the Dax code brings me the total, not seperated day by day.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 20:32:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491865#M68646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-03T20:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch beginning date and ending date to the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491888#M68648</link>
      <description>&lt;P&gt;I guess It works&lt;BR /&gt;&lt;BR /&gt;I need to try it on again.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 20:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-fetch-beginning-date-and-ending-date-to-the-measure/m-p/2491888#M68648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-03T20:45:55Z</dc:date>
    </item>
  </channel>
</rss>

