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

Userelationship function giving blank values.

Hello all,
I'm trying to use the userelationship function for a model.
I have 3 tables. Calendar, Shipment, Sites

where Calendar(date)is connected to 2 dates of Shipment( early_ship date-active, loddte only-inactive) 

Sites(wh_id) is connected to Shipment(wh_id - active)

rushikesh_27_1-1659979467840.png

 

I'm trying to calculate the sum of Cases loaded(loose,layer,full pallet) based on loddte only.

DAX  used- calculate(sum(Shipment(Loose Sc Loaded)),userelationship(Calendar(Date),Shipment(Loddte only))

I'm still getting blank values.
I have the same date type.
I'm using Calendar Date as filter. Site(Wh_id) as another filter to select sites.

rushikesh_27_0-1659979037668.png

Can I know what is it that I'm missing.

 

 

1 REPLY 1
lbendlin
Super User
Super User

Looks ok. Maybe you don't have data for that period.

 

Please provide sanitized sample data that fully covers your issue. I cannot help you without meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.