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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Custom Column help

Hello i am having trouble adding a custom column to my query, basically what i want to do is the next, i have 3 tables LAYOUT, CONTRATOS and CCunicos the one I am working on is LAYOUT

 

What i want to do in my new column is to get information from one table or another depending on the value of the column [ID RS] from LAYOUT, if its 39, 41 or 46 i need to get the corresponding [Contrato] from CCunicos  to those ids

if the value is different i need to get the corresponding [CC] from CONTRATOS using [ID RS] and [ID LOC] as Keys 

note:  [ID RS] and [ID LOC] are the original values from LAYOUT

i have tried using the Table.SelectRow function but my code didnt work

 

Leo

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

the problem is this is confidential info

Well, you can PM me a link to it vs posting in the forum. I'm genuinly curious as to what the issue is.

 

If you cannot do that, I'm not sure what else I can do.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

done i posted some sample data on the original post

edhans
Super User
Super User

You want a conditional merge. I responded to your request here about that. Please continue in that thread with some sample data if the code I provided didn't work for you.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors