<?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 DAX - New Column Previous week Info in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-New-Column-Previous-week-Info/m-p/907130#M8547</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with a DAX using the below example I have higlighted in YELLOW?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried New Col = IF(SELECTEDVALUE(Week No) = "W05", MAX(Status), (Week No) = "W04"&lt;/P&gt;&lt;P&gt;which I knew it would not work ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 22:25:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-21T22:25:23Z</dc:date>
    <item>
      <title>DAX - New Column Previous week Info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-New-Column-Previous-week-Info/m-p/907130#M8547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with a DAX using the below example I have higlighted in YELLOW?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried New Col = IF(SELECTEDVALUE(Week No) = "W05", MAX(Status), (Week No) = "W04"&lt;/P&gt;&lt;P&gt;which I knew it would not work ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 22:25:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-New-Column-Previous-week-Info/m-p/907130#M8547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-21T22:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - New Column Previous week Info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-New-Column-Previous-week-Info/m-p/907368#M8555</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;Try this:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Last Week = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var LastWeeksDate = min('SalesStatus'[Date]) - 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Result = CALCULATE(min('SalesStatus'[Status]), AllEXCEPT('SalesStatus',SalesStatus[Opportunity_ID]), 'SalesStatus'[Date] = LastWeeksDate) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (not ISBLANK(Result),Result,"na")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;It works for the sample set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Jan 2020 04:45:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-New-Column-Previous-week-Info/m-p/907368#M8555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-22T04:45:48Z</dc:date>
    </item>
  </channel>
</rss>

