<?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: Help inferring an item's status when there is no existing data point in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-inferring-an-item-s-status-when-there-is-no-existing-data/m-p/3097696#M108759</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="519168" data-lia-user-login="Amybot" class="lia-mention lia-mention-user"&gt;Amybot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;you can create a measure as below to get it, please find the details in&lt;EM&gt;&lt;STRONG&gt; the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountItems = 
VAR _seldate =
    SELECTEDVALUE ( 'Date'[Date] )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[ID] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ChangedDate] &amp;lt;= _seldate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In addition, you can refer the below blog to &lt;STRONG&gt;add&lt;/STRONG&gt; the "missing" dates for per ID in Power Query Editor:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://medium.com/dm-p/generating-rows-by-month-for-date-ranges-in-power-query-9baf62ed8e99" target="_blank" rel="noopener"&gt;Generating Rows by Month for Date Ranges in Power Query | by Daniel Marsh-Patrick | Daniel Marsh-Patrick | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;After you completed the above step, it will be easier to get the expected count...&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 10:09:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-24T10:09:37Z</dc:date>
    <item>
      <title>Help inferring an item's status when there is no existing data point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-inferring-an-item-s-status-when-there-is-no-existing-data/m-p/3093713#M108468</link>
      <description>&lt;P&gt;Hi everyone!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; I'm a long time user of the forums, but a first time poster.&amp;nbsp;&lt;BR /&gt;I have a situation where I have data coming from another system (Azure) - a source I can't change or adapt and I need to be able to count 'in progress' items to say what was being worked on at any given moment in time.&lt;BR /&gt;However things can sit idle for extended periods, so it's in progress but not 'active' so I can have the situation where there's no update/record to count -&lt;/P&gt;&lt;P&gt;For example item 1 is open in September, and is still open in November, so I need to infer that it was also open in October.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ChangedDate&lt;/TD&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/09/2022&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;In progress&lt;/TD&gt;&lt;TD&gt;Sep 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/11/2022&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;In progress&lt;/TD&gt;&lt;TD&gt;Nov 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/9/2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;In progress&lt;/TD&gt;&lt;TD&gt;Sep 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/10/2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;In progress&lt;/TD&gt;&lt;TD&gt;Oct 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/11/2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;In progress&lt;/TD&gt;&lt;TD&gt;Nov 2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However all I'm able to get is :&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;CountItems&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep 2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct 2022&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Nov 2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what I want to see is:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;CountItems&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep 2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct 2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Nov 2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to get the last status to persist into the next month in the case that there's no actual update?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Amy.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 18:05:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-inferring-an-item-s-status-when-there-is-no-existing-data/m-p/3093713#M108468</guid>
      <dc:creator>Amybot</dc:creator>
      <dc:date>2023-02-22T18:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help inferring an item's status when there is no existing data point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-inferring-an-item-s-status-when-there-is-no-existing-data/m-p/3097696#M108759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="519168" data-lia-user-login="Amybot" class="lia-mention lia-mention-user"&gt;Amybot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;you can create a measure as below to get it, please find the details in&lt;EM&gt;&lt;STRONG&gt; the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CountItems = 
VAR _seldate =
    SELECTEDVALUE ( 'Date'[Date] )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[ID] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ChangedDate] &amp;lt;= _seldate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In addition, you can refer the below blog to &lt;STRONG&gt;add&lt;/STRONG&gt; the "missing" dates for per ID in Power Query Editor:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://medium.com/dm-p/generating-rows-by-month-for-date-ranges-in-power-query-9baf62ed8e99" target="_blank" rel="noopener"&gt;Generating Rows by Month for Date Ranges in Power Query | by Daniel Marsh-Patrick | Daniel Marsh-Patrick | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;After you completed the above step, it will be easier to get the expected count...&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 10:09:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-inferring-an-item-s-status-when-there-is-no-existing-data/m-p/3097696#M108759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-24T10:09:37Z</dc:date>
    </item>
  </channel>
</rss>

