Forum Discussion

DanieleR's avatar
DanieleR
New Member
1 year ago
Solved

Help Needed with Power BI Data Modeling

Hello everyone, I'm new to this forum and to Power BI and trying to understand how to properly model my data to analyze economic inequalities in a country. I have several datasets, and the structure...
  • Royel's avatar
    1 year ago

    Hi DanieleR , to overcome this, you need to do some modeling. 

     

    At first, let's rebuild SalaryData with these columns 

    Town_CodeGenderKeyCategoryKeySalary
    abcde2119.1
    abcde2213.2
    abcde249.7
    abcde1618.6

     

    Now, we need to create a bridge table that handles both job type and age group 

    DimCategory

    CategoryKeyCategoryTypeCategoryNameSortOrder
    1JobTypeExecutives1
    2JobTypeMid_Managers2
    3JobTypeEmployees3
    4AgeGroup18to2510
    5AgeGroup26to4911
    6AgeGroup50plus12


    We have location informations so create another table for that

    DimTown 

    Town_CodeTownNameDepartmentRegion
    abcdeParisParisÎle-de-France
    fghijLyonRhôneAuvergne-Rhône
    klmnoMarseilleBouches-du-Rhône

    Provence-Alpes-Côte

     

    and To get the gender Create another table 

    DimGender

    GenderKeyGender
    1Male
    2Female


    And, finally create this relationship with your other old tables 

    SalaryData → DimCategory (CategoryKey)
    SalaryData → DimTown (Town_Code)
    SalaryData → DimGender (Sexe)
    Population → DimTown (Town_Code)
    Enterprises → DimTown (Town_Code)

    Now, you have an organized model to answer your all queries. 

    If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!