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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
RaptorFox
Frequent Visitor

Convert dynamic amount of date rows to columns

Dear community

 

I have multiple CSV blobs in a particular storage container. Those are pulled from our backup system once a week for the last seven days. Each row indicates the system to be backed up, and then n-amount of date-named columns show if the backup was successful on this particular date (1) or not (0).

 

situation_display.jpg

 

I need to be able to use date slicers in my dashboard and provide an easy overview. Therefore, i need one row per system per date for the dynamic amount of dates (columns) like this:

 

situation_display_target.jpg

 

I now tried 3 hours, and need to give up. How can i do this conversion in the easiest way?

 

Thank you very much for any help! 

1 ACCEPTED SOLUTION
AlexanderPrime
Solution Supplier
Solution Supplier

Hi there. 

Have you tried in Power Query selecting all the columns except the System Column and then using the "Unpivot Columns" function?

Doing that should give you an output like this:

 

AlexanderPrime_0-1656053074013.png

Then you'd just need to rename the 2 columns it created and you should be good to go. 


Please note - I am not affiliated with Microsoft, I'm just an end user like yourself.
Just a regular guy doin' Data Science.

If my post has helped you, please don't forget to thumbs up or click "Accept as solution" if it solved your problem!

View solution in original post

2 REPLIES 2
RaptorFox
Frequent Visitor

Thank you very much, it worked perfectly! 

AlexanderPrime
Solution Supplier
Solution Supplier

Hi there. 

Have you tried in Power Query selecting all the columns except the System Column and then using the "Unpivot Columns" function?

Doing that should give you an output like this:

 

AlexanderPrime_0-1656053074013.png

Then you'd just need to rename the 2 columns it created and you should be good to go. 


Please note - I am not affiliated with Microsoft, I'm just an end user like yourself.
Just a regular guy doin' Data Science.

If my post has helped you, please don't forget to thumbs up or click "Accept as solution" if it solved your problem!

Helpful resources

Announcements
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
Users online (13,591)