Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
1 year ago
Solved

Unified Date Filter

Good morning Community, hoping you are well I need help with the following I have a model where I have several columns of dates associated with events, by several I mean 5 or more, These dates...
  • danextian's avatar
    1 year ago

    Hi Syndicate_Admin 

    If a single table contains multiple date columns with potentially different values in the same row, it’s best to use a dedicated dates dimension table. You can then create multiple relationships from each date column to the dates table—one active (since only one active relationship is allowed at a time) and the rest as inactive. Use USERELATIONSHIP in a measure to invoke it. Similarly, if you have multiple tables and want them to be filtered by a common date field, you should use the same approach with the shared date dimension.

     

    Those with broken lines in the image below are inactaive relationships

    Please see the attached pbix for details.