Forum Discussion

cathoms's avatar
cathoms
Responsive Resident
5 years ago
Solved

Combine data across multiple columns

Hello,   I have a flat file that I am working to shape into multiple tables in order to create a star schema. I have a few columns that use the same name and ID number system but they are split int...
  • HotChilli's avatar
    5 years ago

    1) You can create one dimension table (it's called a role-playing dimension).  You would create one active relationship to the fact table and one inactive relationship.  When you write a measure you state which relationship to use.

    However, if the dimension table is relatively small, you can use 2 versions of the table (DimDischargeDept and DimAdmitDept) - the DAX will be simpler and you can put either or both slicers in a report.  You would use 2 active relationships.

     

    2) Is this to create the Dimension table?  If so, you would do this in Power Query, just create a table from the Distinct values from the first 2 columns and then append the distinct values from the other 2 columns