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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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