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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Create filter from two columns

Hello everyone

 

Im struggeling with something that, in my head, sounds like a very easy task (but isn't with my pbi skills)

 

To begin with, this is the data structure. I have a sales table, that contains OrderNo, Product, Date, CustomerNo, SalespersonOrder, SalespersonCustomer, amount

 

The thing is, every salesperson has their own costumers wich they are responsable for, but the specific order can be done be another salesperson. 

It is therefore vital, that we can toggle between sale details from "Customer owner" and "Order Owner". 

 

Explained in this example with Ben, Tim and Calir as salespersons.

 

This is the complete table:

image.png

 

 

Lets say, that I choose Ben in my SalespersonName filter.

When adding another filter "1" (SalespersonCustomer) i want to see: 

image.png

 

 

And when still having "Ben" choosed in the first filter, I want to see the following, when choosing "2" (SalespersonOrder)

image.png

 

Hopefully it makes sense! 

 

Thanks in advance

 

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

Hi Lahan10,

 

No complete same solution in power bi but here is a workaround which may work in your senario:

 

Click query editor-> Transfrom-> Click on column [SalespersonCustomer] and [SalespersonOrder]-> Click Unpivot Columns-> Rename [attribute] and [value]

 

Capture.PNG 

 

After applied&close, import a custom visual called hierarchy slicer, drag columns [Customer&Order] and [Name] one by one to the slicer.

 

4.PNG

 

2.PNG3.PNG 

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi Lahan10,

 

No complete same solution in power bi but here is a workaround which may work in your senario:

 

Click query editor-> Transfrom-> Click on column [SalespersonCustomer] and [SalespersonOrder]-> Click Unpivot Columns-> Rename [attribute] and [value]

 

Capture.PNG 

 

After applied&close, import a custom visual called hierarchy slicer, drag columns [Customer&Order] and [Name] one by one to the slicer.

 

4.PNG

 

2.PNG3.PNG 

 

Regards,

Jimmy Tao

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.