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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calendar multiple relations in one table not working

Hello All,

 

I have created a calendar table and have multiple date relationships with a single table. The table has an assigned date and a closed date for work orders. I want to show how many workorders are assigned and closed per month and per technician. To do this I created a column that had the number of work orders per ticket (1 order per ticket) and then created a measure called Total_WO (standing for total work orders). I tried to create a Total_WO_Assigned measure and a Total_WO_Closed measure using the following code:

Total_WO_Assigned = CALCULATE([Total_WO], USERELATIONSHIP('Calendar'[Date],tblWork_Orders[WO_AssignDate]))
Total_WO_Closed = CALCULATE([Total_WO],USERELATIONSHIP('Calendar'[Date],tblWork_Orders[WO_ClosedDate]))
 
I then tried to seperate this in a table to break it up by date and got:
attempt1.PNG
Is there something I am doing wrong with the relationships? Any help would be appreciated I have been working with PowerBI for about a week now and have a lot to learn. Thank you.
 
Here is my relationship view:
relationships.PNG
 
1 ACCEPTED SOLUTION

@Anonymous ,

Looking at the visual as all dates are blank for Total_WO_Assigned . Means date table is not having all WO_AssignDate. Or WO_AssignDate is having timestamp.

To check change the format to date time and use a format with time. Time other than 00:00 or 12:00 AM might be there

 

Create a new  column without time and join that with date table

WO_AssignDate 1 = datevalue([WO_AssignDate])

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , I hope year date, and month are coming from the date table. They should be from date table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Yes, they are! If I would do it with the assign date or close date it will work but then I can no longer display them apporpriatly on the same table. I was hoping by using the date table I could display them on the same table

@Anonymous ,

Looking at the visual as all dates are blank for Total_WO_Assigned . Means date table is not having all WO_AssignDate. Or WO_AssignDate is having timestamp.

To check change the format to date time and use a format with time. Time other than 00:00 or 12:00 AM might be there

 

Create a new  column without time and join that with date table

WO_AssignDate 1 = datevalue([WO_AssignDate])

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you I didn't realize that changing the way the date looked didn't remove the time stamp! I appreciate it.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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