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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SAPpowerbi
Helper II
Helper II

Filter depending on two columns

Hello Team,

 

I Need help on below -

I have two column like   -Location 1 and Location 2 .

as of now i have two filters for selection like -

(Filter 1= Location 1 - Yes , No)

(Filter 2= Location 2 - Yes , No)

 

Below is the Table 

Country NameLocation 1Location 2
ABCYesYes
IndiaNoyes
UKyesyes

 

 

Need below Output-

Filter Location =

Location 1 - yes

Location 1 No

Location 2 -yes

Location 2 -No

 

Please help me to used only one filter using two columns.

Thank you in advance .

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@SAPpowerbi 

just like what @mohammedadnant  suggest, unpivot columns.

Then you can merged columns 

1.PNG

or add both attribute and value column to slicer.

2.PNG





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

@SAPpowerbi 

just like what @mohammedadnant  suggest, unpivot columns.

Then you can merged columns 

1.PNG

or add both attribute and value column to slicer.

2.PNG





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

Proud to be a Super User!




mohammedadnant
Impactful Individual
Impactful Individual

Hi @SAPpowerbi 

 

You can do this in Power Query

1. Select the Location1 & Location2 column --> Top ribbon Transform --> Unpivot Columns --> that's it,

 

 

Please check this video if you are not clear..

https://youtu.be/s7iwN_X82UI

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

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors