Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hey !
I would need help translating this which works well in Excel but not in Power Bi
I have a social security number ex 19791203 where I create a format so that I can calculate the age 1979-12-03
The formula in Excel is =DATE(LEFT(O47;4);EXTEXT(O47;5;2);EXTEXT(O47;7;2)
How do I turn this into a DAX formula?
Solved! Go to Solution.
Hi,
Please see the below picture and the attached pbix file.
I tried to create a sample pbix file like beow.
It is for creating a new column.
Convert to date CC =
VAR _year =
LEFT ( Data[Social security number], 4 )
VAR _month =
MID ( Data[Social security number], 5, 2 )
VAR _date =
RIGHT ( Data[Social security number], 2 )
RETURN
DATE ( _year, _month, _date )
Hi,
Please see the below picture and the attached pbix file.
I tried to create a sample pbix file like beow.
It is for creating a new column.
Convert to date CC =
VAR _year =
LEFT ( Data[Social security number], 4 )
VAR _month =
MID ( Data[Social security number], 5, 2 )
VAR _date =
RIGHT ( Data[Social security number], 2 )
RETURN
DATE ( _year, _month, _date )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 15 | |
| 8 | |
| 8 | |
| 8 |