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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Dynamically referencing a table column using mapping table?

I'm trying to produce a query that allows a user to map attributes from a source file to the target fields in the "output" table and have the table populated using the content of the file.

 

I have created my mapping table and have successfully retrieved the source column name from the mapping, but I am now trying to dynamically reference the source column as part of a custom field but just get the text populating the column. Is there any way to do this?

 

This is my mapping table in Excel

 

nickd_101_0-1715804769661.png

 

I then have a function which uses the ParamName to retrieve the "Value" (field name that is contained in my source data)

 

nickd_101_1-1715804832714.png

Where I am struggling is using the output of the function (the column name) to iterate each row of the selected column to populate the target table. Any tips or experiences in this space?


TIA

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Do you want to change the column name in the function? Can you provide more information, I am confused about it, do you mean that you want to fiter the value based on the dynamic column?

 

Best Regards!

Yolo Zhu

 

Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for your response! Basically I am trying to convert a source table into a template so would be aiming to change the header names. Usually I would just map this myself, but I am trying to create a simple means for a user to map the source fields (from the input file) to the relevant attributes in the template ("Target Attribute Name" in the image above) so that all the records from the source file, populate the table in the 'target' using the Target Attribute Names - kind of a very basic ETL that I am trying to achieve!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.