Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Split rows from quarterly data to weekly data

Hello,

 

I need help on this, since I have really little experience with Power Query.

I have this kind of input data:

 

Parameter_AParameter_BValueQuarter_Start_dateQuarter_End_date
AA1201/1/20183/31/2018
AA1204/1/20186/30/2018
AA1207/1/20189/30/2018
AA12010/1/201812/31/2018
BA1201/1/20183/31/2018
BA1204/1/20186/30/2018
BA1207/1/20189/30/2018
BA12010/1/201812/31/2018

 

For each quarter i have start and end date and a Value.

I would like to change the table creating a Row for each week in the quarter, dividing also the Value (column C) equally between each week.

Parameter_AParameter_BValueWeek_Start_date
AA101/1/2018
AA108/1/2018

etc...

 

Is it possible?

 

Thanks a lot,

Alessio

2 Replies

  • PattemManohar's avatar
    PattemManohar
    Community Champion

    Anonymous  Yes it's possible. You need to link your main source table with another date dimension table which will have week_Start_date along with the quarter_end_date. Then a calculated table by joining those two tables should give you the multiple rows for each of the quarter. Give a try ! 

    • Anonymous's avatar
      Anonymous
      Not applicable

      PattemManohar 

       

      Thanks for the prompt answer.

      I'm sorry but I don't know how to try your solution because it's little bit too concise for my level of experience in Power Query!