Forum Discussion

jcamilo1985's avatar
jcamilo1985
Helper III
5 years ago
Solved

information standardization

good morning experts very recently I have been facing a professional challenge with production data. I am nervous because things are not going as I would like, so all the help you can give me, I wil...
  • edhans's avatar
    5 years ago

    Hi jcamilo1985 , 

    It is hard to say specifically as I don't know what your end goal is, but as a general rule values should be unpivoted and leave text fields alone. That is not a hard and fast rule, just a general rule. What I did:

    1. Converted your YYYYMM to a true date field for the end of the month. This will make relating to a true date table a snap.
    2. Set the data type for all other fields as text or integer. You can set the latter to number if you need decimals, but none of your data appeared to have that.
    3. Kept the date and text fields, and unpivoted all other fields.

     

    See the file attached here which should get you started. See the "normalized" tab for the work I did. You can see the transformations in Power Query itself. There is an article below on normalizing, as well as the importance of a Star Schema in Power BI, of which getting your table normalized is key, so you are definitely on the right track.

     

    What is normalizing data?
    See the Normalizing an example table section of this paper

    Microsoft Guidance on Importance of Star Schema

     

    If you have more specific needs in visuals or calculations, please post back with some expected results and we can assist in tweaking how the data is normalized for your specific model.