<?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: Open and Closed : Count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277641#M55644</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp; you need a schema 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;and three measures as follows&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Closed = CALCULATE(COUNT('Table'[Ticket]),FILTER(VALUES('Table'[Status]),'Table'[Status]="Closed"))

_Open = CALCULATE(COUNT('Table'[Ticket]),FILTER(VALUES('Table'[Status]),'Table'[Status]="Open"))

_closedPCT = DIVIDE([_Closed],COUNTROWS('Table'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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;</description>
    <pubDate>Tue, 11 Jan 2022 13:43:20 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2022-01-11T13:43:20Z</dc:date>
    <item>
      <title>Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277422#M55622</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me in getting below counts. Data should change based on slicers(File Attached).&lt;/P&gt;&lt;P&gt;1. Open and closed count&lt;/P&gt;&lt;P&gt;2. Percentage ticket closed.&lt;/P&gt;&lt;P&gt;&lt;A title="PBIX FIle" href="https://drive.google.com/file/d/1iAIElOF8KIpYBEMchx0Rk2PuXzVR5_qS/view?usp=sharing" target="_self"&gt;PBIX FIle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277422#M55622</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-01-11T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277434#M55625</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt; , I have blog on similar topic, see if that can help&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;Yet to check the file&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:49:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277434#M55625</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-11T11:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277464#M55626</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw your post but have different requirement where I do not have closed date field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277464#M55626</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-01-11T11:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277482#M55630</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt; , Try following measures &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open count = countx(FILTER('Table', 'Table'[Status] ="Open"), [Ticket])

Closed count = countx(FILTER('Table', 'Table'[Status] ="Closed"), [Ticket])

Close % = divide([Closed count], COUNTX('Table', [Ticket])) &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277482#M55630</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-11T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277641#M55644</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp; you need a schema 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;and three measures as follows&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Closed = CALCULATE(COUNT('Table'[Ticket]),FILTER(VALUES('Table'[Status]),'Table'[Status]="Closed"))

_Open = CALCULATE(COUNT('Table'[Ticket]),FILTER(VALUES('Table'[Status]),'Table'[Status]="Open"))

_closedPCT = DIVIDE([_Closed],COUNTROWS('Table'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Tue, 11 Jan 2022 13:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2277641#M55644</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2022-01-11T13:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2278804#M55694</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks it is working fine. May I know purpose of using underscore with variable.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 05:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2278804#M55694</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-01-12T05:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open and Closed : Count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2278809#M55695</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks it is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 05:01:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Open-and-Closed-Count/m-p/2278809#M55695</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2022-01-12T05:01:58Z</dc:date>
    </item>
  </channel>
</rss>

