<?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: Filter issue (RemoveFilter on a Column) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1053049#M14432</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hi&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I found my mistake&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var NbProduct1= IF(ISFILTERED(report[PRODUCT_DETAILED_1__C]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;CALCULATE(count(report[Id]);ALLSELECTED(report[PRODUCT_DETAILED_1]));BLANK())&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var NbProduct2=CALCULATE(count(report[Id]);ALL(report[PRODUCT1]);FILTER(&lt;FONT color="#FF0000"&gt;ALL&lt;/FONT&gt;(report[PRODUCT2]);report[PRODUCT2] IN VALUES(report[PRODUCT1]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Return CRNbProduct2+NbProduct1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 08:46:18 GMT</pubDate>
    <dc:creator>calimero48</dc:creator>
    <dc:date>2020-04-28T08:46:18Z</dc:date>
    <item>
      <title>Filter issue (RemoveFilter on a Column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1046519#M14135</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SSAS Tabular SQLserver 2017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a measure on a table defined as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report&lt;/P&gt;&lt;P&gt;ID,Product1,Product2,DateReport ( And more fields)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a mesure that count Product in Product2 and Product1 when they are filered in Product1 ( Other Filter should be keep of course)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;NbProduct:=&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var Liste= CONCATENATEX(&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;VALUES(report[PRODUCT1]);&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;report[PRODUCT1];&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;",")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var NbProduct1= IF(ISFILTERED(report[PRODUCT_DETAILED_1__C]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;CALCULATE(count(report[Id]);ALLSELECTED(report[PRODUCT_DETAILED_1]));BLANK())&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var NbProduct2=CALCULATE(count(report[Id]);ALL(report[PRODUCT1]);FILTER(VALUES(report[PRODUCT2]);report[PRODUCT2] in {Liste}))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Return CRNbProduct2+NbProduct1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem, I got that &lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;NbProduct2&lt;/FONT&gt; never gave me the correct number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done some testing:&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;NbProduct2=CALCULATE(count(report[Id]);ALL(report[PRODUCT1]))&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;If the one or more product are selected, I got the correct number (Number of Rows in the table)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;NbProduct2=CALCULATE(count(report[Id]);ALL(report[PRODUCT1]);FILTER(VALUES(report[PRODUCT2]);report[PRODUCT2] in {"Coffe"})&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;If the one or more product are selected, I got blank;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;If All product are selected in Product1, I got the number of Coffe in Product2.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand why. The DAX function removefilter is not available for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be it's trivial but I do not see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is welcome&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;SPAN class="ng-binding"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H3&gt;</description>
      <pubDate>Fri, 24 Apr 2020 09:09:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1046519#M14135</guid>
      <dc:creator>calimero48</dc:creator>
      <dc:date>2020-04-24T09:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter issue (RemoveFilter on a Column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1046822#M14144</link>
      <description>Sorry. I've tried to understand the setup but not able. Can you please do it in a clearer way? Also, you have to show us the data model.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Fri, 24 Apr 2020 11:50:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1046822#M14144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T11:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter issue (RemoveFilter on a Column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1047637#M14203</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if my request was not clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can produce the problem with only one table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID,Product1,Product2,DateReport ( And more fields)&lt;/P&gt;&lt;P&gt;1 ,Coffe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Tea&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,20200401&lt;/P&gt;&lt;P&gt;2 ,Milk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Coffe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,20200420&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We filter on product 1 for Coffe. The measure should give 2 ( 1 coffe for ID, Product 1 and 1 Coffe for Id 2 Product2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we filter on product for Tea we should have 1 ( ID=1 Product 2= Tea)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it's more clear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 18:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1047637#M14203</guid>
      <dc:creator>calimero48</dc:creator>
      <dc:date>2020-04-24T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter issue (RemoveFilter on a Column)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1053049#M14432</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hi&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I found my mistake&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var NbProduct1= IF(ISFILTERED(report[PRODUCT_DETAILED_1__C]);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;CALCULATE(count(report[Id]);ALLSELECTED(report[PRODUCT_DETAILED_1]));BLANK())&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;var NbProduct2=CALCULATE(count(report[Id]);ALL(report[PRODUCT1]);FILTER(&lt;FONT color="#FF0000"&gt;ALL&lt;/FONT&gt;(report[PRODUCT2]);report[PRODUCT2] IN VALUES(report[PRODUCT1]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Return CRNbProduct2+NbProduct1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:46:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-issue-RemoveFilter-on-a-Column/m-p/1053049#M14432</guid>
      <dc:creator>calimero48</dc:creator>
      <dc:date>2020-04-28T08:46:18Z</dc:date>
    </item>
  </channel>
</rss>

