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