<?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: Sameperiodalstyear calculation for last years same week of month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324660#M58151</link>
    <description>&lt;P&gt;hello&amp;nbsp;&lt;BR /&gt;thank you so much the refrences that you shared help me to catch this function&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt; PREVIOUSYEAR ( 'Date'[Date] )&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;and my final code that solve may issue is compination between&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt; CALCULATE ( SUM ( DIM_WON_ANALYTICS[actualvalue] ), //SAMEPERIODLASTYEAR ( 'Date'[Date] ), //DATEADD ( 'Date'[Date] , - 1 , YEAR ) PREVIOUSYEAR ( 'Date'[Date] ), 'Date'[IsWeek] = "Current Week", 'Date'[IsMonth] = "Yes" ) RETURN IF ( RST &amp;gt; 0, RST, 0 )&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 06:31:33 GMT</pubDate>
    <dc:creator>xcrmadmin</dc:creator>
    <dc:date>2022-02-08T06:31:33Z</dc:date>
    <item>
      <title>Sameperiodalstyear calculation for last years same week of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2321017#M57983</link>
      <description>&lt;P&gt;I have an issue that my measure for&amp;nbsp;Sameperiodalstyear is not filtered to get sales of last year the same week of month period ist only calculate the month period but i was filtered to show the week of the month and it does not work.&lt;BR /&gt;&lt;BR /&gt;Anyone can help me to right the measure for&amp;nbsp;Sameperiodalstyear that calculates the week of the month period, not the whole month.&lt;BR /&gt;my report is sent every end of the week to my reporter so the&amp;nbsp;measure should show the week period of the month, not the whole month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a date table and there are relationships with the salse table, and the date table i have calculated column the defines the dates similar to current week and i use this to filter to filter per week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 11:35:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2321017#M57983</guid>
      <dc:creator>xcrmadmin</dc:creator>
      <dc:date>2022-02-05T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiodalstyear calculation for last years same week of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2321230#M57987</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320886" data-lia-user-login="xcrmadmin" class="lia-mention lia-mention-user"&gt;xcrmadmin&lt;/a&gt;&amp;nbsp;You may find this helpful - &lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 16:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2321230#M57987</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-02-05T16:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiodalstyear calculation for last years same week of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2321274#M57990</link>
      <description>&lt;P&gt;This measure may solve your problem. I am using [Total Sales] for the measure to get to any time frame that is filtered for, for prior year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales LY = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&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;Sales LY-1 = CALCULATE( [Total Sales], DATEADD( Dates[Date], -2, YEAR ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Feb 2022 17:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2321274#M57990</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-02-05T17:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiodalstyear calculation for last years same week of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324583#M58146</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your solution, but when i appy your idea the result coming fine but there are zero value instead of the actual value that should appear of previues year for 2021 (AALY) the value appear &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;zero&lt;/STRONG&gt; &lt;/EM&gt;&lt;/U&gt;and its should appear &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;37750&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i dont know what the wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 05:34:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324583#M58146</guid>
      <dc:creator>xcrmadmin</dc:creator>
      <dc:date>2022-02-08T05:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiodalstyear calculation for last years same week of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324656#M58150</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;BR /&gt;thank you so much the refrences that you shared help me to catch this function&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt; &lt;FONT&gt;PREVIOUSYEAR&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'Date'[Date] &lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;and my final code that solve may issue is compination between&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt; &lt;FONT&gt;CALCULATE&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;SUM&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; DIM_WON_ANALYTICS[actualvalue] &lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;//SAMEPERIODLASTYEAR ( 'Date'[Date] ),&lt;/FONT&gt; &lt;FONT&gt;//DATEADD ( 'Date'[Date] , - 1 , YEAR )&lt;/FONT&gt; &lt;FONT&gt;PREVIOUSYEAR&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'Date'[Date] &lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt;, 'Date'[IsWeek] = &lt;/FONT&gt;&lt;FONT&gt;"Current Week"&lt;/FONT&gt;&lt;FONT&gt;, 'Date'[IsMonth] = &lt;/FONT&gt;&lt;FONT&gt;"Yes"&lt;/FONT&gt; &lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; RETURN&lt;/FONT&gt; &lt;FONT&gt;IF&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; RST &amp;gt; &lt;/FONT&gt;&lt;FONT&gt;0&lt;/FONT&gt;&lt;FONT&gt;, RST, &lt;/FONT&gt;&lt;FONT&gt;0&lt;/FONT&gt; &lt;FONT&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 06:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324656#M58150</guid>
      <dc:creator>xcrmadmin</dc:creator>
      <dc:date>2022-02-08T06:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sameperiodalstyear calculation for last years same week of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324660#M58151</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;BR /&gt;thank you so much the refrences that you shared help me to catch this function&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt; PREVIOUSYEAR ( 'Date'[Date] )&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;and my final code that solve may issue is compination between&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt; CALCULATE ( SUM ( DIM_WON_ANALYTICS[actualvalue] ), //SAMEPERIODLASTYEAR ( 'Date'[Date] ), //DATEADD ( 'Date'[Date] , - 1 , YEAR ) PREVIOUSYEAR ( 'Date'[Date] ), 'Date'[IsWeek] = "Current Week", 'Date'[IsMonth] = "Yes" ) RETURN IF ( RST &amp;gt; 0, RST, 0 )&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 06:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sameperiodalstyear-calculation-for-last-years-same-week-of-month/m-p/2324660#M58151</guid>
      <dc:creator>xcrmadmin</dc:creator>
      <dc:date>2022-02-08T06:31:33Z</dc:date>
    </item>
  </channel>
</rss>

