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
Anonymous
Not applicable

Custom column from another created using PATH

Dear all,

 

I have this data below, shown in the picture. The original data is from columns [parent] and [child]. I created [Contas] using PATH([child];[parent]), but I have another fact table that this PATH is in a different format, which I tried to recreate in [Contas (Planilhas)] using the formula below:

 

Contas (Planilhas) = IF([Length]=12;MID([Contas];1;1);
    IF([Length]=25;MID([Contas];1;1) & "|" & MID([Contas];15;1);
    IF([Length]=38;MID([Contas];1;1) & "|" & MID([Contas];15;1) & "|" & MID([Contas];29;2);
    IF([Length]=51;MID([Contas];1;1) & "|" & MID([Contas];15;1) & "|" & MID([Contas];29;2) & "|" & MID([Contas];44;2);
    IF([Length]=64;MID([Contas];1;1) & "|" & MID([Contas];15;1) & "|" & MID([Contas];29;2) & "|" & MID([Contas];44;2) & "|" & MID([Contas];59;2);
    IF([Length]=77;MID([Contas];1;1) & "|" & MID([Contas];15;1) & "|" & MID([Contas];29;2) & "|" & MID([Contas];44;2) & "|" & MID([Contas];59;2) & "|" & MID([Contas];74;2);
    "fazer"))))))

 

image.png

 

 

However, when I try to add the relatioship to the other table, I get an error saying I have a "Circular Dependency" from this table.

 

Any sugestions on how I could get this changed column in a better and smarter way, and why this is a Circular depent formula?

 

Thank you,

Eduardo

 

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous

 

You may have a look at this article to understand circular dependency.This article is about avoiding circular dependency. For your case,i would suggest you create measures or create the column in query editor to avoid circular dependency.If you need further help,please share the .pbix file and explain more about your expected output.You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Regards,

Cherie

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

View solution in original post

2 REPLIES 2
v-cherch-msft
Employee
Employee

Hi @Anonymous

 

You may have a look at this article to understand circular dependency.This article is about avoiding circular dependency. For your case,i would suggest you create measures or create the column in query editor to avoid circular dependency.If you need further help,please share the .pbix file and explain more about your expected output.You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Regards,

Cherie

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

Thank you. I was able to create what I needed from the Query Editor, and then used PATH functions / relationships successfully.

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.