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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rmahadik
Regular Visitor

How to add column in inner tables to outer table

Hi Experts,

 

I need to add a column from inner table to outer table. Can someone please guide which function can be used ?

In below snap, I want to add primary_key column to outer table 'Table_List_DB'. Please advise

 

rmahadik_0-1664185725172.png

 

5 REPLIES 5
rmahadik
Regular Visitor

Hi @wdx223_Daniel , @v-stephen-msft 

 

I promoted the headers and also tried to expand the nested table. However since the nested tables are not uniform in structure most of the columns are coming as null. What I want to achieve is I need only 1 column (Primary_Key) from highlighted nested table only (other tables does not contain this column) in the outer table for further manipulations. 

 

rmahadik_0-1664296367961.pngrmahadik_1-1664296392334.png

 

Source Code :

rmahadik_2-1664296509995.png

 

v-stephen-msft
Community Support
Community Support

Hi @rmahadik ,

 

The simple way is to expand the column. If you want to keep this column with tables, you can duplicate it for expansion. When you expand it,  create conditional columns to filter out the rows you need, and finally keep what you need.

 

 

Best Regards,

Stephen Tao

 

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

 

rmahadik
Regular Visitor

Below is my code and output - 

 

rmahadik_0-1664199250474.pngrmahadik_1-1664199268664.png

 

your column header is not "primary key", but "column 3".

you need to promote headers firstly.

rmahadik
Regular Visitor

Hi @BA_Pete @Vijay_A_Verma @wdx223_Daniel @AlexisOlson - 

Guys please help me with above problem. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors