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
What should the formula in Power BI look like if you always wanted to take the first two digits and if the second digit is a minus then the third and fourth digits as you can see in the attached screenshot.
Solved! Go to Solution.
@Anonymous , try this calculated column:
NewColumn =
IF(
MID('Table'[ExistingColumn', 2, 1) = "-",
MID('Table'[ExistingColumn', 3, 2,
LEFT('Table'[ExistingColumn',2)
)
@Anonymous , try this calculated column:
NewColumn =
IF(
MID('Table'[ExistingColumn', 2, 1) = "-",
MID('Table'[ExistingColumn', 3, 2,
LEFT('Table'[ExistingColumn',2)
)
@Anonymous , if my suggestion solved the problem you posted, then please mark the answer a Accept As Soultion. This helps other members that are searching for the same or similar problem know what worked.
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 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |