Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
There are values in my column that are both numeric and alphabetical. If the first 4 characters are numbers, I must separate them. If not, I must leave the value alone.
Please consider the following, for instance:
1111 Grape | Grape |
9999 Apple | Apple |
8888 18 Mango | 18 Mango |
7777 Orange 10 | Orange 10 |
Strawberry Fruit | Strawberry Fruit |
Please advise?
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a calculated column.
Expected result CC =
VAR _length =
LEN ( Data[Column A] )
RETURN
IF (
NOT ISERROR ( INT ( LEFT ( Data[Column A], 4 ) ) ),
RIGHT ( Data[Column A], _length - 5 ),
Data[Column A]
)
Hi,
Please check the below picture and the attached pbix file.
It is for creating a calculated column.
Expected result CC =
VAR _length =
LEN ( Data[Column A] )
RETURN
IF (
NOT ISERROR ( INT ( LEFT ( Data[Column A], 4 ) ) ),
RIGHT ( Data[Column A], _length - 5 ),
Data[Column A]
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
19 | |
17 | |
12 | |
9 | |
9 |