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

Active relationship

Hi Expects,

 

I need apply the slicer for the department.If i select the depatment name it needs show both the table details but due to more than 1 active relationship i am not getting the filtered result for both the table only one result i am getting.

 

Saravanan_ameer_0-1669783187250.pngSaravanan_ameer_1-1669783239295.png

If i select the department slicer only absent employee details are getting filtered but i need both the present and absent should get filtered.

 

Please help

3 REPLIES 3
FreemanZ
Community Champion
Community Champion

If you need to filter Presents table with Department table, you need USERELATIONSHIP to temporally activate their relationship, the code it like this:

CALCULATE(

    [],

    USERELATIONSHIP(a column from Department, a column from Presents) 

)

Column = CALCULATE([],USERELATIONSHIP('DEPARTMENT'[Department Name],Presents[dept_name]))
 
BUT getting error

by [], i mean a measure or an expression resulting a scalar value, like SUM() or COUNT()

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.