Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi,
I've got a report with a Date table and a calculated table with a Date column and a custom date range column (YTD,MTD,etc..).
When I try to create a relationship between the Date columns in both tables it looks like the operation is successful, the "Working on it" popup shows and then the "Manage relationships" window shows but with no relationship created.
This is the code for the calcualted table
I tried adding the calculated table to one of my existing models but could not create the relationship. I tried creating a report with only the Date table and the calcualted table but could not get that to work either.
I've never encountered an issue like this before and I'm not sure how to further troubleshoot.
Any help would be appreciated.
Cheers
I've nailed the issue, if I pass a CALCULATED value as a parameter to the CALENDAR function it will no longer allow me to create a "one to many" relationship. It only affects one to many relationships.
PBIX file available here: https://www.dropbox.com/s/odcnk3r46zjbtpl/FailedRelationshipDemo.pbix?st=0viw1k4b&dl=0
I've done some more testing and it seems to only be an issue with the one to many relationship type. There are no duplicates in my Date table but I am able to create a many to many relationship without issue, but if I try to change the relationship type to "one to many" it does the same thing, it does a quick load and then nothing happens. No error and no change.
I've created two other tables for testing as well, one where I manually input 4 dates in a column called Date with 2 duplicates, this table can create the "one to many" relationship with no issue.
The second table is a calculated table where I union two sets of dates with some overlapping dates, this table can also create the "one to many" relationship with no issue.
This is the code for the table that won't work
A screenshot of the relationships with the two test tables.
Try to share pbix to check
Relationship error screenshot please.
Before must check following things:
- Duplicate values
- Data Type
- match date in two different tables try to validat those things then please follow Type of relationship:
one to many,
Many to one,
many to many
https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships
I'm not getting any errors. It just completes the process as if the relationship has been created but there is no relationship there.
I have the same problem. Its only been since the last revision of PBI.
Please Share pibix to check (similar issue I've went through where I have found the data Type issue ( not all few)
I was able to upload the PBIX-file to DropBox,
https://www.dropbox.com/s/odcnk3r46zjbtpl/FailedRelationshipDemo.pbix?st=0viw1k4b&dl=0