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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mohsin-raza
Helper III
Helper III

Conversion/Normalization of data in Tabular form

 

 

Hello:

 

Can some body help me in conversion data in given form into proper tablular form in  power query? Is this related to  the  concept of pivot and unpivot data. 

 

registrationNumberAYH566
archiveStatus0
countryUK
customLabelAYH566 - VPU 330
registrationNumberALG322
archiveStatus0
countryAL
customLabelALG322 - SBLB-129
registrationNumberAKY758
archiveStatus0
countryUSA
customLabelAKY758 - 1648 hdm -
registrationNumberAKA749
archiveStatus0
countryFR
customLabelAKA749 VW  2KN
registrationNumberALK431
archiveStatus0
countryUK
customLabelALK431 -4MNB
registrationNumberAMK483
archiveStatus0
countryUK
customLabelAMK483 -  VPU 330
1 ACCEPTED SOLUTION
SergioSilvaPT
Resolver V
Resolver V

Hi @mohsin-raza 

 

You must do the following:

 

This is your source:

SergioSilvaPT_0-1653386689048.png

Click in Add Column -> Index Column and you get this:

 

SergioSilvaPT_1-1653386734974.png

Then select Index and (blank) columns and go to Transform and click on Pivot Column :

 

SergioSilvaPT_0-1653391194443.png

and you will get this:

SergioSilvaPT_1-1653391211946.png

 

Remove the Index column by right clicking and chosing Remove Column.

It's done!

 

You can replace all the null with blank by selecting all columns and go to Transform -> Replace Values

SergioSilvaPT_2-1653391389566.png

 

Regards,

Sérgio Silva 

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

 

Regards,
Sérgio Silva

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

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/

View solution in original post

5 REPLIES 5
mohsin-raza
Helper III
Helper III

@SergioSilvaPT  

Thanks alot . It works and with more query steps ,the data is  tabular form now

.

Glad i could help!

Regards,
Sérgio Silva

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

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/
SergioSilvaPT
Resolver V
Resolver V

Hi @mohsin-raza 

 

You must do the following:

 

This is your source:

SergioSilvaPT_0-1653386689048.png

Click in Add Column -> Index Column and you get this:

 

SergioSilvaPT_1-1653386734974.png

Then select Index and (blank) columns and go to Transform and click on Pivot Column :

 

SergioSilvaPT_0-1653391194443.png

and you will get this:

SergioSilvaPT_1-1653391211946.png

 

Remove the Index column by right clicking and chosing Remove Column.

It's done!

 

You can replace all the null with blank by selecting all columns and go to Transform -> Replace Values

SergioSilvaPT_2-1653391389566.png

 

Regards,

Sérgio Silva 

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

 

Regards,
Sérgio Silva

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

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/

@SergioSilvaPT 

 Thanks for the solution . It looks very fine with the result you produced .

 

In step 2 when i select blank and index and chose Pivot column . I am not getting the same result. Pivot column also ask for choice of column ?

mohsinraza_0-1653390833387.png

On selecting  any of the column  i am not getting the same answer..

can you see  it?

 

 and 

Sorry @mohsin-raza i have updated my post.

Please check it again!

Regards,
Sérgio Silva

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

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.