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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
stribor45
Post Prodigy
Post Prodigy

Calculated column from another table column in the same data model

How would I add a column from another table into my table using "Custom Column"? When I try to populate a custom formula and enter #"My Other Table" how do I reference that column now? The only available columns are the ones from the table where I want to bring that column over. This tutorial doesn't show examples when you want to copy from another table Custom Column 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @stribor45 ,

 

Based on your description, I have creaeted a simple sample:

vjianbolimsft_0-1682042168358.png

vjianbolimsft_1-1682042181649.png

If you need to add the column Answer in SUMMARIZE TABLE:

vjianbolimsft_2-1682042250856.png

vjianbolimsft_3-1682042263636.png

vjianbolimsft_4-1682042421797.png

vjianbolimsft_5-1682042435177.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @stribor45 ,

 

First select the eligible rows to produce a Table by using Table.SelectRows():

Table.SelectRows(DETAILSTABLE,((x)=>x[Key]=[Key]))

 

 

vjianbolimsft_0-1682996925342.png

Then select the columns you want to generate the list:

Table.SelectRows(DETAILSTABLE,((x)=>x[Key]=[Key]))[Answer]

vjianbolimsft_1-1682997016021.png

Get the value from the list by index position:

Table.SelectRows(DETAILSTABLE,((x)=>x[Key]=[Key]))[Answer]{0}

Final output:

vjianbolimsft_2-1682997160831.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

stribor45
Post Prodigy
Post Prodigy

Would you be able to explain this function/condition below? In the "Custom1" column you copied the table with one column but I am confused about how are you accessing values in that column. Nowhere in your formula, you are referring to that "Custom1" column

 

 

(x)=>x[Key]=[Key]{Answer}{0}

 

v-jianboli-msft
Community Support
Community Support

Hi @stribor45 ,

 

Based on your description, I have creaeted a simple sample:

vjianbolimsft_0-1682042168358.png

vjianbolimsft_1-1682042181649.png

If you need to add the column Answer in SUMMARIZE TABLE:

vjianbolimsft_2-1682042250856.png

vjianbolimsft_3-1682042263636.png

vjianbolimsft_4-1682042421797.png

vjianbolimsft_5-1682042435177.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

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 Solution Authors