<?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: Count Data in Different Table with the State inforamtion in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1332282#M23613</link>
    <description>Will you be able to share the PBI file?</description>
    <pubDate>Fri, 28 Aug 2020 14:41:45 GMT</pubDate>
    <dc:creator>AntrikshSharma</dc:creator>
    <dc:date>2020-08-28T14:41:45Z</dc:date>
    <item>
      <title>Count Data in Different Table with the State inforamtion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1332099#M23601</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two tables like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem&lt;/P&gt;&lt;P&gt;Problem Task&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem has unique column Problem Id and Problem Task has PTASK ID as unique and we have feild Parent in PTASK ID which carries Problem ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am looking to create a calculated column to list Number of Problem Tasks for a Problem ID.&lt;/P&gt;&lt;P&gt;Also From the Problem Task Table, there is a column named state which have multiple states like (Open / Assigned / Work In Progress / Pending / Closed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to count for the Problem ID how many Tasks are Closed.&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;&lt;P&gt;For Eg:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF the Problem ID : PID1000 has 7 Tasks as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Task Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PTASK ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; State&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Parent&lt;/P&gt;&lt;P&gt;PTASK1001&amp;nbsp; &amp;nbsp; &amp;nbsp;Work in Progress&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PID1000&lt;/P&gt;&lt;P&gt;PTASK1002&amp;nbsp; &amp;nbsp; &amp;nbsp;Assigned&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PID1000&lt;/P&gt;&lt;P&gt;PTASK1003&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;PID1000&lt;/P&gt;&lt;P&gt;PTASK1004&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PID1000&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;PTASK1007&amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;PID1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Problem Table I want to count the number of PTASKS for a Problem and also the PTASKS Closed out of them,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To Count the PTASKS I have used the DAX as below in Problem Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Table on Calculated Column as below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tot PTASKs = COUNTROWS(RELATEDTABLE(PTASK))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another Column :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(COUNTROWS(PTASK),FILTER(PTASK,PTASK[State]="Closed" || PTASK[State]="Resolved"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now i am not able see a single value, but i want this value to listed row wise based on the problem id&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a One to Many Relation between Problem and Problem Task Table between Problem ID and Parent Field in PTASK Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise how we can get the closed PTASKS Information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:16:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1332099#M23601</guid>
      <dc:creator>srinival</dc:creator>
      <dc:date>2020-08-28T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Data in Different Table with the State inforamtion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1332282#M23613</link>
      <description>Will you be able to share the PBI file?</description>
      <pubDate>Fri, 28 Aug 2020 14:41:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1332282#M23613</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-08-28T14:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count Data in Different Table with the State inforamtion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1333945#M23702</link>
      <description>&lt;LI-CODE lang="csharp"&gt;[# Closed] = // calculated column in Problem
var __problem = Problem[ProblemID]
return
    COUNTROWS(
        FILTER(
            'Problem Task',
            'Problem Task'[ProblemId] = __problem
            &amp;amp;&amp;amp;
            'Problem Task'[State] IN {
                // if you want to use more
                // values, like "Resolved"
                // then stick it in here
                // after a comma.
                "Closed"
            }
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 30 Aug 2020 07:23:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1333945#M23702</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2020-08-30T07:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count Data in Different Table with the State inforamtion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1348300#M24205</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has perfectly suits my requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 17:46:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Data-in-Different-Table-with-the-State-inforamtion/m-p/1348300#M24205</guid>
      <dc:creator>srinival</dc:creator>
      <dc:date>2020-09-04T17:46:17Z</dc:date>
    </item>
  </channel>
</rss>

