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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Slicer based on IF function

Hi,

I am new to Power BI world. I want to make a measure that will filter as following:

 

FO                      FP

Indonesia           Indonesia

India                   Indonesia

Indonesia           Thailand

Vietnam              Indonesia

Indonesia           India

 

I want create a measure that will retain row 1,3,5 when I select "Indonesia", other rows will not be visible. I want to create a measure using filter but not sure about the syntax.

1 ACCEPTED SOLUTION
Thim
Resolver V
Resolver V

So just to be clear.

 

What you want is a slicer, that shows the lines from FP that has Indonesia?

 

If this is true, then you don't need to make a meassure, you can just put the FP column in a Slicer.Filter.PNG

 

If you ONLY want the option to filter Indonesia you can change what options the slicer has under filter.

 

 

Hope this was what you were looking for. 🙂

View solution in original post

1 REPLY 1
Thim
Resolver V
Resolver V

So just to be clear.

 

What you want is a slicer, that shows the lines from FP that has Indonesia?

 

If this is true, then you don't need to make a meassure, you can just put the FP column in a Slicer.Filter.PNG

 

If you ONLY want the option to filter Indonesia you can change what options the slicer has under filter.

 

 

Hope this was what you were looking for. 🙂

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.