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
Anonymous
Not applicable

Date relationship ambiguity

Hello all

 

I've run into a bit of predicament with ambigous relationships. 

 

In my data model i have table with event data where events are pick ups, drop offs and the like, at various service points. The events have an event date that is linked to date table.

 

In another table i have a fact table containing information about the service points. The event table and service point fact table is linked via anoth table. The service point fact table contains a service point creation date. I would like to create a relationship between the service point creation date and the date table but can't because of the already existing link between the service point fact table and the date table via the event table.

 

The reason for me wanting the link is because I have a measure with the following formula : 

 

Utilization = CALCULATE(
COUNT('infinity piece_event'[event_id]),
FILTER('infinity piece_event','infinity piece_event'[event_type] = 103))
/
COUNT('infinity hardware_model_configuration'[compartment_id]) * (DATEDIFF(MIN('! Date'[Date]),MAX('! Date'[Date]),DAY)+1)
 
The measure calculates the amount of dropoffs and divides by that capacity in that time period.
 
My problem is, that if I want to look at a timeperiod that is not today service points that have not been created yet is a part of the capacity part of formula. I want to exclude the service points not created yet and I want to do it dynamically using a date slicer.
 
I hope my issue makes sense. 🙂
 
Relationships:
Relationships.PNG
1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

you might consider creating pbix file that will contain some sample data, upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.

Community Support Team _ Dina Ye
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.