cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Super User

## ISFILTERED, HASONEFILTER and Visual Filters

This technique is useful if you only want to display things when they are filtered or have a single filter, for example.

1. Create a measure like (the * 1. turns the True/False into a numeric value

`IsFiltered = ISFILTERED(Locations[State]) * 1.`

2. Change the type of the measure to Whole Number.

4. Set the filter it to only display when IsFiltered = 1.

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Helper I

Hello There;

Would truely appreciate your insight on my code below and how i can accomodate ISFILTERED ..

`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]) && [Year]=EARLIER(Leads[Year]) && [New/Used]=EARLIER(Leads[New/Used]) && [Brand]=EARLIER(Leads[Brand]) ))<1,COUNTROWS(FILTER(Leads,[Open]=EARLIER(Leads[Customer ID]) && [Year]=EARLIER(Leads[Year]) && [New/Used]=EARLIER(Leads[New/Used]) && [Brand]=EARLIER(Leads[Brand])))<1),[Customer ID],0),0)`

Basically I am Filtering out the [Sold T] & [Year] & [New/Used] & [Brand] Column while checking if the [Customer ID] fits the criteria.

I want to use ISFILTERED as a function to check that these filters apply only when the data on each column had been applied.

So if the [Year] is filtered then only the year filter would apply, else not ...

Then if the [Year} & [Brand] are filtered then both Filters would apply and so on ...

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors