[英]SSRS CountRows with leading zeros
At the end of my file I need to include this line 在文件末尾,我需要包括这一行
TRYYYYMMDDYYYYMMDD000000000 TRYYYYMMDDYYYYMMDD000000000
Here is what I have so far: 这是我到目前为止的内容:
="TR"+REPLACE(TODAY(), "/", "")+REPLACE(TODAY(), "/", "")+CountRows().ToString() =“ TR” + REPLACE(TODAY(),“ /”,“”)+ REPLACE(TODAY(),“ /”,“”)+ CountRows()。ToString()
How do I add the leading zero's before the CountRows()? 如何在CountRows()之前添加前导零? There should be 9 digits total for the row count.
行数总计应为9位。
My current record returns 28 rows so it should look like 000000028 我当前的记录返回28行,因此它应该看起来像是000000028
TR2013102320131023000000028 TR2013102320131023000000028
我认为应该这样做: right("0000000000000000000"+ CountRows().ToString(), 9)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.