Forum Discussion
Manage relationships
- Anonymous9 years ago
You could either filter that row(s) or replace the value with some other date to make it work. Both these options are done in the query editor before you load the table. Click on Edit Queries to open the query editor.
I think that the problem is that the column Accrual.period.Month is of "Data Type" text. Anyome knows hot to convert 201602 (text type) to a date type?
- Anonymous9 years agoNot applicable
You could create a new column in your Accounting table which will act as key for your relationship to your date table.
DateKey = DATEVALUE(LEFT(Accounting[Accrual Period.Month],4)&"-"&RIGHT([Accrual Period.Month],2)&"-01")
This will extract the year and month from your existing column and append 01 as the first day of that month.
Br,
Magnus- Nazeem9 years agoFrequent Visitor
Thanks for the reply,
I get the following error message when eneterting your code:
I think it's because there is a date value in column Accrual Period:Month that is Unknown
Any clue how to solve this?
Thanks
- Anonymous9 years agoNot applicable
You could either filter that row(s) or replace the value with some other date to make it work. Both these options are done in the query editor before you load the table. Click on Edit Queries to open the query editor.