Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

connecting multiple dates in 1 table to a date table

Hi All,

 

I have a table which has a createdate and deliverydate. I want to connect both of these to a date table. I am able to connect mt createdate but when i try to create a relationship between deliverdate and datetabel it shows the following message

Thanks

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Option 1 - Try to set relationship direction to Single

    Option 2 - Create summarized table with deliver date and build relationship with that table from your master table

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous , 

     

    You can create an active relationship between createdate and date in datetable and an inactive relationship between deliverdate and date in datetable. Use USERELATIONSHIP function when you need the relationship between deliverdate and date in datetable. For more details, please refer to https://docs.microsoft.com/en-us/dax/userelationship-function-dax

     

    Or you can use TREATAS function without create inactive relationship between deliverdate and date in datetable. It can  apply filter from unrelated table. For more details, please refer to https://docs.microsoft.com/en-us/dax/treatas-function

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai