<?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: I m  Trying for the roll back days if the week has end need to start again from day 0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222996#M117905</link>
    <description>&lt;P&gt;or you plot a table visual with the date column and a measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = 
VAR _date = MAX(data[date])
RETURN
SUMX(
    FILTER(
        ALL(data),
        data[Date]&amp;gt;_date
            &amp;amp;&amp;amp;data[Date] &amp;lt;=_date+3
    ),
    data[Forecasted Sales]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 May 2023 02:03:39 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-05-07T02:03:39Z</dc:date>
    <item>
      <title>I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222985#M117901</link>
      <description>&lt;P&gt;Hi Guys ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my Table Structure . Here i'm trying to calculate next Three&amp;nbsp; days forecasted sales and my days starts at sunday that is 0 , So everyday need to calculate next three days forecasted sales .Here one problem is their if the day number is 4 need to calculate day 5 and 6 forecasted sales , If the day number is 5 need to calculate day 6 , 0, 1 and this calculation need to roll back with in a week .&lt;/P&gt;&lt;P&gt;i can't find any idea can guys help me out&amp;nbsp;&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;</description>
      <pubDate>Sat, 06 May 2023 02:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222985#M117901</guid>
      <dc:creator>ganesanr1002</dc:creator>
      <dc:date>2023-05-06T02:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222992#M117903</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339967" data-lia-user-login="ganesanr1002" class="lia-mention lia-mention-user"&gt;ganesanr1002&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a column like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
VAR _date = [date]
RETURN
SUMX(
    FILTER(
        data,
        data[Date]&amp;gt;_date
            &amp;amp;&amp;amp;data[Date] &amp;lt;=_date+3
    ),
    data[Forecasted Sales]
)&lt;/LI-CODE&gt;&lt;P&gt;with a simlified dataset:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 02:57:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222992#M117903</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-06T02:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222996#M117905</link>
      <description>&lt;P&gt;or you plot a table visual with the date column and a measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = 
VAR _date = MAX(data[date])
RETURN
SUMX(
    FILTER(
        ALL(data),
        data[Date]&amp;gt;_date
            &amp;amp;&amp;amp;data[Date] &amp;lt;=_date+3
    ),
    data[Forecasted Sales]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 02:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3222996#M117905</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-07T02:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223487#M117953</link>
      <description>&lt;P&gt;Hey Thanks for the Reply , Think like we are in the week of 13 so forested sales should not go outside the 13th week , This measure will work for upto 29th March if the 30 th march comes need to calculate 31 st march , 1st April and 26 th march Forecasted sale , if 31st march need to calculate 1st April , 26th March, 27th March Forecasted sale, if 1st April comes need to calculate 26th , 27th,28th march forecasted sales .&lt;BR /&gt;I need to roll up days with in a week itself&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 03:05:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223487#M117953</guid>
      <dc:creator>ganesanr1002</dc:creator>
      <dc:date>2023-05-07T03:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223510#M117954</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339967" data-lia-user-login="ganesanr1002" class="lia-mention lia-mention-user"&gt;ganesanr1002&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a column like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
VAR _date = [date]
VAR _daynumber = [Day Number]
RETURN
SUMX(
    FILTER(
        data,
        WEEKNUM(data[Date])=WEEKNUM(_date)
            &amp;amp;&amp;amp;data[Day Number] IN {MOD(_daynumber+1,7), MOD(_daynumber+2,7), MOD(_daynumber+3,7)}
    ),
    data[Forecasted Sales]
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 05:23:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223510#M117954</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-07T05:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223513#M117955</link>
      <description>&lt;P&gt;or try to plot a table visual with the date column and a measure like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = 
VAR _date = MAX(data[date])
VAR _daynumber = MAX(data[Day Number])
RETURN
SUMX(
    FILTER(
        ALL(data),
        WEEKNUM(data[Date])=WEEKNUM(_date)
            &amp;amp;&amp;amp;data[Day Number] IN {MOD(_daynumber+1,7), MOD(_daynumber+2,7), MOD(_daynumber+3,7)}
    ),
    data[Forecasted Sales]
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 05:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223513#M117955</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-07T05:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: I m  Trying for the roll back days if the week has end need to start again from day 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223672#M117975</link>
      <description>&lt;P&gt;Hai, Thanks this works&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 12:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-m-Trying-for-the-roll-back-days-if-the-week-has-end-need-to/m-p/3223672#M117975</guid>
      <dc:creator>ganesanr1002</dc:creator>
      <dc:date>2023-05-07T12:00:48Z</dc:date>
    </item>
  </channel>
</rss>

