Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am trying to create a conditional column in a report that takes a value from another column and identifies it by the number of text characters in the string.
Example -
AB1234 = 2 text characters
Once this has been done I need to allocate a job type based on that number
Example -
2 = Job 1
I know I can use text.select to extract the text and text.length to count but don't want to create lots of extra column on a already big table.
Can anyone help me?
Hi SamanthaBowdell
This will count the number of alpha characters in a string that also contains numbers. Create a custom column and paste in the below:
=Text.Length(Text.Select([Column1], {"a".."z"}))
Column1 is the name of the column you want to obtain the count from. Does this help?
Neil
You could then have a separate table with the job numbers and descriptions, and then merge the tables on the job number to get the job description.
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 |
---|---|
16 | |
10 | |
10 | |
8 | |
7 |