<?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: COUNTIFS with Multiple Statements referring to Current Row value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591522#M138682</link>
    <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp; Awesome! Thank you. I've also added the dynamic focus tank to the list of variables:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 14:31:57 GMT</pubDate>
    <dc:creator>SteveMBSDO</dc:creator>
    <dc:date>2023-12-19T14:31:57Z</dc:date>
    <item>
      <title>COUNTIFS with Multiple Statements referring to Current Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591356#M138672</link>
      <description>&lt;P&gt;For each row, I want to get a unique following number per Focus Tank. In Excel I accomplisted this by a COUNTIFS statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COUNTIFS if:&lt;/P&gt;&lt;P&gt;Column [Focus Tank] matches the [Focus Tank] value of the current row.&lt;/P&gt;&lt;P&gt;Column [NewStart] is less than or equal to the [NewStart] value of the current row.&lt;/P&gt;&lt;P&gt;Works a charm.&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;In PowerBI I came up with this, but it is &lt;U&gt;not&lt;/U&gt; functioning because I don't know how to make code "&lt;SPAN&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;459&lt;/SPAN&gt;&lt;SPAN&gt;07.74585&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;" dynamic. Meaning, this value should get the value from it's current ROW, and not be hardcoded. Anyone know what I'm missing here?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 13:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591356#M138672</guid>
      <dc:creator>SteveMBSDO</dc:creator>
      <dc:date>2023-12-19T13:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS with Multiple Statements referring to Current Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591439#M138675</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518281" data-lia-user-login="SteveMBSDO" class="lia-mention lia-mention-user"&gt;SteveMBSDO&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if it is measure then try below&lt;BR /&gt;measure =&lt;BR /&gt;var a = max(tablename[column name from value coming])&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and compare it like (&amp;lt;a instead of&amp;nbsp; values(...))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code like&lt;BR /&gt;measure =&lt;BR /&gt;var a = max(tablename[column name from value coming])&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;countx(&lt;/P&gt;&lt;P&gt;..........,&lt;/P&gt;&lt;P&gt;.....[datetime chrono]&amp;lt;a&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if its column then&amp;nbsp;&lt;BR /&gt;var a = tablename[column name from value coming]&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 14:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591439#M138675</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-19T14:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS with Multiple Statements referring to Current Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591446#M138676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;, sorry I forgot to mention it's a table.&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;</description>
      <pubDate>Tue, 19 Dec 2023 14:06:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591446#M138676</guid>
      <dc:creator>SteveMBSDO</dc:creator>
      <dc:date>2023-12-19T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS with Multiple Statements referring to Current Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591488#M138678</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="518281" data-lia-user-login="SteveMBSDO" class="lia-mention lia-mention-user"&gt;SteveMBSDO&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;transaction =
var a = 'transaction database'[datetime chrono]
return
countx( 
filter('transaction database',
'transaction database'[focus tank]=30 &amp;amp;&amp;amp;
'transaction database'[datetime chrono]&amp;lt; a
),
'transaction database'[datetime chrono]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Dec 2023 14:22:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591488#M138678</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-19T14:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTIFS with Multiple Statements referring to Current Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591522#M138682</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp; Awesome! Thank you. I've also added the dynamic focus tank to the list of variables:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 14:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTIFS-with-Multiple-Statements-referring-to-Current-Row-value/m-p/3591522#M138682</guid>
      <dc:creator>SteveMBSDO</dc:creator>
      <dc:date>2023-12-19T14:31:57Z</dc:date>
    </item>
  </channel>
</rss>

