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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
harrinho
Helper III
Helper III

Relationship error

Hi everyone. I'm trying to create the following relationship
but I really can't figure out where the error comes from. Here is the other calculation that the circular dependency refers to:

 but again I don't see how this could affect the relationship. 

Any ideas, how could I address that? 

 

 

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

 

You should not look up the month_name column from the other dataset.  In the CDL_Project_Forecast table, use this formula to extract the month

 

=FORMAT(CDL_Project_Forecast[full_date],"mmmm")

 

Now you will be able to create the relationship.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

thank you guys for your replies. @Ashish_Mathur do you mean to create a new measure or column with this calculation or to replace an existing one?

 

Because I already have this calculated column in place

Screen Shot 2018-01-25 at 09.45.11.pngScreen Shot 2018-01-25 at 09.44.56.png

 

Hi,

 

If you already have a Month column in the CDL_Forecast_Project Table, then why do you have an other Month Name column (in the image you have posted in the first post)?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Don't know to be honest. It was there when I inherited the dashboard, so I don't really know the reason of its existence. It's the month_name in the form of "MMM", for example "Jan", "Feb" etc. but it doesn't seem to be used in any relationship. 

Hi,

 

I'll need to see the file then.  Share the link from where i can download the file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Any idea how I can share a pbix retaining the data source confidentiality?

Hi @harrinho,

 

If there are errors even you don't try to create a relationship. Please check it out. Maybe you need a date table like this and then establish a relationship with CDL_Project_Forecast[full_date]. 

Datetable =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) ),
    "Month", FORMAT ( [Date], "MMMM" )
)

 

Relationship_error

 

Best Regards,

Dale

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

Hi,

 

Create a new calculated column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
stretcharm
Memorable Member
Memorable Member

Have you tried removing the calc column [Month Sort]

 

If the relationship can be added you can then just use.

 

MonthSort = Related(DIM_Month_Hierarchy[Number])

https://msdn.microsoft.com/en-us/library/ee634202.aspx

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.