Forum Discussion
Dax time intelligence functions not working
- Anonymous9 years ago
Hi Anonymous,
Please help to post sample data and your expected result. If you want to use DATEVALUE function and CONCATENATE function in Power BI Desktop, you can review the following example.
Right click you table and choose “New column”, then you can write the following formula to return date values.
Column = DATEVALUE(CONCATENATE(CONCATENATE(CONCATENATE(Table1[Month],"/"),CONCATENATE(Table1[Day],"/")),Table1[Year]))
Column1 = DATEVALUE(CONCATENATE(CONCATENATE(CONCATENATE(Table1[Month],"/"),CONCATENATE("01","/")),Table1[Year]))
Thanks,
Lydia Zhang
Thanks for getting back, I was using calcode to link the tables which is whole number made up of year and month combined and in each row I have the relevent date that it refers to.
I have thought though about converting the date time to a date and then link it that way but not sure of the syntax.
Something like....
Column = DATEVALUE("01/"& CONCATENATE(Transactions[trans_period],"/"&Transactions[nlyear]))))
But that doesnt work.
Any help appreciated.
Hi Anonymous,
Please help to post sample data and your expected result. If you want to use DATEVALUE function and CONCATENATE function in Power BI Desktop, you can review the following example.
Right click you table and choose “New column”, then you can write the following formula to return date values.
Column = DATEVALUE(CONCATENATE(CONCATENATE(CONCATENATE(Table1[Month],"/"),CONCATENATE(Table1[Day],"/")),Table1[Year]))
Column1 = DATEVALUE(CONCATENATE(CONCATENATE(CONCATENATE(Table1[Month],"/"),CONCATENATE("01","/")),Table1[Year]))
Thanks,
Lydia Zhang
- Anonymous9 years agoNot applicable
Brill thanks Lydia