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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
cristinacraita
Regular Visitor

UseRelationship not returning all rows of data

Hello,

I need your help related to userelashionship in multiple data connection with a Calendar file.

In order to be able to return the value of an indirect relashinip data I use the following formula:

Report file contains tasks with different dates - assigned, in-work, closed 

Report Logged hours contains date of logged hours

All dates are connected to ,'Calendar'[Date] one to many, one way and only date "assigned" relashionship is active.

I need to plot some data against the logged date that no longer has hierarchy due to relashonsip with calendar date.

I created a measure to recreate a date filled of logged hours.

 

Logged date linked = CALCULATE(
LASTDATE(Report_LoggedHours[Logged Date]),
USERELATIONSHIP(Report_LoggedHours[Logged Date],'Calendar'[Date]))
 
Measure is not bringing unfortunately all the dates for each row and I cannot understand why.
Made a table to see what is missing and cannot figure out any difference between the rows. First row is task number, second is the measure above, then logged date from logged hours file, then date as used from calendar then assigned date (I was affraind relashinip is not used and that the calculation is using the active relashionship).
 
Same task with same date logged  can sometimes have results and sometimes not have a result passed by the measure.
New to power bi and I appreciate the help! Thank you!
 
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @cristinacraita 

According to you description ,maybe you are just missing a column of index .

You can try to add a index column in the query edit.

Here  is a sample I made:

01.png02.png

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EaUQDUJyrmxEqWfQstZDn...

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi , @cristinacraita 

According to you description ,maybe you are just missing a column of index .

You can try to add a index column in the query edit.

Here  is a sample I made:

01.png02.png

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EaUQDUJyrmxEqWfQstZDn...

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.