<?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: Immediately Prior focus period measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949067#M153395</link>
    <description>&lt;P&gt;Hi again. Measure is working exactly as expected but total is incorrect, can you please help me to fix it. Total of Measure should be 563 but it was showing 139.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have tried using SUMX and SUMMARIZE but not luck.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2024 09:40:41 GMT</pubDate>
    <dc:creator>Bhanuaripaka</dc:creator>
    <dc:date>2024-05-25T09:40:41Z</dc:date>
    <item>
      <title>Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3931567#M152958</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying create a sum of sales prior period dax measure based on current slicer date range selction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for eg:&amp;nbsp; my Slicer date range is April 20 -&amp;nbsp; 7 may, days between this date range is 17 , I want a measure which goes 17 days behind from start date (April 20 ). I.e; April 3rd to 19 April&amp;nbsp;&lt;/P&gt;&lt;P&gt;it should display some thing like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreiate your help. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 07:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3931567#M152958</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2024-05-20T07:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3931701#M152964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568675" data-lia-user-login="Bhanuaripaka" class="lia-mention lia-mention-user"&gt;Bhanuaripaka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to below demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwTxHz7rdZC8j42mQ" target="_self"&gt;Demo - Immediately Prior focus period measure.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 07:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3931701#M152964</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-20T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3934304#M153056</link>
      <description>&lt;P&gt;It worked, thanks much for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 06:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3934304#M153056</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2024-05-21T06:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3941575#M153248</link>
      <description>&lt;P&gt;Hi. Just wanted to check wheather is there way to build a immediate prior period logic which overlay on current period selection ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently it shows like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;is there way can we do like below ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Appreciate your thoughts.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 05:40:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3941575#M153248</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2024-05-23T05:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3946417#M153328</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568675" data-lia-user-login="Bhanuaripaka" class="lia-mention lia-mention-user"&gt;Bhanuaripaka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to below measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR CurDate = MAX('Date'[Date])
VAR Slicer_Start = CALCULATE(MIN('Date'[Date]),ALLSELECTED())
VAR Slicer_End = CALCULATE(MAX('Date'[Date]),ALLSELECTED())
VAR N = Slicer_End-Slicer_Start
RETURN
CALCULATE(
    SUM('Sales'[Quantity]),
    'Date'[Date]=CurDate-N-1
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 08:36:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3946417#M153328</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-24T08:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3947039#M153343</link>
      <description>&lt;P&gt;Perfect,Thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:40:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3947039#M153343</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2024-05-24T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949067#M153395</link>
      <description>&lt;P&gt;Hi again. Measure is working exactly as expected but total is incorrect, can you please help me to fix it. Total of Measure should be 563 but it was showing 139.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have tried using SUMX and SUMMARIZE but not luck.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 09:40:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949067#M153395</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2024-05-25T09:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949149#M153396</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568675" data-lia-user-login="Bhanuaripaka" class="lia-mention lia-mention-user"&gt;Bhanuaripaka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR Slicer_Start = CALCULATE(MIN('Date'[Date]),ALLSELECTED())
VAR Slicer_End = CALCULATE(MAX('Date'[Date]),ALLSELECTED())
VAR N = Slicer_End-Slicer_Start
RETURN
SUMX(
    VALUES('Date'[Date]),    // Use the Row label Field of Matrix
    VAR CurDate = 'Date'[Date]
    RETURN
    CALCULATE(
        SUM('Sales'[Quantity]),
        'Date'[Date]=CurDate-N-1,
        ALL ('Time Granularity Table')
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 10:10:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949149#M153396</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-25T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Immediately Prior focus period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949182#M153397</link>
      <description>&lt;P&gt;Many thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 10:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Immediately-Prior-focus-period-measure/m-p/3949182#M153397</guid>
      <dc:creator>Bhanuaripaka</dc:creator>
      <dc:date>2024-05-25T10:21:53Z</dc:date>
    </item>
  </channel>
</rss>

