Forum Discussion

PhilippeMuniesa's avatar
PhilippeMuniesa
Resolver I
3 years ago
Solved

Pivot Table (Difficulties in making a pivot table)

Hi,

 

I've been needing help creating a pivot table for several days and all my attempts have failed.

 

I start from a table of the type.

 

MoisrubriquevaleurNssbloc
1R_Principale1    V_Principale1 V_Principale11
1R11VR1A V_Principale11
1R21VR2A V_Principale11
1R31VR3A V_Principale11
1R41VR4A V_Principale11
1R11VR1B V_Principale12
1R21VR2B V_Principale12
1R31VR3B V_Principale12
1R41VR4B V_Principale12
1R_Principale2V_Principale2V_Principale23
1R11VR1CV_Principale23
1R21VR2CV_Principale23
1R31VR3CV_Principale23
1R41VR4CV_Principale23
2R_Principale1 V_Principale1 V_Principale14
2R12VR1A V_Principale14
2R22VR2A V_Principale14
2R32VR3A V_Principale14
2R42VR4A V_Principale14
2R12VR1B V_Principale15
2R22VR2B V_Principale15
2R32VR3B V_Principale15
2R42VR4B V_Principale15
2R_Principale2V_Principale2V_Principale26
2R12VR1CV_Principale26
2R22VR2CV_Principale26
2R32VR3CV_Principale26
2R42VR4CV_Principale26

 

 

The result to be obtained is as follows: Would any of you be kind enough to help me find a solution?

 

NssblocMoisR1R2R3R4
 V_Principale1111VR1A1VR2A1VR3A1VR4A
 V_Principale1211VR1B1VR2B1VR3B1VR4B
 V_Principale1422VR1A2VR2A2VR3A2VR4A
 V_Principale1522VR1B2VR2B2VR3B2VR4B
V_Principale2311VR1C1VR2C1VR3C1VR4C
V_Principale2622VR1C2VR2C2VR3C2VR4C

 

Thank you in advance because I am really at an impasse

 

Attached table and desired result in Excel

 

https://www.dropbox.com/t/4dEgRk2QmbNv22AP

 

 

Philippe Muniesa

 

 

 

 

  • You can achieve this using power query editor. 

    select  Rbrique column and click on Pivot column option in transform tab.

    and remove unnecessary columns.  

     

    you will get result like this

     

2 Replies

  • You can achieve this using power query editor. 

    select  Rbrique column and click on Pivot column option in transform tab.

    and remove unnecessary columns.  

     

    you will get result like this

     

  •  

    vaibhavkale570

     

    Good evening,

    I don't understand why I couldn't do it using the same technique, if not because I had other columns (indexes) etc. used to modify the table, and I hadn't deleted.

     

    Thanks to you, I deleted the extra columns and actually saw a correct result. A big thank you because now I can continue to build this project.

     

    Philippe