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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Magesen
Regular Visitor

Yes or No slicer

Scenario : A company have local and foreign resources. I already have a measure called "Foreign" which will calculate number of foreign resources. There are multiple dashboard showing different segment of resources example by age, by technology, by years or experience etc. My question is how to create a new slicer name "Foreign" the value need to be Yes and No. If user select Yes, all the dashboard to show the value of Foreign resources only. If user select No, all the dashboard to show the value of local resources only. How can achieve this. pls advise. TQ

 

2 REPLIES 2
Anonymous
Not applicable

Hi, @Magesen 

 

Has your problem been solved? If not, can you provide more example data and what you expect as output?

 

Best Regards,

Community Support Team _Charlotte

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

rajendraongole1
Super User
Super User

Hi  -You need to first create a calculated column that flags whether a resource is foreign or local based on your "Foreign" measure. This will categorize the data as "Yes" (Foreign) or "No" (Local).Go to the table where your resources data exists and create the following calculated column:

Foreign Status = IF([Foreign] = 1, "Yes", "No")

 

This will create a new column that marks each resource as either "Yes" (Foreign) or "No" (Local).

Drag the newly created Foreign Status column to the report canvas.Convert it into a Slicer visual by selecting the slicer option from the visualization pane.This slicer will now have two options: "Yes" and "No."

 

Hope the above steps helps your to derive the expected result. 

@Magesen





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.