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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello, hope everyone had a good new years! Still a fairly new user to PBI, so help would be much appreciated!
I have used concatenate measure, but never with 4 other column formulas. How would this be translated from SQL to DAX measure?
DATE(SUBSTR(DIGITS(TABLE1),4,2) CONCAT '/' CONCAT SUBSTR(DIGITS(TABLE1),4,2) CONCAT '/ CONCAT SUBSTR(DIGITS(TABLE1),2,2)) AS MEASURE1
Solved! Go to Solution.
This would probably be better to do in PowerQuery than DAX but if you do need it in DAX, use MID instead of SUBSTR.
DATE (
MID ( Table1[Col1], 1, 4 ),
MID ( Table1[Col1], 5, 2 ),
MID ( Table1[Col1], 7, 2 )
)
If Table1[Col1] = 20231231, then the above should output 12/31/2023 as a date.
This would probably be better to do in PowerQuery than DAX but if you do need it in DAX, use MID instead of SUBSTR.
DATE (
MID ( Table1[Col1], 1, 4 ),
MID ( Table1[Col1], 5, 2 ),
MID ( Table1[Col1], 7, 2 )
)
If Table1[Col1] = 20231231, then the above should output 12/31/2023 as a date.
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!
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |
| User | Count |
|---|---|
| 26 | |
| 22 | |
| 19 | |
| 17 | |
| 10 |