<?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 URGENT Help - Filter previous state values of a record during calculations in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1193062#M18928</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a scenario below where a course (object.name) has 2 records in the table. First record which was accessed (In-progress) by an user (actor.mbox) and later has completed it. I am trying to get a count of all courses that were still In-progress but never got completed by an user. Can someone assist me in getting the right expression to pass ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;“Inprogress Courses” = CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;accessed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement: Should also filter out courses if they are completed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;“Completed Courses” = CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;completed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above expresssion works well for completed but “Inprogress Courses” should not take into count for those courses which are completed by an user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used subtract function such as below but it calculates all completed and inprogress courses seperately and then subtracts at the end, it is not giving me the right count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;accessed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course") - CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;completed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 17:40:14 GMT</pubDate>
    <dc:creator>ApoorvaReddy</dc:creator>
    <dc:date>2020-06-30T17:40:14Z</dc:date>
    <item>
      <title>URGENT Help - Filter previous state values of a record during calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1193062#M18928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a scenario below where a course (object.name) has 2 records in the table. First record which was accessed (In-progress) by an user (actor.mbox) and later has completed it. I am trying to get a count of all courses that were still In-progress but never got completed by an user. Can someone assist me in getting the right expression to pass ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;“Inprogress Courses” = CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;accessed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course")&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement: Should also filter out courses if they are completed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;“Completed Courses” = CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;completed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above expresssion works well for completed but “Inprogress Courses” should not take into count for those courses which are completed by an user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used subtract function such as below but it calculates all completed and inprogress courses seperately and then subtracts at the end, it is not giving me the right count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;accessed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course") - CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="&lt;STRONG&gt;completed&lt;/STRONG&gt;",'Brand Excellence Academy_all'[object.type]="course")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 17:40:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1193062#M18928</guid>
      <dc:creator>ApoorvaReddy</dc:creator>
      <dc:date>2020-06-30T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT Help - Filter previous state values of a record during calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1195226#M18990</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233788" data-lia-user-login="ApoorvaReddy" class="lia-mention lia-mention-user"&gt;ApoorvaReddy&lt;/a&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;countx(filter(&lt;BR /&gt;summarize('Brand Excellence Academy_all','Brand Excellence Academy_all'[object.name], "_1",&lt;BR /&gt;CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="completed",'Brand Excellence Academy_all'[object.type]="course") , "_2",CALCULATE(DISTINCTCOUNT('Brand Excellence Academy_all'[object.name]),'Brand Excellence Academy_all'[verb.display]="accessed",'Brand Excellence Academy_all'[object.type]="course")),[_2]&amp;gt;0 &amp;amp;&amp;amp; isblank([_1])),[object.name])&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 13:56:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1195226#M18990</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-01T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT Help - Filter previous state values of a record during calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1195339#M18997</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you very much for the reply. I tried this and it works to an extent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is if a Course A is accessed by User A and completed by User A, then it should be excluded in my count whereas if course A is accessed by User A and completed by User B, then it is still considered as accessed (inprogress) by User A and my count should include that record. I hope you got my point, to achieve it, I think we should also consider the user ( "actor.mbox") field as a filter in the expression. Would you be able to update the expression, thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 14:42:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1195339#M18997</guid>
      <dc:creator>ApoorvaReddy</dc:creator>
      <dc:date>2020-07-01T14:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT Help - Filter previous state values of a record during calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1195629#M19008</link>
      <description>&lt;P&gt;I got this to work by passing actor.mbox as second group by column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much for your previous query.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 16:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Help-Filter-previous-state-values-of-a-record-during/m-p/1195629#M19008</guid>
      <dc:creator>ApoorvaReddy</dc:creator>
      <dc:date>2020-07-01T16:19:34Z</dc:date>
    </item>
  </channel>
</rss>

