Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

How to Fix the relationship with my date table?

Hi,  I have a date table. I have another table that is line level sales detail. I have a one to many relationship between Invoice Date to Date (in the date table) I need the table to show the D...
  • Anonymous's avatar
    Anonymous
    1 year ago

    I figured it out!

    the date field includes time information (e.g., a timestamp), Power BI might treat each unique timestamp as a separate day.

    So I created a new date column
    Invoice Date = 

    DATE(YEAR('OVH Sales'[INVOICE DATE]), MONTH([INVOICE DATE]), DAY([INVOICE DATE]))


    Then changed the relationship to this new date and now it works.