Quantcast
Channel: SQL Server Reporting Services, Power View Forum
Viewing all articles
Browse latest Browse all 4035

How to customize the x-axis labels when data is date format

$
0
0

Hi All,

I need to customize x-axis label for a line chart.
From database i am getting a minimum value of feb-91 & max value of sep-12.
And appling the same values to x-axis with an interval of 6-months.
And i need to start my graph x-axis value from sep-90 and end value will be sep-12 with an interval of 6months,

The Properties for X-axis i Used are
 
 Horizontal axis --> Axis options--> axis type--> Scaler(numbers/date)
 minimum value
 Expression i am using for stting a min value in x axis are:
=Cdate(cstr(last(Fields!Month_Num.Value))+"-01-"+cstr(Min(Fields!Year.Value)-1))
Maximum value:
Expression i am using for stting a max value in x axis are:
=Cdate(cstr(last(Fields!Month_Num.Value))+"-01-"+cstr(Max(Fields!Year.Value)))
Interval 6
Interval type -->Months
Horizontal axis  --> Number --> custom--> custom format ("MMM-yy")

BY using the Above Min Value Expression x axis of the graph will start from "sep-90" but minimum value in x axis starts from Jan -91

Could any body help me with this issue how can we set the X-axis starts from Minimum Value .

Thanks,

Gowri.J


Viewing all articles
Browse latest Browse all 4035

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>