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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.