Forum Discussion

chyang0107's avatar
chyang0107
Helper I
2 years ago
Solved

Table Visualization - from columns to rows

Hey everyone,

 

I would need your help on how to transpose the data from columns to rows by using Table visualization. Could I know if you could provide your insights on this task

 

Current table visul

IDGrant ManagerGrant_StartGrant_End
20001Mary04/01/202203/31/2026

 

Expected table visul

 

ID20001
Grant ManagerMary
Grant_Start04/01/2022
Grant_End03/31/2026

 

Thanks,

Hank

 

  • Result

    chyang0107 I duplicated the table just for this example, you don't need to duplicate it. You first need to select all column and unpivot. For filter the table by ID i create a new column in PQ and use fill down. Power BI file attached.

    Power Query Transformation

    Unpivot Columns pbix.pbix

     

    Regards,

    Fahad Qadir

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

2 Replies

  • fahadqadir3's avatar
    fahadqadir3
    Solution Supplier

    Result

    chyang0107 I duplicated the table just for this example, you don't need to duplicate it. You first need to select all column and unpivot. For filter the table by ID i create a new column in PQ and use fill down. Power BI file attached.

    Power Query Transformation

    Unpivot Columns pbix.pbix

     

    Regards,

    Fahad Qadir

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

  • Hey Fahad,

     

    I appreciate your reply and insights. I am sorry to mislead you in my original post. My workflow (listed below) allowed the user to select a project by dropdown list, and then the final table visualization would demonstate the information associated from a wide and long table by the matching the id. It means the example in the first post was not the original table but the resulting table visualization.   

     

    Your insights on how to transpose the columns to rows based on my configuration would be appreciated.