<?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 ISFILTERED, HASONEFILTER and Visual Filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ISFILTERED-HASONEFILTER-and-Visual-Filters/m-p/58298#M26</link>
    <description>&lt;P&gt;This technique is&amp;nbsp;useful if you only want to display things when they are filtered or have a single filter, for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a measure like (the * 1. turns the True/False into a numeric value&lt;/P&gt;&lt;PRE&gt;IsFiltered = ISFILTERED(Locations[State]) * 1.&lt;/PRE&gt;&lt;P&gt;2. Change the type of the measure to Whole Number.&lt;/P&gt;&lt;P&gt;3. Add "IsFiltered" to your Visual Level Filters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Set the filter it to only display when IsFiltered = 1.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2016 01:32:51 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2016-08-13T01:32:51Z</dc:date>
    <item>
      <title>ISFILTERED, HASONEFILTER and Visual Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ISFILTERED-HASONEFILTER-and-Visual-Filters/m-p/58298#M26</link>
      <description>&lt;P&gt;This technique is&amp;nbsp;useful if you only want to display things when they are filtered or have a single filter, for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a measure like (the * 1. turns the True/False into a numeric value&lt;/P&gt;&lt;PRE&gt;IsFiltered = ISFILTERED(Locations[State]) * 1.&lt;/PRE&gt;&lt;P&gt;2. Change the type of the measure to Whole Number.&lt;/P&gt;&lt;P&gt;3. Add "IsFiltered" to your Visual Level Filters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Set the filter it to only display when IsFiltered = 1.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 01:32:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ISFILTERED-HASONEFILTER-and-Visual-Filters/m-p/58298#M26</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2016-08-13T01:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: ISFILTERED, HASONEFILTER and Visual Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ISFILTERED-HASONEFILTER-and-Visual-Filters/m-p/94293#M149</link>
      <description>&lt;P&gt;Hello There;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would truely appreciate your insight on my code below and how i can accomodate ISFILTERED ..&lt;/P&gt;&lt;PRE&gt;Lost Sales = IF(OR(Leads[Lead Status]="7-LOST SALE",Leads[Lead Status]="X"),IF(AND(COUNTROWS(FILTER(Leads,[Sold T]=EARLIER(Leads[Customer ID]) &amp;amp;&amp;amp; [Year]=EARLIER(Leads[Year]) &amp;amp;&amp;amp; [New/Used]=EARLIER(Leads[New/Used]) &amp;amp;&amp;amp; [Brand]=EARLIER(Leads[Brand]) ))&amp;lt;1,COUNTROWS(FILTER(Leads,[Open]=EARLIER(Leads[Customer ID]) &amp;amp;&amp;amp; [Year]=EARLIER(Leads[Year]) &amp;amp;&amp;amp; [New/Used]=EARLIER(Leads[New/Used]) &amp;amp;&amp;amp; [Brand]=EARLIER(Leads[Brand])))&amp;lt;1),[Customer ID],0),0)&lt;/PRE&gt;&lt;P&gt;Basically I am Filtering out the [Sold T] &amp;amp; [Year] &amp;amp; [New/Used] &amp;amp; [Brand] Column while checking if the [Customer ID] fits the criteria.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use ISFILTERED as a function to check that these filters apply only when the data on each column had been applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if the [Year] is filtered then only the year filter would apply, else not ...&lt;/P&gt;&lt;P&gt;Then if the [Year} &amp;amp; [Brand] are filtered then both Filters would apply and so on ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in Advance for reading my post.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 12:44:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ISFILTERED-HASONEFILTER-and-Visual-Filters/m-p/94293#M149</guid>
      <dc:creator>AlAlawiAlawi</dc:creator>
      <dc:date>2016-11-26T12:44:09Z</dc:date>
    </item>
  </channel>
</rss>

