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

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

Reply
emilmaican
Frequent Visitor

A more complicated table transformation using querry

Hi all,

 

I have a table like the one bellow:

Name      From       To
A            201701      201706
B            201711       201803


Using Power BI querry I would like to transform it to:

 
Values on columns "From" and "To" represent months  formatted as  YYYYMM

 

Name    Month
A           201701
A           201702
A           201703
A           201704
A           201705
A           201706
B           201711
B           201712
B           201801
B           201802
B           201803

 


Thanks 

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi emilmaican,

 

I'm afraid power query can't complete the continuous date automatically. As a workaround, you can click query editor-> transform-> click on column [From] and [To]-> click Unpivot Columns, the result is like below:

Capture.PNG 

 

Regards,

Jimmy Tao

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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