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

Add New colum

Hi everybody,

I have 2 Tables " PontoB" and "TURNO"

PabloSosa_0-1635432899545.png
And

PabloSosa_1-1635432925614.png


I need add the colum "Escala" from "Turno" on the other table "PontoB".

It´s only add new colum in "PontoB"

Here the relationship

PabloSosa_2-1635433110573.png

 







 

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Your model does not seem to be very friendly, please consider optimising the model structure, with loops, then cross filtering can create an ambiguous set of relationships.please consider star model or set cross filter direction to both. Refer this article.

 

And in your case , maybe you can try some measures like the following:

Escala from TURN0 = CALCULATE(FIRSTNONBLANK('TURNO'[Escala],0),RELATEDTABLE(TURNO))

 

If it do not work please provide pbix file without sensitive data.

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

6 REPLIES 6
goncalogeraldes
Super User
Super User

Hello there @Anonymous ! You can do this in Power Query with the "Merge Queries" option. Open PQ and in the "Home" tab you have the "Merge Queries" option in the "Combine" Folder. In the pop-up window, select the two tables to merge:  " PontoB" and "TURNO". Then, in each one, while holding the CTRL button, select the "Data" and (I think you can also use this column as a connection) the "TIME" column (similar to what I need in the following print).

 

goncalogeraldes_0-1635434343443.png

 

Afterwards, open the icon "Expand" icon in the newly created column and unselect all columns except for the "Escala" and press "Ok" like in the example print.

 

goncalogeraldes_1-1635434397154.png

 

And then verify that the data was correctly merged!

 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

Anonymous
Not applicable

The colum TIME it´s calculate in PontoB

PabloSosa_1-1635435510923.png


From table "Colaboradores"

PabloSosa_2-1635435534938.png

 

Anonymous
Not applicable

Hi @goncalogeraldes,

Thank´s for your help

I did, but the value show with null

PabloSosa_0-1635435379736.png

I merge date with date, it´s the factor comum

 




@Anonymous Isn't the TIME column also a common factor?

Anonymous
Not applicable

It´s common factor, but TIME was calculate, so i can´t use in Query editor.

Table "PontoB" with TIME column

PabloSosa_0-1635441284228.png


Dates "Time" on Table "Colaboradores"

PabloSosa_1-1635441356087.png


Relantioship

PabloSosa_2-1635441402028.png

 

Hi @Anonymous 

 

Your model does not seem to be very friendly, please consider optimising the model structure, with loops, then cross filtering can create an ambiguous set of relationships.please consider star model or set cross filter direction to both. Refer this article.

 

And in your case , maybe you can try some measures like the following:

Escala from TURN0 = CALCULATE(FIRSTNONBLANK('TURNO'[Escala],0),RELATEDTABLE(TURNO))

 

If it do not work please provide pbix file without sensitive data.

 

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the 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.