<?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: Counting Strings Returned from an Iterating Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4038275#M160090</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337237" data-lia-user-login="vickyw" class="lia-mention lia-mention-user"&gt;vickyw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There aren't any syntax error in this measure.&lt;BR /&gt;Actually that I create some sample data and test it, but unfortunately, the measure works fine in my side.&lt;/P&gt;
&lt;P&gt;Please check if you apply some filter on the [SLA Result] measure?&lt;/P&gt;
&lt;P&gt;If possible, please share your PBIX file(exclude sensitive data), so that we can help you better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 01:37:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-12T01:37:45Z</dc:date>
    <item>
      <title>Counting Strings Returned from an Iterating Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4036932#M160015</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know columns (DAX or M) are not dynamic so in this situation I have opted to write three DAX measures to ensure my report output is always correct, regardless of when it was last refreshed however, I cannot get the 'Fails' to count.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example - Fails card should show 12, but instead is 'Blank'&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the measures used in the above visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[E2E SLA] - calculates the working days between 2 dates (Case Opened/Case Closed ) or returns null if the case is still open&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;E2E SLA = 
SUMX(
    'All Cases',
    COUNTROWS(
        FILTER(
            'Date Table Static',
            'Date Table Static'[Date] &amp;gt;= 'All Cases'[Case Created Date] &amp;amp;&amp;amp;
            'Date Table Static'[Date] &amp;lt;= IF(ISBLANK('All Cases'[Case Closed Date]), TODAY(), 'All Cases'[Case Closed Date]) &amp;amp;&amp;amp;
            'Date Table Static'[Is Business Day] = TRUE()
        )
    )
)-1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[SLA Result] compares the above number of days to the target, and assigns labels 'Pass' or 'Fail' if it the case was completed in time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SLA Result = 
IF(
    ISBLANK(MAX('All Cases'[Case Closed Date])), 
    BLANK(), 
    IF(
        [E2E SLA] &amp;gt; MAX('All Cases'[SLA Target]),
        "Fail",
        "Pass"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the card visuals:-&lt;BR /&gt;&lt;BR /&gt;[SLA Count Pass] is working perfectly.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SLA Count Pass = 
CALCULATE(
    COUNTROWS('All Cases'),
    FILTER(
        'All Cases',
        'All Cases'[SLA Result] = "Pass"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[SLA Count Fail] returns 'Blank' even though there are 12 rows where the [SLA Result] is 'Fail'&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SLA Count Fail = 
CALCULATE(
    COUNTROWS('All Cases'),
    FILTER(
        'All Cases',
        'All Cases'[SLA Result] = "Fail"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I've tested everything I can think of, but it appears to be that whatever string is in the 1st position of the [SLA Result] measure, I can't count or filter by it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 10:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4036932#M160015</guid>
      <dc:creator>vickyw</dc:creator>
      <dc:date>2024-07-11T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Strings Returned from an Iterating Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4038275#M160090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337237" data-lia-user-login="vickyw" class="lia-mention lia-mention-user"&gt;vickyw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There aren't any syntax error in this measure.&lt;BR /&gt;Actually that I create some sample data and test it, but unfortunately, the measure works fine in my side.&lt;/P&gt;
&lt;P&gt;Please check if you apply some filter on the [SLA Result] measure?&lt;/P&gt;
&lt;P&gt;If possible, please share your PBIX file(exclude sensitive data), so that we can help you better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 01:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4038275#M160090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-12T01:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Strings Returned from an Iterating Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4068625#M161530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337237" data-lia-user-login="vickyw" class="lia-mention lia-mention-user"&gt;vickyw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:01:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Strings-Returned-from-an-Iterating-Measure/m-p/4068625#M161530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T08:01:10Z</dc:date>
    </item>
  </channel>
</rss>

