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
Hello guys,
I have a couple of columns I have created using this formula:
Solved! Go to Solution.
Hi,
Share some data and show the expected result.
Hi @Mukombo ,
Judging from the screenshots you provided, it's easy to remove County. You only need to modify it as follows
County =
VAR tt =
LOOKUPVALUE (
'organisation units'[org unit],
'organisation units'[org unit Id], PATHITEM ( 'organisation units'[Path], 3 )
)
RETURN
LEFT ( tt, LEN ( tt ) - 6 )
Or create a new calculated column like
NewCounty =
LEFT ( [County], LEN ( County ) - 6 )
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share some data and show the expected result.
Thanks Ashish,
Though it did not solve my issue from the explanation in the document. But i learned new ideas from the same.
Dear Ashish, Thank you for reaching out. See the screenshot below. What i do not want is the "County" to appear in the text.
Hi @Mukombo ,
Judging from the screenshots you provided, it's easy to remove County. You only need to modify it as follows
County =
VAR tt =
LOOKUPVALUE (
'organisation units'[org unit],
'organisation units'[org unit Id], PATHITEM ( 'organisation units'[Path], 3 )
)
RETURN
LEFT ( tt, LEN ( tt ) - 6 )
Or create a new calculated column like
NewCounty =
LEFT ( [County], LEN ( County ) - 6 )
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey Stephen, this was very helpful. thanks a million!
Hi,
Please use the SUBSTITUTE function - SUBSTITUTE function (DAX)
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 |
|---|---|
| 97 | |
| 74 | |
| 50 | |
| 49 | |
| 44 |