<?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: created and deleted items in one matrix table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458824#M66437</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233589" data-lia-user-login="cousinitt13" class="lia-mention lia-mention-user"&gt;cousinitt13&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You need only one disconnected date table&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TASK (SRQ) - parent Object closed date =
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    'ServiceReq'[Closed Date] &amp;gt;= MIN ( 'Date'[Date] ),
    'ServiceReq'[Closed Date] &amp;lt;= MAX ( 'Date'[Date] )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;TASK (SRQ) - parent Object open date =
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    'ServiceReq'[Open Date] &amp;gt;= MIN ( 'Date'[Date] ),
    'ServiceReq'[Open Date] &amp;lt;= MAX ( 'Date'[Date] )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 15 Apr 2022 08:49:31 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-15T08:49:31Z</dc:date>
    <item>
      <title>created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458750#M66428</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling with some, in my opinion, very easy problem.&lt;/P&gt;&lt;P&gt;There is a table with items including creation and delete date&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;TD&gt;creation date&lt;/TD&gt;&lt;TD&gt;deletion date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;May&lt;/TD&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;May&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to have two measures, where I can select for example "April",&lt;BR /&gt;and I get measure "all_created" and "all_closed" for this month .&lt;/P&gt;&lt;P&gt;one my formular see below.&amp;nbsp; &amp;nbsp;the problem here is, it is filtered by creation_date also&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;TASK (SRQ) - parent Object closed date =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT('ServiceReq'[Number]),&lt;BR /&gt;FILTER(ServiceReq,&lt;BR /&gt;('ServiceReq'[Closed Date]) &amp;gt;= MIN('Closed Date'[Date]) &amp;amp;&amp;amp;&lt;BR /&gt;('ServiceReq'[Closed Date]) &amp;lt;= MAX('Closed Date'[Date])&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anybody help in this case?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 07:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458750#M66428</guid>
      <dc:creator>cousinitt13</dc:creator>
      <dc:date>2022-04-15T07:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458802#M66431</link>
      <description>&lt;P&gt;this is the relation model&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 08:28:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458802#M66431</guid>
      <dc:creator>cousinitt13</dc:creator>
      <dc:date>2022-04-15T08:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458819#M66434</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233589" data-lia-user-login="cousinitt13" class="lia-mention lia-mention-user"&gt;cousinitt13&lt;/a&gt; , If you need close and created on the same period you can work with one date table with Active inactive join and userelationship (to be used in measure) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi" target="_blank"&gt;https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 08:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458819#M66434</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-15T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458823#M66436</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thanks for the quick answer. I'm understanding this way you sent me, my problem is, I didn't have the possibility to create this datetable cause of restrictions of this dataset.&lt;BR /&gt;is there any other way??&lt;BR /&gt;&lt;BR /&gt;If I use the &lt;STRONG&gt;ALL() &lt;/STRONG&gt;function, the "closed date" filter seems to be ignored&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TASK (SRQ) - parent Object closed date = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Task for ServiceReq'[Task Number]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ALL(ServiceReq&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ServiceReq[Converted To Incident]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FALSE&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ServiceReq'[Closed Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Closed Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ServiceReq'[Closed Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Closed Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;BR&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 08:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458823#M66436</guid>
      <dc:creator>cousinitt13</dc:creator>
      <dc:date>2022-04-15T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458824#M66437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233589" data-lia-user-login="cousinitt13" class="lia-mention lia-mention-user"&gt;cousinitt13&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You need only one disconnected date table&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TASK (SRQ) - parent Object closed date =
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    'ServiceReq'[Closed Date] &amp;gt;= MIN ( 'Date'[Date] ),
    'ServiceReq'[Closed Date] &amp;lt;= MAX ( 'Date'[Date] )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;TASK (SRQ) - parent Object open date =
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    'ServiceReq'[Open Date] &amp;gt;= MIN ( 'Date'[Date] ),
    'ServiceReq'[Open Date] &amp;lt;= MAX ( 'Date'[Date] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 15 Apr 2022 08:49:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458824#M66437</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-15T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458842#M66439</link>
      <description>&lt;P&gt;Not having the opportunity to create relationships and new tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Apr 2022 09:01:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458842#M66439</guid>
      <dc:creator>cousinitt13</dc:creator>
      <dc:date>2022-04-15T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458896#M66444</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233589" data-lia-user-login="cousinitt13" class="lia-mention lia-mention-user"&gt;cousinitt13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alright, I guess in this case also REMOVEFILTERS function is not available. Then you can use one of the date tables in the slicer&amp;nbsp;&lt;SPAN&gt;(I guess better than using two slicers) and use this code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TASK (SRQ) - parent Object open date =
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    ALL ( 'Created Date' ),
    ALL ( 'Closed Date' ),
    'ServiceReq'[Open Date] &amp;gt;= MIN ( 'Closed Date'[Date] ),
    'ServiceReq'[Open Date] &amp;lt;= MAX ( 'Closed Date'[Date] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TASK (SRQ) - parent Object Created date =
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    ALL ( 'Created Date' ),
    ALL ( 'Closed Date' ),
    'ServiceReq'[Created Date] &amp;gt;= MIN ( 'Closed Date'[Date] ),
    'ServiceReq'[Created Date] &amp;lt;= MAX ( 'Closed Date'[Date] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 09:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2458896#M66444</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-15T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: created and deleted items in one matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2462640#M66741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233589" data-lia-user-login="cousinitt13" class="lia-mention lia-mention-user"&gt;cousinitt13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly.&amp;nbsp;If I use the ALL function, it does not remove the filter on table&amp;nbsp;'Closed Date'. Could you please share your&amp;nbsp;calculation results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;parent Object closed date = 
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    FILTER (
        ALL ( ServiceReq ),
        ( 'ServiceReq'[Closed Date] ) &amp;gt;= MIN ( 'Closed Date'[Date] )
            &amp;amp;&amp;amp; ( 'ServiceReq'[Closed Date] ) &amp;lt;= MAX ( 'Closed Date'[Date] )
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;parent Object created date = 
CALCULATE (
    DISTINCTCOUNT ( 'ServiceReq'[Number] ),
    FILTER (
        ALL ( ServiceReq ),
        'ServiceReq'[Created Date] &amp;gt;= MIN ( 'Created Date'[Date] )
            &amp;amp;&amp;amp; 'ServiceReq'[Created Date] &amp;lt;= MAX ( 'Created Date'[Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Winniz&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>Tue, 19 Apr 2022 06:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/created-and-deleted-items-in-one-matrix-table/m-p/2462640#M66741</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-04-19T06:09:57Z</dc:date>
    </item>
  </channel>
</rss>

