Forum Discussion

AshDil's avatar
AshDil
Icon for Helper V rankHelper V
5 years ago
Solved

Manage Relationship between Fact table not having Date column and Calendar table

Hi,   I have data as follows:   Calendar table:   want to establish connection between the above fact table and calendar table which I created in Power BI. Please help me to do.   ...
  • TomMartens's avatar
    5 years ago

    Hey AshDil ,

     

    first you have to transform the months columns in your fact table into two attribute (month)/value combination using the Unpivot operation in Power Query. Here you will find one of the many articles describing what Unpivoting means: Unpivot Columns in Power BI - New Tech Dojo

     

    Then create another column that will finally hold a date column, this date column then is allowing to relate the fact table with your calendar table.

     

    If you need more help, please create a Power BI file that contains some sample data but still reflects your data model, upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data, share the xlsx as well.

     

    Regards,

    Tom