<?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 DAX for Calculating Product status  Reporting Period (DD-MM) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266538#M21241</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you suggest with DAX calculation on How to calculate Product status based on Reporting period and which method would be the&amp;nbsp;best to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the logic details how want to calculate a Product details -&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If a Product_ID is less than 6 months old prior to the current reporting period, they are not required to submit, so should only display as 'Not required'&lt;/LI&gt;&lt;LI&gt;If a Product_ID is over 6 months prior to current reporting period we want to display their information as 'Not Complete' if a record is not listed as Closed&lt;/LI&gt;&lt;LI&gt;If a Product_ID ends before the current reporting period we do not want to display them because they are no longer active, so show product as 'Not Required'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Reporting Period Details are-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Reporting Period&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Quarter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan Month Start -Mar Month End&lt;/TD&gt;&lt;TD&gt;01-01 to 31-03&lt;/TD&gt;&lt;TD&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April Month Start -June Month End&lt;/TD&gt;&lt;TD&gt;01-04 to 31-05&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July Month Start -Sep Month End&lt;/TD&gt;&lt;TD&gt;01-07 to 31-09&lt;/TD&gt;&lt;TD&gt;Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct Month Start -Dec Month End&lt;/TD&gt;&lt;TD&gt;01-10 to 31-12&lt;/TD&gt;&lt;TD&gt;Q4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching sample data in PBIX file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="PowerBI File" href="https://drive.google.com/file/d/1fj6Ed0-kaY7b1bBx5K7C_fpPbmBkW60p/view?usp=sharing" target="_blank" rel="noopener"&gt;@ Product_Status.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2020 21:05:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-01T21:05:29Z</dc:date>
    <item>
      <title>DAX for Calculating Product status  Reporting Period (DD-MM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266538#M21241</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you suggest with DAX calculation on How to calculate Product status based on Reporting period and which method would be the&amp;nbsp;best to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the logic details how want to calculate a Product details -&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If a Product_ID is less than 6 months old prior to the current reporting period, they are not required to submit, so should only display as 'Not required'&lt;/LI&gt;&lt;LI&gt;If a Product_ID is over 6 months prior to current reporting period we want to display their information as 'Not Complete' if a record is not listed as Closed&lt;/LI&gt;&lt;LI&gt;If a Product_ID ends before the current reporting period we do not want to display them because they are no longer active, so show product as 'Not Required'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Reporting Period Details are-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Reporting Period&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Quarter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan Month Start -Mar Month End&lt;/TD&gt;&lt;TD&gt;01-01 to 31-03&lt;/TD&gt;&lt;TD&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April Month Start -June Month End&lt;/TD&gt;&lt;TD&gt;01-04 to 31-05&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July Month Start -Sep Month End&lt;/TD&gt;&lt;TD&gt;01-07 to 31-09&lt;/TD&gt;&lt;TD&gt;Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct Month Start -Dec Month End&lt;/TD&gt;&lt;TD&gt;01-10 to 31-12&lt;/TD&gt;&lt;TD&gt;Q4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching sample data in PBIX file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="PowerBI File" href="https://drive.google.com/file/d/1fj6Ed0-kaY7b1bBx5K7C_fpPbmBkW60p/view?usp=sharing" target="_blank" rel="noopener"&gt;@ Product_Status.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 21:05:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266538#M21241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-01T21:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Calculating Product status  Reporting Period (DD-MM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266566#M21242</link>
      <description>&lt;P&gt;Your period table has an error, should say June 30, not May 31, and September 30, not September 31.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your sample data only has one product ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the first row the Start date is after the end date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that if you include dates that are way in the past (second row)&amp;nbsp; you are artificially inflating the storage memory requirements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Which of the dates should be used for the calculation? The end date or the completion date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any particular reason for not using a Calendar/Dates table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 22:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266566#M21242</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-08-01T22:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Calculating Product status  Reporting Period (DD-MM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266654#M21247</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hey &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;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for the reply&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the reporting period re-vamp details -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Reporting Period&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Quarter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan Month Start -Mar Month End&lt;/TD&gt;&lt;TD&gt;01-01 to 31-03&lt;/TD&gt;&lt;TD&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April Month Start -June Month End&lt;/TD&gt;&lt;TD&gt;01-04 to 30-05&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;July Month Start -Sep Month End&lt;/TD&gt;&lt;TD&gt;01-07 to 30-09&lt;/TD&gt;&lt;TD&gt;Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct Month Start -Dec Month End&lt;/TD&gt;&lt;TD&gt;01-10 to 31-12&lt;/TD&gt;&lt;TD&gt;Q4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any particular reason for not using a Calendar/Dates table?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To answer to your question, We dont have Calender tables based on reporting period, If you could share this problem with DAX using Calender table and this approach is best then its fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the update data with PBIX file -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@&amp;nbsp;&lt;A title="Product Status" href="https://drive.google.com/file/d/1yafpgHsO_I2vRLDXjnatFYBl5qLib2GH/view?usp=sharing" target="_blank" rel="noopener"&gt;Product_Status.pbix&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 06:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1266654#M21247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-02T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Calculating Product status  Reporting Period (DD-MM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1269430#M21360</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will trying to calculate this, can anyone suggest best method Please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 18:40:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Calculating-Product-status-Reporting-Period-DD-MM/m-p/1269430#M21360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-03T18:40:44Z</dc:date>
    </item>
  </channel>
</rss>

