Forum Discussion
Dates Table Relationship
- Anonymous8 years ago
Could you please share sample data of your invoices table here?
As other's post, does the createdon column contain datetime values and you manually change the data type of the column to date? If so, the above issue will occur. You can create a calculated columns using dax below. Then create relationship between the new column and date column of dates table.newCreatedon=DATE( YEAR(invoices[createdon]) , MONTH( invoices[createdon] ), DAY( invoices[createdon]))
Regards,
Lydia
Could you please share sample data of your invoices table here?
As other's post, does the createdon column contain datetime values and you manually change the data type of the column to date? If so, the above issue will occur. You can create a calculated columns using dax below. Then create relationship between the new column and date column of dates table.
newCreatedon=DATE( YEAR(invoices[createdon]) , MONTH( invoices[createdon] ), DAY( invoices[createdon]))
Regards,
Lydia
Thank you Anonymous ! This was very helpful. In PowerBi Desktop (April 2020) , you could also use Date.From.