Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Isolate part of string value in report builder - SSRS

$
0
0
In a report I am using a field called fields!strvalue.valueWhen I put it into my report, the field splits into three data parts:Column heading is strvalue then the data appears like this:08:00 - 12:001, Smith Street17, Jones Street98, The Mews13:00 - 18:00142, Smith AvenueMrs SmithTherefore it mixes the time and address values. Name appears at the bottom.Ideally I would like to sort by time: 08:00 - 12:00 (first column) addresses (second column) name (third column)I have tried various methods, eg =Left(Fields!strvalue.value,InStr(Fields!strvalue.value & ",",",")-1) in an attempt to isolate the time part. However when I do this, all three parts still appear in the report. I am not sure how to isolate just this one part.I want to isolate the time part to help sort the report and to also set a parameter that runs off the time part.Any advice on how to achieve this would be greatly appreciated: thanks. I keep thinking I am close to cracking it, but nothing seems to work - whatever I try, all three data parts keep appearing.

Viewing all articles
Browse latest Browse all 2791

Trending Articles