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
lem5072
Frequent Visitor

Multiple Filters across different workbooks

Hello, 

 

I am trying to apply 2 filters across 2 different fields in 2 different workbooks. I cannot merge the files as they deal with seprerate data and that would not work. I need to filter by Office AND by YEAR. However when i create the relationships I cannot link these tables on multiple fields. When i then create a table to link the Office to Workbook 1 then Year from Workbook 1 to Workbook 2 this also doesn't work. I hav also tried the formula 

 

 

Year Sep Count = calculate(count(Workbook2[Count]), filter('Workbook2','Workbook2'[Year] in values(Workbook1l[Year])))
 
Workbook 1 Workbook 2
CountOfficeYearAge  OfficeYearLeave Taken
13987Front Office201243  Front Office2012Y
13989Front Office201467  Front Office2014N
13990HR201533  HR2015Y
13991Front Office201424  Front Office2014N
13992IT201965  IT2019Y
13993IT202023  IT2020Y
13994HR201465  HR2014N
13995Front Office201619  Front Office2016Y
 
 
My Dashboard has both the Office Filter and the Year filter, so when you select either I want both tables to filter appropriatley. Creating 2 seperate lookup tables for the Office and Year also cause a circular relationship 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lem5072 , You can create common office and year (if needed date table) dimension and join with both tables and use those dimensions as slicer and visual along with measure from two tables

 

new tables 

Office=

distinct(union(distinct('Table'1[Office]),distinct('Table'2[Office])))

 

year =

distinct(union(distinct('Table'1[year ]),distinct('Table'2[year ])))

 

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

View solution in original post

2 REPLIES 2
lem5072
Frequent Visitor

Thank you for the help!

amitchandak
Super User
Super User

@lem5072 , You can create common office and year (if needed date table) dimension and join with both tables and use those dimensions as slicer and visual along with measure from two tables

 

new tables 

Office=

distinct(union(distinct('Table'1[Office]),distinct('Table'2[Office])))

 

year =

distinct(union(distinct('Table'1[year ]),distinct('Table'2[year ])))

 

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

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.