<?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: DAX function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function/m-p/2340374#M59055</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try this kind of logic:&lt;BR /&gt;&lt;BR /&gt;measure =&amp;nbsp;&lt;BR /&gt;Var latestDispatch = CALCULATE(MAX(Table[End Time]),ALL(Table),Table[Type]="Dispatcher")&lt;BR /&gt;Var lastestIteration =&amp;nbsp;CALCULATE(MAX(Table[Iteration ID]),ALL(Table),Table[End Time]=latestDispatch)&lt;BR /&gt;Return&lt;BR /&gt;COUNTROWS(FILTER(ALL(Table),Table[Iteration ID]=lastestIteration))&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 18:58:09 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-02-15T18:58:09Z</dc:date>
    <item>
      <title>DAX function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function/m-p/2340296#M59045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to calculate "h&lt;SPAN&gt;ow many items dispatched during the last iteration?" to vizual in a card.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As above shown, I need to get the total count in particular iteration, where the end time is last and type=Dispacher.&lt;/P&gt;&lt;P&gt;eg: In the above shown, as the last end time is 10:23:27 PM where the type is Dispacher, the output should be the count in iteration id=2, which is 8.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:04:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function/m-p/2340296#M59045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-15T18:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function/m-p/2340374#M59055</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try this kind of logic:&lt;BR /&gt;&lt;BR /&gt;measure =&amp;nbsp;&lt;BR /&gt;Var latestDispatch = CALCULATE(MAX(Table[End Time]),ALL(Table),Table[Type]="Dispatcher")&lt;BR /&gt;Var lastestIteration =&amp;nbsp;CALCULATE(MAX(Table[Iteration ID]),ALL(Table),Table[End Time]=latestDispatch)&lt;BR /&gt;Return&lt;BR /&gt;COUNTROWS(FILTER(ALL(Table),Table[Iteration ID]=lastestIteration))&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function/m-p/2340374#M59055</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-15T18:58:09Z</dc:date>
    </item>
  </channel>
</rss>

