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
vadnaisc
Regular Visitor

Help with USERELATIONSHIP on Slicers

Hello,

 

I am working with 2 tables Date and FactReservation have an active relationship between 'Fact Reservation'[StartDate] and 'Date[date]' as well as inactive reservations with 'Fact Reservation'[EndDate] and 'Fact Reservation'[BookDate].

 

I also have duplicated the FactReservation table, removed all columns except for StartDate, EndDate, BookDate and ResID, and unpivoted this table, leaving me with a ResID column, Attribute (Date Tye) column and Value(Dates) column and named this table  Reservation Dates. Reservation Dates and FactReservation are connected with ResID.

 

My end goal is to have slicer where I use Date[date] and can chose which date type I want to filter by and filter a table with this. The DateType column will then reflect the selection of either book date, start date or end date, and the date column will reflect the date value for that row and type. The slicer I have below is using 'Reservation Dates'[Date] and 'Reservation Dates'[Date Type] and is working to filter my table, however in order to use this across other reports and pages, I need to use the Dates table instead so I need a way to turn on the 2 inactive relationships.

 

Because I do not want to CALCULATE anything, I have not been able to make a measure with USERELATIONSHIP that does anything to help me. 

 

vadnaisc_0-1631739462033.png

 

vadnaisc_1-1631740058941.png

 

Is there any way to accomplish this? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can't achieve this with the current setup and the constraints you place on the design. To realy do it you have to have 1 fact table where every row is present 3 times and you add additional 2 columns where 1 will hold the type of date and the second the very date. Then you create an auxiliary table with the names of the 3 types of dates (connecting it as usual to the fact table on the auxiliary date name/type field) and connect your Date[date] to the new date column added to your fact table. If you then put a filter on the new date type column (Book, End, Start) and at the same time on the Date table... you'll get what you want without a measure. Please remember that you should never use fact table colums on the canvas (only the dimensions') unless the dimension is degenerate.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

You can't achieve this with the current setup and the constraints you place on the design. To realy do it you have to have 1 fact table where every row is present 3 times and you add additional 2 columns where 1 will hold the type of date and the second the very date. Then you create an auxiliary table with the names of the 3 types of dates (connecting it as usual to the fact table on the auxiliary date name/type field) and connect your Date[date] to the new date column added to your fact table. If you then put a filter on the new date type column (Book, End, Start) and at the same time on the Date table... you'll get what you want without a measure. Please remember that you should never use fact table colums on the canvas (only the dimensions') unless the dimension is degenerate.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (27)