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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
anmolmalviya05
Memorable Member
Memorable Member

How to apply additional filter on a visual

Hi Everyone, I have a requirement in which i have to apply filter on name field on a table visual,

Presently I only have 4 names available in the name column, I want to apply filters of 10 names such that if any data comes in future related to them then it will get filter out.

I tried to manually add the name by switching the basic filtering to advance filtering but it's only allowing me to add limited number of names.

Is there any other possible way?

1 ACCEPTED SOLUTION

Hi @anmolmalviya05 ,

Thanks for amitchandak's reply!
And @anmolmalviya05 , you can try this:
Here is my sample data:

vjunyantmsft_0-1726120453598.png

You need to add another table with all 10 names in it:

vjunyantmsft_1-1726120486648.png
vjunyantmsft_2-1726120494011.png

Then use this DAX to create a measure:

Measure = 
IF(
    MAX('Table'[Name]) IN VALUES('#10'[#10]),
    1,
    0
)

Make the settings as shown in the following figure:

vjunyantmsft_3-1726120601440.png

vjunyantmsft_4-1726120623110.png

And the final output is as below:

vjunyantmsft_5-1726120696842.png


Best Regards,
Dino Tao
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

3 REPLIES 3
amitchandak
Super User
Super User

@anmolmalviya05 , You can check if the preselected slicer can help. As of now, we can not default value of the slicer using measures

https://appsource.microsoft.com/en-us/product/power-bi-visuals/insiderscoop1611244107840.powerbi_cus...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak, Thanks for your reply,

I want to apply this using filter option in filter pane.

I have attached a screenshot for reference, 

anmolmalviya05_0-1726030648583.png

Here I'm able to add only two values other than the value available in dataset. But i want to add 10 such values. 

Approach I tried: First i selected all tha values available in dataset from basic filtering, then switched to advance filtering and replaced the existing name, but this is possible only for the number of names present in the data, i.e in this case i can only add 4 names, but i want to add upto 10 names.

Hi @anmolmalviya05 ,

Thanks for amitchandak's reply!
And @anmolmalviya05 , you can try this:
Here is my sample data:

vjunyantmsft_0-1726120453598.png

You need to add another table with all 10 names in it:

vjunyantmsft_1-1726120486648.png
vjunyantmsft_2-1726120494011.png

Then use this DAX to create a measure:

Measure = 
IF(
    MAX('Table'[Name]) IN VALUES('#10'[#10]),
    1,
    0
)

Make the settings as shown in the following figure:

vjunyantmsft_3-1726120601440.png

vjunyantmsft_4-1726120623110.png

And the final output is as below:

vjunyantmsft_5-1726120696842.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.