<?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 count with over calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-with-over-calculation/m-p/3250652#M119929</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've data as below sample, and I want to count on how many App Delay, Failed and Ontime.&lt;/P&gt;&lt;P&gt;As you can see one app have many batch if one batch failed then the app define as failed if there is no fail but delay then the app deifne as delay and if no fail and delay then the app define as ontime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create measure from below table to show in Card KPI for Number of App Ontime, Delay and Failed&lt;/P&gt;&lt;P&gt;by below sample data it should show :&lt;BR /&gt;App Otime = 1&lt;BR /&gt;App Delay = 1&lt;BR /&gt;App Failed = 2&lt;/P&gt;&lt;P&gt;Total App = 4&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;Could you pelase advise how to write DAX for create meausre for&amp;nbsp;App Otime, App Delay and App Failed using in Card KPI.&lt;/P&gt;&lt;P&gt;Thanks&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>Wed, 24 May 2023 09:06:18 GMT</pubDate>
    <dc:creator>s_chayaphon</dc:creator>
    <dc:date>2023-05-24T09:06:18Z</dc:date>
    <item>
      <title>count with over calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-with-over-calculation/m-p/3250652#M119929</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've data as below sample, and I want to count on how many App Delay, Failed and Ontime.&lt;/P&gt;&lt;P&gt;As you can see one app have many batch if one batch failed then the app define as failed if there is no fail but delay then the app deifne as delay and if no fail and delay then the app define as ontime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create measure from below table to show in Card KPI for Number of App Ontime, Delay and Failed&lt;/P&gt;&lt;P&gt;by below sample data it should show :&lt;BR /&gt;App Otime = 1&lt;BR /&gt;App Delay = 1&lt;BR /&gt;App Failed = 2&lt;/P&gt;&lt;P&gt;Total App = 4&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;Could you pelase advise how to write DAX for create meausre for&amp;nbsp;App Otime, App Delay and App Failed using in Card KPI.&lt;/P&gt;&lt;P&gt;Thanks&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>Wed, 24 May 2023 09:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-with-over-calculation/m-p/3250652#M119929</guid>
      <dc:creator>s_chayaphon</dc:creator>
      <dc:date>2023-05-24T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: count with over calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-with-over-calculation/m-p/3250722#M119933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="499932" data-lia-user-login="s_chayaphon" class="lia-mention lia-mention-user"&gt;s_chayaphon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manually create FilterTable that contains the three App Status values:&lt;/P&gt;
&lt;P&gt;Otime&lt;BR /&gt;Delay&amp;nbsp;&lt;BR /&gt;Failed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;then count measure would be&lt;/P&gt;
&lt;P&gt;Count =&lt;BR /&gt;SUMX (&lt;BR /&gt;CROSSJOIN ( VALUES ( FilterTable[App Status] ), VALUES ( 'Table'[App] ) ),&lt;BR /&gt;INT (&lt;BR /&gt;FilterTable[App Status]&lt;BR /&gt;IN SELECTCOLUMNS (&lt;BR /&gt;TOPN ( 1, CALCULATETABLE ( 'Table' ), 'Table'[Status Code] ),&lt;BR /&gt;"@Status", 'Table'[Status]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 09:40:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-with-over-calculation/m-p/3250722#M119933</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-24T09:40:27Z</dc:date>
    </item>
  </channel>
</rss>

