<?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: Week over Week change % in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914543#M8817</link>
    <description>&lt;P&gt;Thank you very much for your help^^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 05:34:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-29T05:34:46Z</dc:date>
    <item>
      <title>Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914507#M8814</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate Week over Week change %.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i write the following DAX but red highlighted one has Error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should&amp;nbsp; i change the expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Week change = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR lastweekamount = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM(Power_BI_Book_Coin[R_Coin_Cnt]),&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;ALL(Power_BI_Book_Coin), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RELATED&lt;FONT color="#FF0000"&gt;('Date'[WeekYear] &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;= MIN('Date'[WeekYear]-1))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;IF(lastweekamount = 0, "N/A",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE(SUM(Power_BI_Book_Coin[R_Coin_Cnt]) - lastweekamount, lastweekamount, 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;P&gt;&amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 04:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914507#M8814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T04:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914528#M8815</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;Please use the below formula&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Measure =
VAR lastWeekAmount =
    CALCULATE (
        SUM ( Value Sum),
        FILTER (
            ALL ( 'Calendar' ),
            'Calendar'[WeekNum]
                = MIN ( 'Calendar'[WeekNum] ) - 1
        )
    )
RETURN
    DIVIDE ( SUM ( Value Sum ) - lastWeekAmount, lastWeekAmount, 0 )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&amp;nbsp; Raj Singh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LinkedIN :&amp;nbsp;&lt;A href="https://www.linkedin.com/in/gauravrajsingh/" target="_blank"&gt;https://www.linkedin.com/in/gauravrajsingh/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:08:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914528#M8815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T05:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914543#M8817</link>
      <description>&lt;P&gt;Thank you very much for your help^^&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:34:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914543#M8817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T05:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914547#M8818</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;it worked ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:36:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914547#M8818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T05:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914564#M8819</link>
      <description>&lt;P&gt;Yes it worked^^ Thanks you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, i need to show Week sales as following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case i need to calculate This week sale and last week sale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would you help me Dax for those?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914564#M8819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T05:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914584#M8821</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 for LastweekSales&lt;/P&gt;&lt;P&gt;LastWeekSales =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var ThisWeek = Max(WeekNum)&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;calculate(sum(sales),WeekNum = ThisWeek - 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:55:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914584#M8821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T05:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914592#M8822</link>
      <description>&lt;P&gt;It worked perfect^^&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about week to date /This week sale/??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, thank you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 06:01:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914592#M8822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T06:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914597#M8823</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;ThisWeekToDate =&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;calculate(sum(sales),WeekNum = MAX(WeekNum))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 06:03:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914597#M8823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Week over Week change %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914610#M8824</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 06:21:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-over-Week-change/m-p/914610#M8824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T06:21:00Z</dc:date>
    </item>
  </channel>
</rss>

