<?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: 11 Week Look Ahead Dynamic Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2430770#M64682</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can have a try. I'm not sure which way you created the table in the end, please explain the problem in detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Janey&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 02:11:23 GMT</pubDate>
    <dc:creator>v-janeyg-msft</dc:creator>
    <dc:date>2022-04-01T02:11:23Z</dc:date>
    <item>
      <title>11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2308736#M57326</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck and I am really hoping that someone can help me write the DAX for the column to get the right results. Or advise on how to do this. I have a Scheduled Start Date column for when work orders are supposed to begin.&amp;nbsp;For my dashboard/visuals I need to look ahead 11 weeks from Monday of each week and I only want the DAX to return the dates in week 11. I also need it to be dynamic so as the weeks progress it keeps looking ahead at week 11.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note, I was successful in writing DAX for a Week Start Date and a Week End Date column to group them. Now I am stuck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance for you help and advice on how to solve this!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 04:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2308736#M57326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-29T04:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2308738#M57327</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Week = &lt;BR /&gt;var _max1 =&amp;nbsp; today()&amp;nbsp; // or use maxx(allselected('Date'), 'Date'[Date]) //&lt;BR /&gt;var _stweek = _max1 +-1*WEEKDAY(_max1,2)+1 //add plus 7 for next week start date &lt;BR /&gt;var _edweek= _max1+ 7-1*WEEKDAY(_max1,2) +(7*11) &lt;BR /&gt;return &lt;BR /&gt;calculate(sum(Table[Value]), filter(date, Date[Date] &amp;gt;=_stweek &amp;amp;&amp;amp; Date[Date] &amp;lt;=_edweek))&lt;BR /&gt;// or use all date &lt;BR /&gt;//calculate(sum(Table[Value]), filter(all(date), Date[Date] &amp;gt;=_stweek &amp;amp;&amp;amp; Date[Date] &amp;lt;=_edweek))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have use independent table in case you select a date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need of an Independent Date Table:&lt;A href="https://www.youtube.com/watch?v=44fGGmg9fHI" target="_blank"&gt;https://www.youtube.com/watch?v=44fGGmg9fHI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also refer&lt;/P&gt;
&lt;P&gt;Power BI — Week on Week and WTD &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pnAesWxYgJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pnAesWxYgJ8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 04:47:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2308738#M57327</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-29T04:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2319352#M57896</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;You can create this summary table, or use it as a table filter in other measures.&lt;/P&gt;
&lt;P&gt;Like this:&lt;/P&gt;
&lt;P&gt;Two columns first:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;weekday = WEEKDAY([Date],2)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;weeknum = WEEKNUM([Date],1)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Table1 = 
VAR a =
    MAXX ( FILTER ( ALL ( 'Table' ), [Date] = TODAY () ), [weeknum] )
RETURN
    SUMMARIZE (
        FILTER (
            ALL ( 'Table' ),
            [weeknum]
                = MAXX ( FILTER ( ALL ( 'Table' ), [weeknum] = a + 11 ), [weeknum] )
        ),
        [Date],
        [weekday],
        [weeknum]
    )&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;STRONG&gt;Did I answer your question? Please mark my reply as solution. Thank you very much.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If not, please feel free to ask me.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Janey&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 08:43:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2319352#M57896</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2022-02-04T08:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2320857#M57969</link>
      <description>&lt;P&gt;Thank you! Ok I am very green in Power BI and completely self taught. What is a summary table? I was able to successfully create the first 2 columns as you listed above the Weekday and Weeknum columns. I went to add a new table and when I got to this portion:&amp;nbsp;( 'Table' ), [Date]&lt;/P&gt;&lt;P&gt;it gave me an error. I was trying to load my Scheduled Start Date table in that spot but it gave me a syntax error. It is loading 'Scheduled Start Date'.Date so I am thinking I am doing something wrong but it is making me select .Date. Hopefully that makes sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 02:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2320857#M57969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-05T02:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2320955#M57975</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try creating this kind of measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;11weeks = &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_sdate&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WEEKDAY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/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;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;cdate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;_sdate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;cdate&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;_edate&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then place it here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Feb 2022 08:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2320955#M57975</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-05T08:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2322079#M58017</link>
      <description>&lt;P&gt;HelloAnonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because I don't know what your requirements are used for, so I just created a table.&lt;/P&gt;
&lt;P&gt;You need to create table by new table button.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/summarize-function-dax" target="_blank"&gt;SUMMARIZE function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Can you share your formula and error screenshots in the report? If you can describe in detail how your needs are presented in the report visual, I can help you more specifically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Janey&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 01:55:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2322079#M58017</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2022-02-07T01:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2327354#M58321</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Any updates?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 06:32:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2327354#M58321</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2022-02-09T06:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2390013#M62114</link>
      <description>&lt;P&gt;Thank you! I was able to create the table. Thank you so much and I apologize for my delayed response to this. So would I just use the scheduled start in the newly created table to filter by the t-week? Also, for some reason I'm not able to copy and paste anything into these text boxes. It gives me an error everytime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 18:08:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2390013#M62114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-12T18:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2430770#M64682</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can have a try. I'm not sure which way you created the table in the end, please explain the problem in detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Janey&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 02:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/2430770#M64682</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2022-04-01T02:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/3838421#M150054</link>
      <description>&lt;P&gt;Can someone please give a little more detailed explanation to the accepted solution?&amp;nbsp; As I read it, the steps are to use Table Tools &amp;gt; New Table, then use New Column to add columns for weekday (using the expression provided) and weeknum (using the expression provided).&amp;nbsp; It appears that a column Date must also be created, but how is the Date column populated - is this meant to be a running list of all dates in a year?&amp;nbsp; Also: in the Table1 expression, where FILTER (ALL ('Table')) is used, does 'Table' indicate the user's separate data table (the name of that table)?&amp;nbsp; Finally, in the Table1 expression, does [Date] refer to the Date column in this summary table or a Date column presumed to exist in the user's separate table.&amp;nbsp; Thanks for any help - I believe this post solves my own need but I'm afraid I don't follow the instructions.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 13:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/3838421#M150054</guid>
      <dc:creator>SJR147</dc:creator>
      <dc:date>2024-04-15T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: 11 Week Look Ahead Dynamic Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/3838492#M150062</link>
      <description>&lt;P&gt;I believe I have figured this out:&amp;nbsp; columns weekday and weeknum need to be added to the user's table, using the expressions provided. Date is also a column in the user's table.&amp;nbsp; So in the suggested solution, all entries are pointing to columns in the user's table, except the Return function will create those same column entries in Table1.&amp;nbsp; Hope this helps other new users.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 13:47:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/11-Week-Look-Ahead-Dynamic-Calculation/m-p/3838492#M150062</guid>
      <dc:creator>SJR147</dc:creator>
      <dc:date>2024-04-15T13:47:52Z</dc:date>
    </item>
  </channel>
</rss>

