<?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: How to Calculate Sum of 'Overall Pending' for 30-Day Lock in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4084043#M162099</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Again it shows some error. Im attaching the Input dummy data and the expected output. Please refer to it.&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 11:41:21 GMT</pubDate>
    <dc:creator>fabric_ba</dc:creator>
    <dc:date>2024-08-06T11:41:21Z</dc:date>
    <item>
      <title>How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4082987#M162076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two tables, 'Input' and 'Date', with the following relationships:&lt;/P&gt;&lt;P&gt;- An **active** relationship between `Date[Date]` and `Input[Start date]`.&lt;/P&gt;&lt;P&gt;- An **inactive** relationship between `Date[Date]` and `Input[Updated on]`.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;### Context:&lt;/P&gt;&lt;P&gt;- **'Start date'**: The date when a demand is for.(Jan24 to Jan 25) here Jan 24 to July 24 is actuals. Aug 24 to Jan 25 is forecasted&lt;/P&gt;&lt;P&gt;- **'Updated on'**: The date when the data is released. (Jan24-Aug24) everymonth one file is released&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to implement a "30-day lock" period, which means for each selected month, I want to sum the 'Overall Pending' values based on the 'Updated on' dates from the previous month.&lt;BR /&gt;For example: Refer the attachment&lt;/P&gt;&lt;P&gt;- If the matrix column is July-24, the measure should sum the 'Overall Pending' where `by referring the data released on `Input[Updated on]`June and give the result for `Input[Start date]` July.&lt;/P&gt;&lt;P&gt;- Similarly, for June-24, it should consider May-24 data, and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;### Matrix Visual Setup:&lt;/P&gt;&lt;P&gt;- **Rows**: 'Catergory data' from the 'Input' table.&lt;/P&gt;&lt;P&gt;- **Columns**: 'Month_Year' from the 'Date' table.&lt;/P&gt;&lt;P&gt;- **Values**: Requested dax The calculated sum of 'Overall Pending' for the previous month's data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted to use `USERELATIONSHIP` and `PARALLELPERIOD`, but it didn’t work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 04:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4082987#M162076</guid>
      <dc:creator>fabric_ba</dc:creator>
      <dc:date>2024-08-06T04:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4083145#M162079</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786741" data-lia-user-login="fabric_ba" class="lia-mention lia-mention-user"&gt;fabric_ba&lt;/a&gt;&amp;nbsp;, Try using below measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OverallPendingPreviousMonth = &lt;BR /&gt;VAR SelectedMonth = MAX('Date'[Date])&lt;BR /&gt;VAR PreviousMonth = EOMONTH(SelectedMonth, -1) -- End of the previous month&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Input'[Overall Pending]),&lt;BR /&gt;USERELATIONSHIP('Date'[Date], 'Input'[Updated on]), -- Activate the inactive relationship&lt;BR /&gt;'Input'[Start date] &amp;gt;= EOMONTH(PreviousMonth, 0) + 1, -- Start date is in the current month&lt;BR /&gt;'Input'[Start date] &amp;lt;= EOMONTH(SelectedMonth, 0) -- End date is in the current month&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 05:45:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4083145#M162079</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-08-06T05:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4083319#M162083</link>
      <description>&lt;P&gt;Thank you very much for the response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the results are not as expected, so I'd like to provide more context. Currently, we are in August 2024. In the column for August 2024, I want to check the data released, July 2024 (from Input[Updated on]), to see the predictions made for August 2024(`Input[Start date]` ) only .&lt;/P&gt;&lt;P&gt;Similarly, in the column for July 2024, I want to check the data from June 2024 (from Input[Updated on]) to see the predictions made for July 2024.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 06:44:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4083319#M162083</guid>
      <dc:creator>fabric_ba</dc:creator>
      <dc:date>2024-08-06T06:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4084007#M162097</link>
      <description>&lt;P&gt;Thanks for additional context try updating measure as&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;OverallPendingPreviousMonth &lt;/SPAN&gt;&lt;SPAN&gt;=&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;&amp;nbsp; &amp;nbsp; SUM(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Input&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Overall Pending]),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; USERELATIONSHIP(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Date], &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Input&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Updated on]),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Input&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Updated on] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; [PreviousMonthDate],&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; USERELATIONSHIP(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Date], &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Input&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[Start date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Aug 2024 11:24:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4084007#M162097</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-08-06T11:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4084043#M162099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Again it shows some error. Im attaching the Input dummy data and the expected output. Please refer to it.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 11:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4084043#M162099</guid>
      <dc:creator>fabric_ba</dc:creator>
      <dc:date>2024-08-06T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4086388#M162193</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Firstly&amp;nbsp;bhanu_gautam thank you for your solution!&lt;BR /&gt;And&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786741" data-lia-user-login="fabric_ba" class="lia-mention lia-mention-user"&gt;fabric_ba&lt;/a&gt;&amp;nbsp;for you problem,In my understanding, you want to show the overall panding of the previous month in the next month, then we can use calculated columns to achieve this requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PreviousDayPending = 
VAR CurrentDate = 'Input_Table_Monthly'[Updated on]
VAR previousMonth1 =DATEADD('Input_Table_Monthly'[Updated on],-1,MONTH)
VAR A=CALCULATE(
           MAX('Input_Table_Monthly'[Overall Pending]),
           FILTER(
               'Input_Table_Monthly',
               'Input_Table_Monthly'[Updated on] =previousMonth1  &amp;amp;&amp;amp;
               'Input_Table_Monthly'[Category] = EARLIER('Input_Table_Monthly'[Category])
           )
)
RETURN
IF( ISBLANK(A),
0,
A
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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;If you have questions, check out my attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:05:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4086388#M162193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-07T09:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Sum of 'Overall Pending' for 30-Day Lock</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4141970#M164613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="786741" data-lia-user-login="fabric_ba" class="lia-mention lia-mention-user"&gt;fabric_ba&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Has your problem been solved after all this time, or has a new problem arisen, if there are any other questions on this issue, feel free to contact me and I'll get back to you as soon as I receive the message.&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 05:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Calculate-Sum-of-Overall-Pending-for-30-Day-Lock/m-p/4141970#M164613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-10T05:32:27Z</dc:date>
    </item>
  </channel>
</rss>

