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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
asjones
Helper V
Helper V

Using Slicer with Inactive Relationships

I have tables “MainProject” and “WorkOrder” and both have a field named DEPARTMENT.

 

I also have a 3rd table called “Department_Relations”.   Department relations has a list of many departments, countries, and areas. (More departments than countries, and more countries than areas).

 

I have an active relationship from MainProject[Department] many to 1 DepartmentRel[Department].

Also have an inactive relationship for WorkOrder[Department] many to 1 DepartmentRel[Department]

 

  1. Ideality in this case I would like one slicer to that would filter on the “xArea” selected in the slicer. It would filter on both  relationships at the same time. However in searching I could not figure out how to even get started on that.

 

  1. My second option was to have one slicer for MainProject (active) and a 2nd slicer on WorkOrder (inactive) and use the USERELATIONSIHP() function with either a measure or calculated column. However I seemed to get stuck on the DAX around that. I tried creating Measure (one article seemed to suggest that) another seemed to suggest a Calculated Column but then I read Calculated Columns could be tricky to do with USERELATIONSHIP().

 

I tried the following options and the putting the measure or calculated column in a slicer, but they did not “slice”.

 

 

Measure1 = CALCULATETABLE( DISTINCT('Department Relations'[xArea] ) , USERELATIONSHIP(Work_Order_Master[WMF_Department], 'Department Relations'[Department]) )

 

This calculated column was in the Department Relations table.

Calc1 = CALCULATETABLE( DISTINCT('Department Relations'[xArea] ) , USERELATIONSHIP(Work_Order_Master[WMF_Department], 'Department Relations'[Department]) )

 

I would love to hear your thoughts and ideas for one or both options from above.

 

Thanks

 

Alan

 

I also tried some ideas from this post but did not get anywhere.

https://community.powerbi.com/t5/Desktop/Using-inactive-relationship-for-filtering-purposes/m-p/5845...

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

@asjones,

Slicers don't utilize inactive relationships, thus when you create slicer using fields of DepartmentRel table, and select values in the slicer,  visuals that contains WorkOrder fields will not be filtered.

In your scenario, I note that you create a new table using the following DAX. Could you please share sample data of your  tables and post expected result? Also it is not possible to drag measure to a slicer.

CALCULATETABLE( DISTINCT('Department Relations'[xArea] ) , USERELATIONSHIP(Work_Order_Master[WMF_Department], 'Department Relations'[Department]) )

 




Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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