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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dynamic Columns of Data Source

I have a data source having weekly values in it.
Weeks are columns.

Sometimes weeks will be in the range 202310 to 202327 or sometimes it ranges between 202328 to 202347 and varies depending upon the data.
2023 is a year and 10 is week no.

I have created a report using weeks from 202310 to 202327. Now how can we add other weeks?
All processes should be automated.

1 REPLY 1
kleigh
Responsive Resident
Responsive Resident

Firstly, you will need to change the import. By default, some connectors like CSV will add a coulumn count. Since you have a varying number of columns, this must be removed.

 

If the rest of the columns are fixed, you could try Table.UnpivotOtherColumns which should keep the fixed columns, and convert the varying columns to rows.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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