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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
NurAmirah_MY
Regular Visitor

Dynamic column name when refresh source data

Hi, 

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

2 REPLIES 2
Anonymous
Not applicable

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.

Syndicate_Admin
Administrator
Administrator

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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