Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
sdocimo
New Member

Character Number Validation

Hi!

I am working with KPIs and one of them needs two validations:

1) The cell from the source file shouldn't be blank

2) We have to take into consideration that, since this is a live file and it's changing multiple times in a day, sometimes the users populate the field with single characters like 1, A, etcetera.

What I thought would be a workaround was to use the LEN function to validate if the field (BCIT Clients) has more than 1 character.

I tried using it but it seems that I need to parse it first. Is there a function that can count characters from a string? I appreciate your help on this matter.

 

sdocimo_0-1695738972602.png

 

2 REPLIES 2
sdocimo
New Member

@Greg_Deckler I didn't notice that. Thank you!!

Greg_Deckler
Super User
Super User

@sdocimo You have a parenthesis problem:

 

IF( OR ( LEN( [BCIT Clients ) > 1, NOT ( ISBLANK( [BCIT Clients ) ) ), [Approved], 0 )



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.