Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi Everyone,
I am trying to create a dax measure which takes my MonthYear column which is formatted YYYYMM and add the first day of each month to it so the new column will be YYYYDDMM format.
For e.g.
200009 -> 20000109
202004 -> 20200104
202008 -> 20200108
Right now my Year Month table is NVARCHAR /TEXT format 😞
I am bringing data from SAP HANA so my limitation is I can't use M/Power Query Transformations only DAX Measures.
Solved! Go to Solution.
Hi @Anonymous
try
Measure =
var _date = MAX('Table'[Date])
RETURN
FORMAT(DATE(VALUE(LEFT(_date,4)), VALUE(RIGHT(_date,2)),1), "YYYYDDMM")
Hi @Anonymous
try
Measure =
var _date = MAX('Table'[Date])
RETURN
FORMAT(DATE(VALUE(LEFT(_date,4)), VALUE(RIGHT(_date,2)),1), "YYYYDDMM")
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!