Forum Discussion

mceldon's avatar
mceldon
Regular Visitor
10 years ago
Solved

Tables with multiple date fields

Hi,

 

I have a single 'Incidents' table that has multiple date fields e.g. "CreatedOn" and "ClosedOn".

 

I've already hooked these fields up as foreign keys to a sinlge Date table which happily drives the behaviour I need for "CreatedOn" - thing is I don't understand how to do the same for the other date fields as I'm not sure how I allow for the differentiation - how can this be accomplished ?

 

Here's a snip for refernce;

 

 

5 Replies

    • mceldon's avatar
      mceldon
      Regular Visitor

      It was the limitation you mention that was causing an issue and i have overlooked. I reserched more the date table generation and now understand that date tables are generated for each date field auotmatically with an option to create my own using the AutoCalendar function. 

       

      Thanks,

       

      SJM

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    mceldon can you ellaborate more on your issue ? what you're trying to do for the differentiation ?

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi mceldon,

     

    What do you mean about "I don't understand how to do the same for the other date fields as I'm not sure how I allow for the differentiation"? It would be better if you could provide more information, so that we can understand the requirement clearly. :smileyhappy:

     

    In your scenario,  as you mentioned 'Incidents' table contains many date fields and you have built relationship between 'Incidents' table and Date table based on CreatedOn" and "ClosedOn" fields, other date fields in 'Incidents' table can also interact with Date table. Please take a look at this article: Create and manage relationships in Power BI Desktop .

     

    If you have any question, please feel free to ask.

     

    Best Regards,
    Qiuyun Yu