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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sharpedogs
Advocate II
Advocate II

Transpose data from one file to another if the Data exists - i think it's a calculated column?

I have two files as per the Tables below. 

Table 1 is my master file with the full set of devices and the current confidence level.

Table 2 is the smaller subset of devices with an updated status in the confidence level column.

 

I want to take the New status in the Confidence Level from Table 2 and transpose it to the correct devices in Table 1. 

I think I might have to do a new calculated column? I'm just not sure of the DAX.  

 

Table 1

Device NameConfidence Level
AAA

High 

BBBHigh
CCCHigh 

 

Table 2

Device Name 

AAA

Medium

 

End State would look like 

Device Name

Confidence Level 
AAAMedium
BBBHigh
CCCHigh

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Col1= related(table2,[status])

Col2=if(isblank(table1[col1]),table1[status],table1[col1])

If it resolves your problem mark it as a solution and give Kudos.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I consider your tables are connected in with many to one or one to many relationship.

You have to simply drag device name from master table and status from second table.


Incase u want new column in master table only and if there is join on device name.

Then use below dax for column in first table

New column= related(table2[status])

Thanks and regards,
Pravin Wattamwar


If it resolves your problem mark it as a solution and give Kudos.

Hi, 

There is a relationship, it's a 1 to 1 on the device name. 

 

The DAX you gave is good, the issue it leaves me with is that the calculated coumn now has a bunch of blanks. How do I add onto the DAX so that when it moves over the few updated values it then fills in the rest of the column the the old values? 

Anonymous
Not applicable

Col1= related(table2,[status])

Col2=if(isblank(table1[col1]),table1[status],table1[col1])

If it resolves your problem mark it as a solution and give Kudos.

Really appriciate the support late on a Saturday night....  it worked perfectly!!!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.