<?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: Determine what status is on date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2573391#M73608</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please, could you mention clearly what you have as input data, and what output you want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jun 2022 19:52:58 GMT</pubDate>
    <dc:creator>ManguilibeKAO</dc:creator>
    <dc:date>2022-06-12T19:52:58Z</dc:date>
    <item>
      <title>Determine what status is on date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2567034#M73175</link>
      <description>&lt;P&gt;I need to be able to determine what the the status is of a location on a given date.&amp;nbsp; For example of the data below I need to bea ble to tell how many types are in each status on a given date.&lt;BR /&gt;&lt;BR /&gt;Example: with the data below I need to be able to do a sum of all types that are in approved status as of the first of a month and year.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;date&lt;/TD&gt;&lt;TD&gt;type&lt;/TD&gt;&lt;TD&gt;status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2014&lt;/TD&gt;&lt;TD&gt;yellow&lt;/TD&gt;&lt;TD&gt;inactive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/5/2016&lt;/TD&gt;&lt;TD&gt;blue&lt;/TD&gt;&lt;TD&gt;Approved&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7/4/2018&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;TD&gt;inactive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/1/2020&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;TD&gt;Pending&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/2/2020&lt;/TD&gt;&lt;TD&gt;yellow&lt;/TD&gt;&lt;TD&gt;pending&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/15/2020&lt;/TD&gt;&lt;TD&gt;yellow&lt;/TD&gt;&lt;TD&gt;approved&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8/8/2020&lt;/TD&gt;&lt;TD&gt;blue&lt;/TD&gt;&lt;TD&gt;inactive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/8/2021&lt;/TD&gt;&lt;TD&gt;red&lt;/TD&gt;&lt;TD&gt;approved&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 08 Jun 2022 15:40:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2567034#M73175</guid>
      <dc:creator>CVanpat91</dc:creator>
      <dc:date>2022-06-08T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Determine what status is on date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2573391#M73608</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please, could you mention clearly what you have as input data, and what output you want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 19:52:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2573391#M73608</guid>
      <dc:creator>ManguilibeKAO</dc:creator>
      <dc:date>2022-06-12T19:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determine what status is on date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2573643#M73621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387053" data-lia-user-login="CVanpat91" class="lia-mention lia-mention-user"&gt;CVanpat91&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Measure and make some changes to it per your needs.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountForFirstOfMonth&amp;amp;Year =
VAR specificDate =
    DATE ( 2020, 11, 15) //specify a date
VAR asOfDate =
    DATE ( YEAR ( specificDate ), MONTH ( specificDate ), 1 ) //get the first day of specific month&amp;amp;year
VAR countType =
    CALCULATE (
        COUNT ( 'Table'[type] ),
        FILTER (
            'Table',
            LOWER ( 'Table'[status] ) = "approved"
                &amp;amp;&amp;amp; 'Table'[date] &amp;lt; asOfDate
        )
    ) //calculate based on date before the first day of specific month&amp;amp;year
RETURN
    countType&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, the result will look like this.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 02:50:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-what-status-is-on-date/m-p/2573643#M73621</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-06-13T02:50:04Z</dc:date>
    </item>
  </channel>
</rss>

