Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Transposing Muti-Data Sets to Single Program

Hello, 

 

Looking for some help with this. I am aware of transposing the data, but not sure how to pull the program name down for every date value in the array. Looking for either the manual manipulation methods to allow this to happen, or if there are applied steps that can be followed to automate this manipulation.

 

I am a beginner in PowerBI, any assistance is appreciated. Thank you in advance for any help. 

 

My current dataset looks like this:

 

Program:1/1/20222/1/20223/1/20224/1/20225/1/20226/1/20227/1/20228/1/20229/1/202210/1/202211/1/202212/1/2022
A447411293233408944126241437228168324932521336
B868376440320584574317545993817320937984488261
C3951191832882018072713119417334512282732612881
D22656182041209531773293307836651899246627452371
E392340774247244943033999420525402095481729872064

 

I am looking to get the dataset into this format:

 

Program:Date:Value
A1/1/20224474
A2/1/20221129
A3/1/20223233
A4/1/20224089
A5/1/2022441
A6/1/20222624
A7/1/20221437
A8/1/20222281
A9/1/202268
A10/1/20223249
A11/1/20223252
A12/1/20221336
B1/1/2022868
B2/1/2022376
B3/1/20224403
B4/1/20222058
B5/1/20224575
B6/1/20223175
B7/1/20224599
B8/1/20223817
B9/1/20223209
B10/1/20223798
B11/1/20224488
B12/1/2022261

 

  • Hi Anonymous ,

     

    According to your description, here is my solution.

    Click "transform data" to enter Power Query Editor.

    Use Power Query to unpivot the other column. Please select the first column, right click it and then click "unpivot other columns".

    Final output:

     

    Best Regards,
    Community Support Team _ xiaosun

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • v-xiaosun-msft's avatar
    v-xiaosun-msft
    Community Support

    Hi Anonymous ,

     

    According to your description, here is my solution.

    Click "transform data" to enter Power Query Editor.

    Use Power Query to unpivot the other column. Please select the first column, right click it and then click "unpivot other columns".

    Final output:

     

    Best Regards,
    Community Support Team _ xiaosun

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you very much for your help and support! This is exactly what I needed!