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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MattAdams
Helper I
Helper I

Power Query Join

I have table NOWODS_O_NOW_TASK_TASK, which contains a hash value on column a, where the readable value is in table NOWODS_O_NOW_SYGP_USER_GROUP on column b, . I have a straight join (1 to 1) and would like that in my power query for the NOWODS_O_NOW_TASK_TASK query to have column b show up next to column a in my query so I can use its group name value rather than the hash value. Below is my Advanced Editor for this query existing. How do I get this column B into my query below with the existing relationship? This is probably very beginner type of things, but I am new to some functionality within Power Bi.

 

let
Source = Sql.Database("dbserver", "db"),
NOWODS_O_NOW_TASK_TASK = Source{[Schema="SchemaName",Item="O_NOW_TASK_TASK"]}[Data],
#"Filtered Rows" = Table.SelectRows(NOWODS_O_NOW_TASK_TASK, each Text.StartsWith([NOW_TASK_B_TASK_NBR], "SER") or Text.StartsWith([NOW_TASK_B_TASK_NBR], "RTASK"))
in
#"Filtered Rows"

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @MattAdams,

 

Is there any reason that you have to add the column with Power Query? If using DAX is also ok, you should be able to simply use the formula below to add a new calculate column in table NOWODS_O_NOW_TASK_TASK under Modeling tab. Smiley Happy

column b = RELATED ( NOWODS_O_NOW_SYGP_USER_GROUP[column b] )

c0.PNG

 

Regards

View solution in original post

4 REPLIES 4
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @MattAdams,

 

Is there any reason that you have to add the column with Power Query? If using DAX is also ok, you should be able to simply use the formula below to add a new calculate column in table NOWODS_O_NOW_TASK_TASK under Modeling tab. Smiley Happy

column b = RELATED ( NOWODS_O_NOW_SYGP_USER_GROUP[column b] )

c0.PNG

 

Regards

@v-ljerr-msft you solved it with DAX, but I find using power query is easier for me to manipulate columns. After adding the column in DAX, I can't go into Edit Queries and reference that column. I would like to go into Edit Queries and that column from NOWODS_O_NOW_SYGP_USER_GROUP table be alongside NOWODS_O_NOW_TASK_TASK. How can I do this? Your help is immensely appreciated.

I was able to do this successfully by the following the blog post below. Very helpful.

http://radacad.com/how-to-change-joining-types-in-power-bi-and-power-query 

I will try it! No, no power query requirement. Thanks! Will report back.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.