<?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: DAX Rolling WoW  with Week Numbers (no Dates) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703933#M872</link>
    <description>&lt;P&gt;Thank you so much! I was struggling a couple hours on something that seemed super straightforward and you proved that it was! In my delirium, I accidentally tried adding it as a calculated column and wasn't having any luck, then I realized that you said as a measure! Worked like a charm! The only quirk I will try to work out is that it looks at week 1 of the year and gives it a value equal to that week's widget count. I will try to figure out a way to tell it to ignore Week 1 and continue with the rest.&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2019 02:40:20 GMT</pubDate>
    <dc:creator>lfrosales</dc:creator>
    <dc:date>2019-05-31T02:40:20Z</dc:date>
    <item>
      <title>DAX Rolling WoW  with Week Numbers (no Dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703886#M870</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do something in DAX that I can easily do with Excel (show value as difference from previous "x"). In this case, I have a column of Week Numbers with their respective Widget Counts for that week number. In Excel, I can drop into the pivot table and ask it to show me the value difference from the previous week number (regardless of whether it's a date or not). Image below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something to the effect of:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WoW = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR LastWeekCount =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Query1', &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Query1'[WeekNum] = 'Query1'[WeekNum]-1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;, 'Query1'[Widgets])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR fCount = Query1[Widgets]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN fCount - LastWeekCount&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can someone help me convert a very easy Excel feature (show value as difference based on previous "x") to a seemingly obvious DAX statement that I can't quite figure out?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance as always!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 May 2019 00:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703886#M870</guid>
      <dc:creator>lfrosales</dc:creator>
      <dc:date>2019-05-31T00:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rolling WoW  with Week Numbers (no Dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703896#M871</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92254" data-lia-user-login="lfrosales" class="lia-mention lia-mention-user"&gt;lfrosales&lt;/a&gt; add following measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WoW Widget = 
VAR __prevWeek = MAX( Table1[Week] ) - 1
VAR __thisWeekWidget = SUM( Table1[Widgets] )
VAR __prevWeekWidget = CALCULATE( SUM( Table1[Widgets] ), Table1[Week] =  __prevWeek ) 
RETURN __thisWeekWidget - __prevWeekWidget&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 May 2019 01:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703896#M871</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-31T01:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Rolling WoW  with Week Numbers (no Dates)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703933#M872</link>
      <description>&lt;P&gt;Thank you so much! I was struggling a couple hours on something that seemed super straightforward and you proved that it was! In my delirium, I accidentally tried adding it as a calculated column and wasn't having any luck, then I realized that you said as a measure! Worked like a charm! The only quirk I will try to work out is that it looks at week 1 of the year and gives it a value equal to that week's widget count. I will try to figure out a way to tell it to ignore Week 1 and continue with the rest.&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 02:40:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Rolling-WoW-with-Week-Numbers-no-Dates/m-p/703933#M872</guid>
      <dc:creator>lfrosales</dc:creator>
      <dc:date>2019-05-31T02:40:20Z</dc:date>
    </item>
  </channel>
</rss>

