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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Data Relationship

Good Evening, 

 

i have two sets of data on my BI and for some reason i can not get the data realtionship to work right. the data has come from a campaign dailler report blending in the site absence report. i would like to merge the data enabling me to cross the reports and return daily Timesheet hours. I have tried a realtionship between agent name and His_userfullname and a seprate one as His-calldate and timesheet date. 

 

unfortunatly i am not getting the results i need. Am i missing something stupid?

Do the relationships need to have the same title?

 

thanks in advance 

ianboothman84_0-1614719653452.png

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

You can try to create a dimtable as:

Dimtable = 
CALENDAR(MIN('Table'[Date],MAX('Table'[Date]))

About many-to-many relationship, you can refer:

 https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-many-to-many-relationships

 

Best Regards,

Link

View solution in original post

6 REPLIES 6
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

You can try to create a dimtable as:

Dimtable = 
CALENDAR(MIN('Table'[Date],MAX('Table'[Date]))

About many-to-many relationship, you can refer:

 https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-many-to-many-relationships

 

Best Regards,

Link

selimovd
Most Valuable Professional
Most Valuable Professional

Hello @Anonymous ,

 

can you do a double click on the relationship and check if the values of the two column that are connected are correct?

They should both look the same. Like both a date or an integer or the same text. You can also post a screenshot here if the data is not sensitive.

 

Best regards

Denis

Anonymous
Not applicable

Good Afternoon

@selimovd 

The date formats appear to be the same

ianboothman84_0-1614720763760.png

 

selimovd
Most Valuable Professional
Most Valuable Professional

Ok, the relationship columns look good. But you are using a many to many relationship.

You should avoid many to many relationships until you really need them because this can cause wrong results. Check out this blog article about ambiguity with many to many relationships.

 

Can you use dimensional tables for your data model?

I know it's a little work at the beginning to read into the topic, but you should get an idea about fact and dimension tables. Maybe check this article to get an idea about fact and dimension tables.

 

If you need any help please let me know.
If I answered your question I would be happy if you could give it a thumbs up 👍!

Best regards
Denis

Anonymous
Not applicable

thankyou @selimovd 

If i attempt to change the relationship i cant save the amend. it only seems to accept Many to Many

ianboothman84_0-1614764832534.png

 

selimovd
Most Valuable Professional
Most Valuable Professional

Yes, you cannot just change the relationship as you don't have unique values in either of the tables.

That's the reason you should create dimensional tables. Check the article I posted in my last answer 🙂 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors
Top Kudoed Authors