Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I am trying to create a calculated column in a calculated table, where i have the data as follows:
Project Number
O1234
O2345
O3456
I want to create a new column where i would have the same last 4 digits but starting with letter "C" in the same table.
For example,
Project Number C Project Number
O1234 C1234
O2345 C2345
O3456 C3456
Can someone please help me with this query.
Thanks.
Hi @kunal_mehta1 ,
How about this:
And here the code in DAX for a calculated column:
CalcColumn = "C" & RIGHT ( 'Table'[Project Number], 4 )
Probably DAX is not the right tool for this task since it appears you are trying to cleanse the data. Consider doing such things in Power Query instead if that suits your approach. I can help you with that as well if you like.
Let me know 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |