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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
v-xinruzhu-msft
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.

Syndicate_Admin
Administrator
Administrator

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.