简体   繁体   中英

Get second letter in expression in SSRS

I have a list of machines listed like so:

M101
M102
M201
M202
M203

What I desire to return is

1
1
2
2
2

My question is how would I extract my desired return of the second charcter from my group expression? My field is =Fields!machine.Value

I would use the following

=MID(Fields!machine.Value,2,1)

That will give you the second charcter in the string.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM