<?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: while calculate last week sale first week shows blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961985#M11265</link>
    <description>&lt;P&gt;Yes, Year column is available in my table&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2020 10:18:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-06T10:18:44Z</dc:date>
    <item>
      <title>while calculate last week sale first week shows blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961874#M11257</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While calculating Week over Week change the first-week record is blank, I trying&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales WOW = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR ThisWeek = MAX(Sales[Week])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM(Sales[Price]),Sales[Week] = ThisWeek -1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for 2020 first Week it needs to fetch the record of last week of 2019 and so on.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 09:28:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961874#M11257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T09:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: while calculate last week sale first week shows blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961926#M11260</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you have a column with Year?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 09:48:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961926#M11260</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-06T09:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: while calculate last week sale first week shows blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961931#M11261</link>
      <description>Please do yourself a favor and follow the rules of correct dimensional modeling. You should first of all have a proper Date table in your model and secondly slice only by dimensions, never directly on your fact table's columns.&lt;BR /&gt;&lt;BR /&gt;Then and only then will you be able to build correct calculations. Dealing with weeks is a tricky issue. Please follow this link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/week-based-time-intelligence-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/week-based-time-intelligence-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Fri, 06 Mar 2020 09:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961931#M11261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T09:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: while calculate last week sale first week shows blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961985#M11265</link>
      <description>&lt;P&gt;Yes, Year column is available in my table&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 10:18:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/while-calculate-last-week-sale-first-week-shows-blank/m-p/961985#M11265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T10:18:44Z</dc:date>
    </item>
  </channel>
</rss>

