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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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