cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
subhendude
Microsoft
Microsoft

Bind dynamic column to the table

I've a dataset as mentioned below

subhendude_1-1652719478922.png

Please note the column names are dynamic in nature. It changes every week because of the to and from date within the parenthesis. This is blocking to select the field to the table visualization because setting them now will definitely break in next week with the change in the column names.

 

Is there anyway in Power BI to use the same dataset keeping the view intact? Alternative is to use matrix table but wanted to evaluate if it is possible in Power BI without using matrix table.

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I'd recommend unpivoting the columns other than Products to prevent having to deal with dynamic column names (and then, yes, use the unpivoted column names as the column headers in a matrix visual).

 

Having an unstable table structure (dynamic column names) is likely to cause lots of trouble keeping a report up-to-date. Avoid if at all possible.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

I'd recommend unpivoting the columns other than Products to prevent having to deal with dynamic column names (and then, yes, use the unpivoted column names as the column headers in a matrix visual).

 

Having an unstable table structure (dynamic column names) is likely to cause lots of trouble keeping a report up-to-date. Avoid if at all possible.

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors