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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Transform Data from DAX query table to Power Query Editor

Hi

 

I was trying to union a few columns into a new column in the same table with a new table name by using DAX. When I tried to establish a relationship it didn't let me do in the DAX asking me to remove existing. And, I did try joining the table in Power Query Editor but it didn't go through when I tried to transform data. Is there a way to transform data in the query editor or establish the relationship with a new table in Power BI Desktop? Or Write the Union Syntax in Power Query Editor?

 

Thanks

Using Dax....

SMEMatrix =
DISTINCT (
UNION (
SELECTCOLUMNS ( 'SME Matrix',"SRP ID",'SME Matrix'[SRP ID],"Project Name",'SME Matrix'[Project Name], "SMEUSERID", 'SME Matrix'[Location 1 [See Note 3A]]],"Field Name","Location 1 [See Note 3A"),
SELECTCOLUMNS ( 'SME Matrix',"SRP ID",'SME Matrix'[SRP ID],"Project Name",'SME Matrix'[Project Name], "SMEUSERID", 'SME Matrix'[Location 2],"Field Name","Location 2" ),
SELECTCOLUMNS ( 'SME Matrix',"SRP ID",'SME Matrix'[SRP ID],"Project Name",'SME Matrix'[Project Name], "SMEUSERID", 'SME Matrix'[Project Description],"Field Name","Project Description" )
)
)
1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.UnpivotOtherColumns(PreviousStepName,{"SRP ID","Project Name"},"Field Name","SMEUSERID")

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you.

wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.UnpivotOtherColumns(PreviousStepName,{"SRP ID","Project Name"},"Field Name","SMEUSERID")

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.