Power Query - Survey Data Cleaning and Prep.

Brass Contributor

Would appreciate it if someone could advise me on the power query solution to prep survey data?  I need to change the raw survey data format show in Table 1, into the one in Table 2.  Thanks.

 

Table 1 - Raw Survey Data

NameDateQ1 . AAAAAComment 1Q2. BBBBBComment 2Q3 . CCCCCCComment 3Q4 . DDDDDComment 4
adam22-AugStrongly AgreeGood learning experienceStrongly AgreeGood learning experienceStrongly AgreeGood learning experienceStrongly AgreeGood learning experience
ben22-AugAgeeNilAgeeNilAgeeNilAgeeNil
charlie22-AugDisagreeInsufficient materialsDisagreeInsufficient materialsDisagreeInsufficient materialsDisagreeInsufficient materials
David22-AugSlightly AgreeBoring.Slightly AgreeBoring.Slightly AgreeBoring.Slightly AgreeBoring.
Evan22-AugAgreeGood participationAgreeGood participationAgreeGood participationAgreeGood participation

 

Table 2 - Prep Data.

NameDateQuestionsResponseComments
adam22-AugQ1 . AAAAAStrongly AgreeGood learning experience
ben22-AugQ1 . AAAAAAgeeNil
charlie22-AugQ1 . AAAAADisagreeInsufficient materials
David22-AugQ1 . AAAAASlightly AgreeBoring.
Evan22-AugQ1 . AAAAAAgreeGood participation
adam22-AugQ2. BBBBBStrongly AgreeGood learning experience
ben22-AugQ2. BBBBBAgeeNil
charlie22-AugQ2. BBBBBDisagreeInsufficient materials
David22-AugQ2. BBBBBSlightly AgreeBoring.
Evan22-AugQ2. BBBBBAgreeGood participation
adam22-AugQ3 . CCCCCCStrongly AgreeGood learning experience
ben22-AugQ3 . CCCCCCAgeeNil
charlie22-AugQ3 . CCCCCCDisagreeInsufficient materials
David22-AugQ3 . CCCCCCSlightly AgreeBoring.
Evan22-AugQ3 . CCCCCCAgreeGood participation
adam22-AugQ4 . DDDDDStrongly AgreeGood learning experience
ben22-AugQ4 . DDDDDAgeeNil
charlie22-AugQ4 . DDDDDDisagreeInsufficient materials
David22-AugQ4 . DDDDDSlightly AgreeBoring.
Evan22-AugQ4 . DDDDDAgreeGood participation

 

 

3 Replies

@choongko The attached PQ solution requires no manual M-coding. All was achieved via the UI.

Riny_van_Eekelen_0-1661314559351.png

 

@Riny_van_Eekelen  As I new to PQ, can I trouble you to list the procedure? tks.  I was trying to learn how it was done. Thanks. 

Managed to goto query editor and saw the procedure. Thanks.