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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

Dynamic column name when refresh source data


I'm creating a template dashboard for survey responses. I will use this template to run the data and refresh automatically to show all the analysis/chart in Power BI. 

there are survey question which the column name will change. Eg:

Survey A has column names =

Option 1 | Option 2 | Option 3


and another Survey B has column names =

Option 4 | Option 5 | Option 6


So, I have create a chart for this survey question in Power BI. When I want to run the dashboard for each survey, I want to only click refresh and power Bi will pick up the data and fit it into the chart. I'm stuck with this thing and cannot find solution elsewhere. Thanks

Community Support
Community Support

Hi @NurAmirah_MY 

You can unpivot the column first in power query, you can refer to the following link.

Unpivot columns - Power Query | Microsoft Learn

Then create a type column

e.g Option 1 | Option 2 | Option 3 belongs to'Survey A'

Option 4 | Option 5 | Option 6 belongs to'Survey B'

Then you can create a slicer and put the type to the slicer to control the display.


Best Regards!

Yolo Zhu

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


Unpivot your data so that your variability translates into rows rather than columns.

Helpful resources

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors