<?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: Count if in dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152173#M165007</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="806753" data-lia-user-login="amittal1" class="lia-mention lia-mention-user"&gt;amittal1&lt;/a&gt;&amp;nbsp;, Try using below DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Active_controlled = CALCULATE(&lt;BR /&gt;COUNT('Sheet1 (2)'[placebo]),&lt;BR /&gt;FILTER('Sheet1 (2)', 'Sheet1 (2)'[placebo] = "Active-control trial")&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 09:49:24 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-09-16T09:49:24Z</dc:date>
    <item>
      <title>Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4151987#M165000</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Active_controlled = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;('Sheet1 (2)'[placebo]), 'Sheet1 (2)'[placebo]==&lt;/SPAN&gt;&lt;SPAN&gt;"Active-control trial"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is my DAX formula&amp;nbsp; for measure Active_controlled that I have used, but its returning blank. I was trying to count the number of times Active-control trial is appearing in the column placebo in sheet - Sheet1 (2). Please help what can be done for this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Sep 2024 07:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4151987#M165000</guid>
      <dc:creator>amittal1</dc:creator>
      <dc:date>2024-09-16T07:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152173#M165007</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="806753" data-lia-user-login="amittal1" class="lia-mention lia-mention-user"&gt;amittal1&lt;/a&gt;&amp;nbsp;, Try using below DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Active_controlled = CALCULATE(&lt;BR /&gt;COUNT('Sheet1 (2)'[placebo]),&lt;BR /&gt;FILTER('Sheet1 (2)', 'Sheet1 (2)'[placebo] = "Active-control trial")&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 09:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152173#M165007</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-09-16T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152734#M165045</link>
      <description>&lt;P&gt;Hi&amp;nbsp; bhanu, thanks for you answer, but this is again showing blank in the card. Just one thing to ask you, can we create more than one measure using a column, i think yes right, so I created this measure for the column values with placebo-control trial, that worked, but for active-control trial it didnt worked, dont know why.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 15:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152734#M165045</guid>
      <dc:creator>amittal1</dc:creator>
      <dc:date>2024-09-16T15:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152791#M165049</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="806753" data-lia-user-login="amittal1" class="lia-mention lia-mention-user"&gt;amittal1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if there is values for filter "&lt;SPAN&gt;active-control trial" in the table and also check if ther are any page level filters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you find this helpful , please mark it as solution and &lt;/SPAN&gt;&lt;SPAN&gt;Your Kudos are much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 15:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4152791#M165049</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-09-16T15:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4155975#M165152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="806753" data-lia-user-login="amittal1" class="lia-mention lia-mention-user"&gt;amittal1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the measure of&amp;nbsp;bhanu_gautam&amp;nbsp; and it works fine.&lt;BR /&gt;Here's my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;dharmendars007&amp;nbsp;mentioned, did you apply a filter or did you use a slicer? You can create a table visual, place it on the same page as the card visual, and see if the output is correct.&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution &lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 07:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4155975#M165152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-18T07:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4156048#M165153</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="796215" data-lia-user-login="dharmendars007" class="lia-mention lia-mention-user"&gt;dharmendars007&lt;/a&gt;, thanks for your reply, I used a slicer instead, I think the problem was arising may be because I used a card already for another value(Placebp control trial) in the same column (placebo), and there might be something preventing me to use another card for the same column with different value.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 07:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4156048#M165153</guid>
      <dc:creator>amittal1</dc:creator>
      <dc:date>2024-09-18T07:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count if in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4156052#M165154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, thanks for your care. I used a card for another value as well from the same column, may be that's the reason I am unable to do it for another value from the same column. So, I instead used slicer to show the total count. And, yes as you have tested bhanu's method I will mark it as an answer.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 07:46:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-if-in-dax/m-p/4156052#M165154</guid>
      <dc:creator>amittal1</dc:creator>
      <dc:date>2024-09-18T07:46:32Z</dc:date>
    </item>
  </channel>
</rss>

