Reputation:
Invoice number beginning with INV
, but without the INV
prefix.
My task is not to show the INV
prefix in my report file. The current expression in SSRS is =First(Fields!InvoiceNumber.Value, "InvoiceDataSet")
.
I was wondering if there is a condition I could add in SSRS or change the expression to hide or not show the INV
, however show the rest of the number i.e. to remove strings?
Trying to do something like =Left(Fields!InvoiceNumber.Value, len(Fields!InvoiceNumber.Value)-3) "InvoiceDataSet")
Upvotes: 4
Views: 7949
Reputation: 2507
Your almost there. Change LEFT
to RIGHT
.
=Right(First(Fields!InvoiceNumber.Value, "InvoiceDataSet"), Len(First(Fields!InvoiceNumber.Value, "InvoiceDataSet"))-3)
Upvotes: 4