简体   繁体   English

获取SSRS表达式中的第二个字母

[英]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 我的字段是=Fields!machine.Value

I would use the following 我将使用以下

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

That will give you the second charcter in the string. 这将为您提供字符串中的第二个字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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