The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all
I have a dimDateEntry with the format yyyymmdd , as integer.
But now I need to add a new date format column in SSAS, with that date.
I already try the follow code that returns a error : =FORMAT('Table'[dimDateEntry];"mm/dd/yyyy")
or even
=DAY('Table'[dimDateEntry]) & "/" & MONTH('Table'[dimDateEntry]) & "/" & YEAR('Table'[dimDateEntry])
Solved! Go to Solution.
Hi @Anonymous ,
Create a column with below code:-
Column =
var _year = MID([Date],1,4)
var _month = MID([Date],5,2)
var _day = MID([Date],7,2)
return DATE(_year,_month,_day)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous ,
Create a column with below code:-
Column =
var _year = MID([Date],1,4)
var _month = MID([Date],5,2)
var _day = MID([Date],7,2)
return DATE(_year,_month,_day)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |