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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Bug or not?

 
 
Version = SWITCH(
TRUE(),
( SEARCH("7", default[Flowsheet],,0) > 0), MID("7",1,5),
( SEARCH("8", default[Flowsheet],,0) > 0), "My folder", "Ohter software")
 
Too few arguments were passed to the MID function. The minimum argument count for the function is 3.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

I fixed this by using double commas

 

 

MID(default[Flowsheet],9,,5)

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Anonymous 

looks like bug with the locale. 

im using ";" not "," as delimiter and for its working good

mid("7";1;5)

bytheway, why dont you use LEFT function if you are trying to get first 5 symbols?

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

I fixed this by using double commas

 

 

MID(default[Flowsheet],9,,5)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.