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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
D_J
New Member

Need help regarding MID function

D_J_0-1694663928844.png

 

Why i am getting error in this , could anyone please help

 

1 ACCEPTED SOLUTION
nirali_arora
Resolver II
Resolver II

Mid don't take '0' so please handle the case using the following formula

Column = var _yo = SEARCH("yo",[City],,0)*1

var _mid = if(_yo>0, MID([City],_yo,1),BLANK())

return _mid

View solution in original post

1 REPLY 1
nirali_arora
Resolver II
Resolver II

Mid don't take '0' so please handle the case using the following formula

Column = var _yo = SEARCH("yo",[City],,0)*1

var _mid = if(_yo>0, MID([City],_yo,1),BLANK())

return _mid

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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