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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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