Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dmitriy
Frequent Visitor

Show result in table only if it is filtered

I have a table of employers and 3 filters by name, second name and department.

I need to make my table to show results only if any of these filters are being active.

How I can do it?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Dmitriy

You could use ISFILTERED to create a measure get your requirement.

 if name, second name and department are in your result visual?

If no, you could add a measure like this 

Measure = IF(ISFILTERED('Table'[name])=TRUE()||ISFILTERED('Table'[Second Name])=TRUE()||ISFILTERED('Table'[department])=TRUE(),1,2)

Then drag it into visual level filter and set filter is 1

1.JPG

 

If yes, you need add a new name, new second name and new department column and use them in visual

and then drag measure into visual level filter and set filter is 1

 

Result:

beforebeforeafterafter

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi, @Dmitriy

You could use ISFILTERED to create a measure get your requirement.

 if name, second name and department are in your result visual?

If no, you could add a measure like this 

Measure = IF(ISFILTERED('Table'[name])=TRUE()||ISFILTERED('Table'[Second Name])=TRUE()||ISFILTERED('Table'[department])=TRUE(),1,2)

Then drag it into visual level filter and set filter is 1

1.JPG

 

If yes, you need add a new name, new second name and new department column and use them in visual

and then drag measure into visual level filter and set filter is 1

 

Result:

beforebeforeafterafter

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

Do you know how I can do this where if you only use one of the filters then the other columns stay blank in a table?

 

My report has a filtering page, and in the report pages I have a 'Selected FIlters' key which should be blank unless a filter has been used. The key is made up of several one column tables, one for each of the filters. I'd like them to only show a result if that field has been used as a filter. All of these fields  are in the same table.

(Courses)

(Qualifications Type)

(Field of Education)

 

So far I have been able to make all tables blank using ISFILTERED on one of my fields (Courses), but only this filter returns results in the tables. When I use the other filters nothing appears in any of the tables.

 

I have used the solution in this thread but only the (Courses) tables is blank and the others are now showing all thier data. When I use a filter all of the tables show filtered results, but I want the other tables to remain blank unless used.

 

Is there a way to do this?

 

Thanks

hi leishka

 

I need  same thing , do you find any way to do that please?

great explanation, thank you

Greg_Deckler
Super User
Super User

Should be able to use ISFILTERED: https://docs.microsoft.com/en-us/dax/isfiltered-function-dax


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.