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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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