<?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 How to remove a filter and get a count in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-a-filter-and-get-a-count/m-p/3433406#M44479</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new user. I have an embeded power BI report. When displying the report we also send a value to filter (CustomerEmailAddress)&amp;nbsp; our Tickets (st_Tickets) table so that when the report displays, it only displays the data for the sent filter value. This works fine and I am able to display a count of the filterd users tickets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now have been asked to display the total number of tickets in the table. I know I need to create a measure, but I can not figure out how to remove the filter. The table is st_Tickets and I do a count of Ticket_ID to get the ticket count. The filter is on the CustomerEmailAddress column in the same table. Here is what I have tried when creating a measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalTickets = CountRows(calculate('st_tickets', removefilters())) ----and different varaitions of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or guidence would be apprecaited!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 18:24:19 GMT</pubDate>
    <dc:creator>asbpowerbi</dc:creator>
    <dc:date>2023-09-15T18:24:19Z</dc:date>
    <item>
      <title>How to remove a filter and get a count</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-a-filter-and-get-a-count/m-p/3433406#M44479</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new user. I have an embeded power BI report. When displying the report we also send a value to filter (CustomerEmailAddress)&amp;nbsp; our Tickets (st_Tickets) table so that when the report displays, it only displays the data for the sent filter value. This works fine and I am able to display a count of the filterd users tickets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now have been asked to display the total number of tickets in the table. I know I need to create a measure, but I can not figure out how to remove the filter. The table is st_Tickets and I do a count of Ticket_ID to get the ticket count. The filter is on the CustomerEmailAddress column in the same table. Here is what I have tried when creating a measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TotalTickets = CountRows(calculate('st_tickets', removefilters())) ----and different varaitions of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or guidence would be apprecaited!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 18:24:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-a-filter-and-get-a-count/m-p/3433406#M44479</guid>
      <dc:creator>asbpowerbi</dc:creator>
      <dc:date>2023-09-15T18:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a filter and get a count</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-a-filter-and-get-a-count/m-p/3435298#M44498</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/465802"&gt;@asbpowerbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try ALL() function to remove filters.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TotalTickets =
CALCULATE ( COUNTROWS ( 'st_tickets' ), ALL ( 'st_tickets' ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 05:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-a-filter-and-get-a-count/m-p/3435298#M44498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-18T05:39:21Z</dc:date>
    </item>
  </channel>
</rss>

