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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AGo
Post Patron
Post Patron

Circular dependancy

I've got table A and table B linked with one-to-many relation (not every element in A is linked to one or more element in B).

I've got a measure that summarizes fields contained both in A and B.

In A there is "Product" field.

Table A has its date field and B has its date field, now I want to create a matrix with my measure as value, Products as rows and months in column. The problem is that date informations are on two different columns separated in A and B. I can't link A and B to a calendar table. What can I do?

3 REPLIES 3
jthomson
Solution Sage
Solution Sage

Data would certainly help here as well as what exactly you're trying to show - when you say you want months as column, which months?

All of the months of both of the date columns (table A and B).
I figured out one way: create a union of values of the two columns as new table linked to nothing. Then filter my CALCULATE measure with both DateInTableA and DateInTableB IN VALUES of date column the new calendar table. This works but it's a little too heavy and not very versatile. Better solutions?

Hi @AGo ,

Please share a pbix file with some sample data so that we can test on it. 
In addition, you can also take a look at following blog to know how to avoid this issue:

Avoiding circular dependency errors in DAX

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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