Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Formatting a table column into multiple lines

Im looking to either do this in DAX or Power query to create a new table where some of the colums need to become a row and duplicate some of the information in the row against the column.

 

Maybe easier to show in the example

 

Original Data        
NameStatusRatingScoreID1ID2ID3ID4ID5Date
ABCExpiredLow1302345212123123131224 1/01/2020
EFGAcceptedHigh154567    1/01/2020
HIJAcceptedMedium120678908   1/01/2020
KLMAcceptedHigh110     1/01/2020
          
          
Outcome         
NoNameStatusRatingScoreDate    
23452ABCExpiredLow1301/01/2020    
12123ABCExpiredLow1301/01/2020    
1231ABCExpiredLow1301/01/2020    
31224ABCExpiredLow1301/01/2020    
4567EFGAcceptedHigh152/01/2020    
678HIJAcceptedMedium1203/01/2020    
908HIJAcceptedMedium1204/01/2020    
1 ACCEPTED SOLUTION
SamInogic
Super User
Super User

Hi @Anonymous ,

 

You can below steps to achieve the required outcome,

  1. Open your table in Power Query Editor as shown in below screenshot,

    pict1.png
  2. Select the columns >> ID1, ID2, ID3, ID4 >> click on transform menu from menu bar >> Click on Unpivot Selected Columns option. Please refer to the below screenshot for the same.

    pict2.png

  3. This will create two new columns as Attribute and Value. Rename the Value Column as “No”.

    pict3.png
  4. Now Close and Apply the changes and add the table on the report with required columns as shown in the below screenshot.
    pict4.png

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

1 REPLY 1
SamInogic
Super User
Super User

Hi @Anonymous ,

 

You can below steps to achieve the required outcome,

  1. Open your table in Power Query Editor as shown in below screenshot,

    pict1.png
  2. Select the columns >> ID1, ID2, ID3, ID4 >> click on transform menu from menu bar >> Click on Unpivot Selected Columns option. Please refer to the below screenshot for the same.

    pict2.png

  3. This will create two new columns as Attribute and Value. Rename the Value Column as “No”.

    pict3.png
  4. Now Close and Apply the changes and add the table on the report with required columns as shown in the below screenshot.
    pict4.png

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.