<?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: IsFiltered returning true at row level when no filter has been applied in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2289521#M56231</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;DAX works in the context it is placed and in the case of your table when you place the measure next to a month column ISFILTERED is tested in that context e.g. if it is next to APRIL the filter context is&amp;nbsp;&lt;SPAN&gt;'Month Order'[Month]= 'April' and thus it is indeed filtered from ISFILTERED perspective. To counter this you can have separate column for filtering and for visuals.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;e.g. Here I am testing if [date] ISFILTERED:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When using the [Date] column the visual return TRUE&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With [DateF] it return FALSE&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 17:56:24 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-01-18T17:56:24Z</dc:date>
    <item>
      <title>IsFiltered returning true at row level when no filter has been applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2289451#M56228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a page with the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Previous_Month&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Month Order'[Month]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Month Order'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Month Order'[Previous month]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ISFILTERED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Month Order'[Month]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Month Order'[Month]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;Previous_Month&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Why is the isfiltered returning true at a row level in the table when there no filter has been applied?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2289451#M56228</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-01-18T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: IsFiltered returning true at row level when no filter has been applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2289521#M56231</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;DAX works in the context it is placed and in the case of your table when you place the measure next to a month column ISFILTERED is tested in that context e.g. if it is next to APRIL the filter context is&amp;nbsp;&lt;SPAN&gt;'Month Order'[Month]= 'April' and thus it is indeed filtered from ISFILTERED perspective. To counter this you can have separate column for filtering and for visuals.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;e.g. Here I am testing if [date] ISFILTERED:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When using the [Date] column the visual return TRUE&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With [DateF] it return FALSE&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2289521#M56231</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-18T17:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: IsFiltered returning true at row level when no filter has been applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2290645#M56302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ValtteriN,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for explaining the row level&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;context.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My idea is to create a measure that checks if the page has been filtered, if true then show selected value, else show previous month as default. To do this I wanted to use a measure in the visual filter:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The table that I was using was to test the logic but now I understand it cannot be tested like that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can apply a filter that defaults a visual to the previous month unless a filter selection has been made?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 09:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2290645#M56302</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-01-19T09:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: IsFiltered returning true at row level when no filter has been applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2295140#M56557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create an unrelated Month table for Slicer and then create a measure to filter your visual.&lt;/P&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create an unrelated Date table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2021, 11, 01 ), DATE ( 2022, 01, 31 ) ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "YearMonth",
        YEAR ( [Date] ) * 100
            + MONTH ( [Date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _SELECTVALUE = SELECTEDVALUE('Date'[YearMonth])
VAR _TODAYYEARMONTH = YEAR(TODAY())*100+MONTH(TODAY())
VAR _PREVIOUSYEARMONYH = MAXX(FILTER(ALL('Date'),'Date'[YearMonth]&amp;lt;_TODAYYEARMONTH),'Date'[YearMonth])
RETURN
IF(ISFILTERED('Date'[YearMonth]),IF(MAX('Table'[YearMonth]) = _SELECTVALUE,1,0),IF(MAX('Table'[YearMonth]) = _PREVIOUSYEARMONYH,1,0))&lt;/LI-CODE&gt;
&lt;P&gt;Add this measure into visual level filter and set it show items when value =1. Result is as below.&lt;/P&gt;
&lt;P&gt;By default, it will show previous data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Select 202111.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 08:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IsFiltered-returning-true-at-row-level-when-no-filter-has-been/m-p/2295140#M56557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-21T08:35:44Z</dc:date>
    </item>
  </channel>
</rss>

