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
caio_queiroz
Frequent Visitor

Append one collumn in the same table to another colum.

Hello!

I have a table called projectname01, this table have several columns (cost center, owner, sponsor ..) and have a column called OldSolutionName (old project name) and NewSolutionnamet (new project name ).


What i need is to filter both columns (old and new name) to another table (projectcosts) that contains a column called Projectname that will have records with the Old and New names. i can't do a relationship to both columns in the same table, i already tried to duplicate the table and append the queries, but i got an error, so i supose it is not possible.

 

Anyone could help me to find a good way to have it done.

4 REPLIES 4
caio_queiroz
Frequent Visitor

In an example :

I have a project name = XPTO - US it is present in the ProjectCost and ProjectName tables, so here the simple relationship works

But i also have the projects

XPTO
XPTO1
XPTO - United States

And all above have different values on the ProjectCost tables and they are present in the ProjectName table in a different column, but i need to show the costs of this 3 above as XPTO - US, within the XPTO - US costs that i alredy have with the first relationship

Hi @caio_queiroz 

Could you show me two sample tables (projectname01 and projectcosts) to me and the relationship you build between two tables?

And you can show me a screenshot of the result you want.

Or you can provide me with your pbix file by your Onedrive for Business.

This may make it easier for me to understand your requirement.

 

Best Regards,

Rico Zhou

 

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

 

caio_queiroz
Frequent Visitor

HI

amitchandak
Super User
Super User

@caio_queiroz , Join both of them, One will active another will be inactive. Inactive can be activated using userelation

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

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.