<?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 Rolling Snapshot Line Chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2651087#M78151</link>
    <description>&lt;P&gt;I am just learning DAX, and am having trouble with a request at work. I have read some similar posts but still having trouble understanding it to make my own. The topic is creating a Rolling snapshot for the Dates. Unfortunately I cannot upload a sample file. However I will do my best to explain and show what my tables look like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Calendar table with CALENDARAUTO(). I then have Month, MonthNum, Qtr, Week, Year columns as shown below:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Month = &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&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;[MonthNum]&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;"MMM"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MonthNum = &lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt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;&lt;DIV&gt;&lt;SPAN&gt;My data is an a table named 'Invoice'. With columns showing: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Create_Time&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Transaction_Date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Due_Date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total_Amount&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Balance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I currently have a Many to 1 relationship between 'Invoice'[Transaction_Date] and 'Calendar'[Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I need to create a line chart that only shows the sum of 'Invoice'[Total_Amount] per day for the last 13 weeks. This needs to shift with the current date automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also need another line chart with the same data... but showing the average per week, for the last 13 months. This also needs to shift with the current date.&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;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2022 17:12:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-20T17:12:01Z</dc:date>
    <item>
      <title>Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2651087#M78151</link>
      <description>&lt;P&gt;I am just learning DAX, and am having trouble with a request at work. I have read some similar posts but still having trouble understanding it to make my own. The topic is creating a Rolling snapshot for the Dates. Unfortunately I cannot upload a sample file. However I will do my best to explain and show what my tables look like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Calendar table with CALENDARAUTO(). I then have Month, MonthNum, Qtr, Week, Year columns as shown below:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Month = &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&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;[MonthNum]&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;"MMM"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MonthNum = &lt;/SPAN&gt;&lt;SPAN&gt;MONTH&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;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Qtr = &lt;/SPAN&gt;&lt;SPAN&gt;"Qtr"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;QUARTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date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&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I currently have a Many to 1 relationship between 'Invoice'[Transaction_Date] and 'Calendar'[Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I need to create a line chart that only shows the sum of 'Invoice'[Total_Amount] per day for the last 13 weeks. This needs to shift with the current date automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also need another line chart with the same data... but showing the average per week, for the last 13 months. This also needs to shift with the current date.&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;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 17:12:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2651087#M78151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-20T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2651492#M78187</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;Hopefully this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&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;Once the calculated column is created, you simply use it as a filter on the desired visual (or on the entire page as shown here).&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>Thu, 21 Jul 2022 01:51:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2651492#M78187</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-21T01:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653257#M78294</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;Additional Notes:&lt;/P&gt;&lt;P&gt;- Calculated Columns are only re-calculated on refresh.&lt;/P&gt;&lt;P&gt;- As long as you have the report set to auto-refresh daily, the rolling time-frame will function properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I refreshed the report this morning, and can now see that 7/21/2022 is correctly included in both Line Charts for today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&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>Thu, 21 Jul 2022 13:19:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653257#M78294</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-21T13:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653319#M78297</link>
      <description>&lt;P&gt;Thank you, this is definitely a helpful starting point. I do have a few extra notes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing it this way is rolling forward by day. What if I wanted it to only shift one business week at a time? Let's say I consider my week as Monday- Sunday. When Monday comes along, we want the chart to show the dates for that Monday all the way through Sunday.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My next question is if I want to Sum by Week. And have the rolling shift Monthly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Ian&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:32:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653319#M78297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653354#M78302</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;No problem.&amp;nbsp; Here is the way to do it by week starting Monday &amp;amp; ending Sunday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&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>Thu, 21 Jul 2022 13:47:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653354#M78302</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-21T13:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653798#M78316</link>
      <description>&lt;P&gt;Gotcha. So How would you integrate that into the Filter for the 13 week period? Looks like it would be very much different then the first way:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In Last 13 Weeks = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Invoice'[Transaction_Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() -&lt;/SPAN&gt;&lt;SPAN&gt;91&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;--IF Transaction Date &amp;gt; 13 Weeks Ago Today&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Invoice'[Transaction_Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() +&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;--And Transaction Date &amp;lt; Tomorrow&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;From my thinking... I would need to be able to identify Today, find Week Date from Today, and then somehow do a 13 Week Date back count.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:08:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2653798#M78316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654044#M78336</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;Hopefully I am understanding you correctly.&lt;/P&gt;&lt;P&gt;You want to see a line chart for the last 13 weeks, but you want to see the X-axis data points grouped by week (rather than the day)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, then you can take the following steps.&lt;/P&gt;&lt;P&gt;1) Add the Calculated Column "Week Date Starting Monday" to the Invoice Table.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- NOTE: DATEADD had to be replaced by DATE because DATEADD will return blank rows if the date does not exist in the source column - not cool, but that's DAX.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) In the new line chart visual X-axis value, replace [Transaction_Date] with the new calculated column [Week Date Starting Monday].&amp;nbsp; Now all the data will be grouped by week.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- NOTE: You still need the "In Last 13 Weeks" filter on the page or visual as mentioned in the previous post.&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;My apologies if I misunderstood your question.&lt;/P&gt;&lt;P&gt;If this is not what you are looking for, could you provide a simple mock-up in Excel to help me understand better?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 18:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654044#M78336</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-21T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654160#M78345</link>
      <description>&lt;P&gt;This is exactly what I was wanting. Thank you. Are there any specific resources that you would recommend I use to better understand DAX? Seems a lot of it is memorizing all the functions and pieceing them together.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 19:43:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654160#M78345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T19:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654178#M78347</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;So glad that was what you were looking for!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as learning DAX, there are many resources....but the book from sqlbi.com is the best, no joke.&lt;/P&gt;&lt;P&gt;"The Definitive Guide to DAX - 2nd Edition" by Russo &amp;amp; Ferrari&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.sqlbi.com/books/the-definitive-guide-to-dax-2nd-edition/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Read Chapters 4 &amp;amp; 5 multiple times &amp;amp; refer back to them regularly.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this link for a great list of other resources from&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179088" data-lia-user-login="m3tr01d" class="lia-mention lia-mention-user"&gt;m3tr01d&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-learn-DAX-from-beginning-to-Advance/m-p/2586316#M74389" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-learn-DAX-from-beginning-to-Advance/m-p/2586316#M74389&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654178#M78347</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-21T20:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654214#M78351</link>
      <description>&lt;P&gt;I am getting an error for the Date function. I attempted to use DateAdd instead just to test it... and that did not work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 20:38:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654214#M78351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-21T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654244#M78355</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"An argument of function 'DATE' has the wrong data type or the result is too large or too small."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting.&amp;nbsp; I've never seen this error before.&lt;/P&gt;&lt;P&gt;The main solution I found is here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/An-Argument-of-Function-Date-has-wrong-data-type-or-result-is/m-p/723910" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/An-Argument-of-Function-Date-has-wrong-data-type-or-result-is/m-p/723910&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'm not yet seeing how this can help us.&lt;/P&gt;&lt;P&gt;This may take some time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone else already sees a way to overcome this error, please reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; You mentioned in your original post that you could not share a sample file.&amp;nbsp; However, since the error is not occurring for me, it must be something specific in your data.&amp;nbsp; Is it possible create a new PBIX with only 1 table &amp;amp; 1 column?&amp;nbsp; Copy all the data values from 'Invoice'[Transaction_Date] &amp;amp; use that to create a new PBIX with only that table &amp;amp; column as the data.&amp;nbsp; Then attempt to re-create the Calculated Column in the new PBIX for [Week Date Starting Monday].&amp;nbsp; If the error persists in the 2nd PBIX, then share the link to that PBIX and I can research it further.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 22:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2654244#M78355</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-21T22:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2655968#M78489</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you have a chance to try it on a modified PBIX with just the data from 'Invoice'[Transaction_Date]?&lt;/P&gt;&lt;P&gt;If it's still giving the same error, can you provide a link to the modified PBIX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 14:38:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2655968#M78489</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-22T14:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2656069#M78499</link>
      <description>&lt;P&gt;Yeah, I've been messing around with it all morning. I tried making a few new PBIX with the data in different formats and sources. Same issue though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I added .[Day] the error went away, but the dates were not all correct. I don't even know what the .[Day] means lol. This is shown in the picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1BPJWnEX3tQFweufqNAC6KRrqva570Bkf?usp=sharing" target="_blank" rel="noopener"&gt;Rolling_Week_Template&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2656069#M78499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-22T15:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2656137#M78507</link>
      <description>&lt;P&gt;Hello Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So [Day] is an auto-created number which represents the day of the month.&lt;/P&gt;&lt;P&gt;It only gets created if "Auto date/time" option is enabled under:&lt;/P&gt;&lt;P&gt;File \ Options &amp;amp; Settings \ Options \&lt;/P&gt;&lt;P&gt;1) GLOBAL \ Data Load \ Time Intelligence&lt;/P&gt;&lt;P&gt;2) CURRENT FILE \ Data Load \ Time Intelligence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alberto Ferrari (SQLBI) highly recommends that this be disabled due to its limitations, and says that it's much better to create our own date tables using the CALENDAR function.&amp;nbsp;&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;&lt;P&gt;As soon as this option is enabled in the Current File, you will see a Date Hierarchy expand under the Dates table in the Fields pane.&lt;/P&gt;&lt;P&gt;By adding it to a table visual, you can see its values show the number of the day of the month.&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;I'm pretty sure [Day] should not be used here since the parameter needed is the entire Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for sharing the file.&amp;nbsp; I'll take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:57:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2656137#M78507</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-22T15:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2660325#M78855</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Foolish mistake on my part.&amp;nbsp; Very sorry about that.&lt;/P&gt;&lt;P&gt;There is nothing wrong with your data.&amp;nbsp; My limited data just&amp;nbsp;&lt;EM&gt;accidentally worked&amp;nbsp;&lt;/EM&gt;because I have no dates in the first few days of any month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is flat wrong because I'm subtracting: DAY - WEEKDAY. (Digit - Digit)&lt;/P&gt;&lt;P&gt;- DAY is just the &lt;EM&gt;number&lt;/EM&gt; of the day in the month.&amp;nbsp; It has no month or year context.&lt;/P&gt;&lt;P&gt;- IF DAY = 1 (1st of the month) &amp;amp; I subtract any number THEN we'll get a negative DAY number, which cannot be a valid DAY of any month, and therefore throws the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To write the code correctly, we need to subtract WEEKDAY &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;from the entire DATE&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;.&amp;nbsp; In this way, the problem is resolved:&lt;/P&gt;&lt;P&gt;OLD CODE: 1 - 4 = &lt;U&gt;&lt;STRONG&gt;-3&lt;/STRONG&gt;&lt;/U&gt; (A negative DAY can never be part of a valid date.)&lt;/P&gt;&lt;P&gt;NEW CODE 7/1/2022 - 3 = 6/27/2022 (This results in a valid date.)&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this explanation helps you to understand my logical error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 22:37:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2660325#M78855</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-07-25T22:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Snapshot Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2660352#M78858</link>
      <description>&lt;P&gt;That works perfect. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 23:15:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-Snapshot-Line-Chart/m-p/2660352#M78858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-25T23:15:32Z</dc:date>
    </item>
  </channel>
</rss>

