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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.