<?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 Need Help Regarding Last 2 Months Order Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3794020#M148264</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset containing the product orders of three years (2021, 2022, 2023). For each Year, I have data for 6 months (Starting from March to August). I have calculated the &lt;STRONG&gt;"Total Orders InFull"&lt;/STRONG&gt; for the dataset by the following manner:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Total Orders InFull =&lt;/DIV&gt;&lt;DIV&gt;CALCULATE( [Total Orders], &lt;SPAN&gt;Fact_Order_Aggregate[in_full] = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I've created a table visual. In the 1st column, I put the &lt;STRONG&gt;"Start of Month"&lt;/STRONG&gt; for the selected year. In the 2nd column, I put the &lt;STRONG&gt;"Total Orders InFull"&lt;/STRONG&gt; for each month. In the 3rd column, I want to put the &lt;STRONG&gt;"Total InFull Orders Compared with Last 2 Months"&lt;/STRONG&gt;. I used DATEADD function to calculate the measure like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Total InFull Orders Compared with Last 2 Months =&lt;/DIV&gt;&lt;DIV&gt;CALCULATE( [Total Orders InFull], DATEADD(Dim_Date[Date], -2, MONTH))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;Now, my table is looking like this (I added two pictures, one for Year-2022 Selection, another for Year-2023 Selection):&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;img /&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I wanted the Table in such a way, for any given &lt;STRONG&gt;"Start of Month"&lt;/STRONG&gt;, the &lt;SPAN&gt;&lt;STRONG&gt;"Total InFull Orders Compared with Last 2 Months"&lt;/STRONG&gt;&lt;/SPAN&gt; should not be empty &amp;amp; should contain the &lt;SPAN&gt;&lt;STRONG&gt;"Total InFull Orders" &lt;/STRONG&gt;of two months before.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;For Example, In the 2nd screenshots (Year-2023 filter), the &lt;STRONG&gt;"Total InFull Orders Compared with Last 2 Months"&lt;/STRONG&gt; of &lt;EM&gt;Saturday, April 01, 2023&lt;/EM&gt; should not be empty, and should be the &lt;STRONG&gt;"Total Orders InFull"&lt;/STRONG&gt; of &lt;EM&gt;Friday, July 01, 2022&lt;/EM&gt;, i.e. &lt;STRONG&gt;939&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please suggest me how can I fill those empty values with the proper values I want by keeping the Year Slicer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 16:16:01 GMT</pubDate>
    <dc:creator>Noor_Ahmad</dc:creator>
    <dc:date>2024-03-27T16:16:01Z</dc:date>
    <item>
      <title>Need Help Regarding Last 2 Months Order Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3794020#M148264</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset containing the product orders of three years (2021, 2022, 2023). For each Year, I have data for 6 months (Starting from March to August). I have calculated the &lt;STRONG&gt;"Total Orders InFull"&lt;/STRONG&gt; for the dataset by the following manner:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Total Orders InFull =&lt;/DIV&gt;&lt;DIV&gt;CALCULATE( [Total Orders], &lt;SPAN&gt;Fact_Order_Aggregate[in_full] = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I've created a table visual. In the 1st column, I put the &lt;STRONG&gt;"Start of Month"&lt;/STRONG&gt; for the selected year. In the 2nd column, I put the &lt;STRONG&gt;"Total Orders InFull"&lt;/STRONG&gt; for each month. In the 3rd column, I want to put the &lt;STRONG&gt;"Total InFull Orders Compared with Last 2 Months"&lt;/STRONG&gt;. I used DATEADD function to calculate the measure like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Total InFull Orders Compared with Last 2 Months =&lt;/DIV&gt;&lt;DIV&gt;CALCULATE( [Total Orders InFull], DATEADD(Dim_Date[Date], -2, MONTH))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;Now, my table is looking like this (I added two pictures, one for Year-2022 Selection, another for Year-2023 Selection):&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;img /&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I wanted the Table in such a way, for any given &lt;STRONG&gt;"Start of Month"&lt;/STRONG&gt;, the &lt;SPAN&gt;&lt;STRONG&gt;"Total InFull Orders Compared with Last 2 Months"&lt;/STRONG&gt;&lt;/SPAN&gt; should not be empty &amp;amp; should contain the &lt;SPAN&gt;&lt;STRONG&gt;"Total InFull Orders" &lt;/STRONG&gt;of two months before.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;For Example, In the 2nd screenshots (Year-2023 filter), the &lt;STRONG&gt;"Total InFull Orders Compared with Last 2 Months"&lt;/STRONG&gt; of &lt;EM&gt;Saturday, April 01, 2023&lt;/EM&gt; should not be empty, and should be the &lt;STRONG&gt;"Total Orders InFull"&lt;/STRONG&gt; of &lt;EM&gt;Friday, July 01, 2022&lt;/EM&gt;, i.e. &lt;STRONG&gt;939&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please suggest me how can I fill those empty values with the proper values I want by keeping the Year Slicer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 16:16:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3794020#M148264</guid>
      <dc:creator>Noor_Ahmad</dc:creator>
      <dc:date>2024-03-27T16:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Regarding Last 2 Months Order Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3795094#M148311</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 20:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3795094#M148311</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-27T20:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Regarding Last 2 Months Order Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3795294#M148327</link>
      <description>&lt;P&gt;Thank you so much, sir. This solution worked as I wanted&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 23:57:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Regarding-Last-2-Months-Order-Calculation/m-p/3795294#M148327</guid>
      <dc:creator>Noor_Ahmad</dc:creator>
      <dc:date>2024-03-27T23:57:06Z</dc:date>
    </item>
  </channel>
</rss>

