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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
chadkoziel
Regular Visitor

single slicer on lookup columns

This problem seems simple, but I'm struggling to find a robust solution.  I'm modelling person-to-person transactions, where a person can be either a sender or a receiver.  I need a single visual slicer that will return transactions where either the sender OR the receiver belonged to a given region.

 

I've got two tables:

 

  • Transaction ( Transaction.ID, Sender.ID, Receiver.ID, Transaction.Date, others )
  • Person ( Person.ID, Region, others )

My previous solution was:

 

  1. Load Transaction table;
  2. Join the Region on the Transaction table for the sender ( Sender.Region );
  3. Calculate a "Report.Region" column = Sender.Region;
  4. Load a second Transaction table;
  5. Join Region on the Transaction table for the receiver ( Receiver.Region );
  6. Calculate a "Report.Region" column = Receiver.Region;
  7. Append the two tables;
  8. Use Report.Region as filter;
  9. Make judicious use of summarize by distinct Transaction.ID in measures and visuals

That solution is falling apart as I attempt to create measures that use both tables (i.e. filter on Region, create stacked column chart that a) count distinct Sender.IDs that appear in Transaction Table, and b) Person.IDs in Person table that don't appear in Transaction Table).

 

Any suggestions?

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

@chadkoziel,

 

You may refer to the following post.

https://community.powerbi.com/t5/Desktop/Use-slicer-to-a-filter-table-based-on-values-in-multiple-co...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@chadkoziel,

 

You may refer to the following post.

https://community.powerbi.com/t5/Desktop/Use-slicer-to-a-filter-table-based-on-values-in-multiple-co...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.