<?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: Last Week Daily Sales Line Graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901929#M94546</link>
    <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Thanks for your quick answer. All good except, I dont have the WEEK option, only MONTH; YEAR, DATE, QUARTER, I guess I need to create it?&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
    <pubDate>Sun, 13 Nov 2022 09:57:01 GMT</pubDate>
    <dc:creator>Elofly</dc:creator>
    <dc:date>2022-11-13T09:57:01Z</dc:date>
    <item>
      <title>Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901897#M94544</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a line graph where I have the following data:&lt;/P&gt;&lt;P&gt;- Y axe: Total Sales&lt;/P&gt;&lt;P&gt;- X axe: Days of the week (Monday, tuesday, etc.)&lt;/P&gt;&lt;P&gt;- Line A: Last week sales&lt;/P&gt;&lt;P&gt;- Line B: Previous last week sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to manage almost everything but I cannot seem to get both values in the same graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 08:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901897#M94544</guid>
      <dc:creator>Elofly</dc:creator>
      <dc:date>2022-11-13T08:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901907#M94545</link>
      <description>&lt;DIV&gt;That involves time intelligence functions.&amp;nbsp;If you have a Date table, then it is easy.&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Supposing you have a measure for the current Total Sales name [Total Sales]&lt;SPAN&gt;, then you can create two new measures with the code below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Last Week Total Sales := CALCULATE ([Total Sales], DATEADD('Date'[Date], -7, DAY) )&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Previous Last Week Total Sales := CALCULATE ([Total Sales], DATEADD('Date'[Date], -14, DAY) )&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Plot all three measures in the same chart, then you see what you expect.&amp;nbsp;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Please come back, if you don't have a Date table.&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 13 Nov 2022 10:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901907#M94545</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-13T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901929#M94546</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Thanks for your quick answer. All good except, I dont have the WEEK option, only MONTH; YEAR, DATE, QUARTER, I guess I need to create it?&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 09:57:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901929#M94546</guid>
      <dc:creator>Elofly</dc:creator>
      <dc:date>2022-11-13T09:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901930#M94547</link>
      <description>&lt;P&gt;You are right, there is no WEEK interval. You can try -7 DAY and -14 DAY.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 10:12:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901930#M94547</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-13T10:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901938#M94548</link>
      <description>&lt;P&gt;Unfortunately, that would run weeks and not "calendar weeks" (from monday to sunday only)&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 10:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901938#M94548</guid>
      <dc:creator>Elofly</dc:creator>
      <dc:date>2022-11-13T10:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901947#M94550</link>
      <description>&lt;P&gt;What does that mean? Could you please provide a screenshot or upload the simplified report?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 10:51:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2901947#M94550</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-13T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2903048#M94610</link>
      <description>&lt;P&gt;Hi Freeman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end I went for this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last Week TTV (-2) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;LASTWEEK&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&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;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;vw_Becca_ZoeBookings&lt;/SPAN&gt;&lt;SPAN&gt;[TotalPrice]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Bookings'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Bookings'&lt;/SPAN&gt;&lt;SPAN&gt;[Week Number]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;LASTWEEK&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks a lot for your help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Nov 2022 08:14:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2903048#M94610</guid>
      <dc:creator>Elofly</dc:creator>
      <dc:date>2022-11-14T08:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Last Week Daily Sales Line Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2905260#M94768</link>
      <description>&lt;P&gt;Glad to hear that. With WEEKNUM, we even don't need the Date table, bravo!!!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 03:58:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Week-Daily-Sales-Line-Graph/m-p/2905260#M94768</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-15T03:58:31Z</dc:date>
    </item>
  </channel>
</rss>

