Reputation: 137
I've created a range bar chart using SSRS 2008.
It is a date range
StartDate is =DateAdd("yyyy",-2,Today())
EndDate is =DateAdd("yyyy",2,Today())
What I want to achieve is, I want the grid-line for only Today()'s date.
Is there any way to achieve it? I don't know what expressions to give for Interval properties.
Thanks!! Any help is appreciated.
Upvotes: 0
Views: 1634
Reputation: 26
Use StripLine to achieve this. View the properties for the horizontal axis. Locate StripLines and click on collections. Add a member and set to the following:
Set a Background Color (e.g. Green)
BorderStyle (e.g. Solid)
Interval: Auto
IntervalOffset: =Today().ToOADate
IntervalOffsetType: Days
IntervalType: Years
StripWidth: .5
StripWidthType: Days
Upvotes: 1
Reputation: 2016
I do not think there is direct way achieving your goal. However, you could use calculated value and use it as a tiny bar chart.
=IIF(Format(Fields!timeStart.Value, "Short Date")=Format(Today(),"Short Date"), "Red", "White")
Your new chart should look something like this:
Upvotes: 0