SSRS BIDS 2008 Reporting Expression for years in X Axis - sql-server

![I have a bubble chart which I would now like to add an X Axis to ranging from 1/1/10 to 1/1/13 as seen in the belowimage.
I would like to have the years along the bottom showing every 6 months, is there some way of expressing this in the interval box?

If you want it every 6 months you put 6 in the Interval box and then change the Interval type box to Months.

Related

Draw Pivot (Camarilla) for a specific duration

I need Camarilla Pivot points to be drawn for a specific duration - say 3or 5 days, 3 weeks or 2 months. Can someone help ?

Keep observations that appear consecutively 5 years before and after the event

I have an unbalanced panel dataset in Stata and am conducting an event study. The variable window counts years before or after the event happens for each firm. I want to keep only those firms that are observed for the window [-5, 5]. In the example dataset below, that means that id=1 should be kept in the data and id=2 should be dropped because two years before the event the id was not observed, that is window = -2 is absent.
How to write a loop that keeps units that are observed only for -5 to 5 consecutive years before and after the event, so to make the data balanced in Stata?
Example
The criterion is that observations are present for all the years in each window -5(1)5, which is that the result of
egen count = total(inrange(window, -5, 5)), by(id)
is always 11, so that you perhaps proceed with
keep if count == 11
keep if inrange(window, -5, 5)
No loops needed.

Data Studio Time Series cutting of X axis (too many data points)

Working on a time series graph in data studio, and it seems whenever 3 years are chosen (2016-2019), the graph shifts left to show from the initial and only goes up to 2018.
Aggregation on the weekly level is showing fine, however, daily is causing this issue. Even playing around with x axis styling isn't sufficient.
I have 2 line series and a bar series.
Has anyone come across this issue?
Well, it looked like the bar series was taking too much space visually. After changing it to a line series, it is working fine.

Rainbow colours to every row in the ssrs report in the same order upto last row

How to give Rainbow colours to every 7 rows in the ssrs report in the same order upto last row ?
How to write that expression?
Can anyone help me out.
Thanks in advance
You can do this easily using CHOOSE.
=choose((ROWNUMBER(NOTHING) MOD 7)+1 , "LIGHTBLUE","Yellow", "SILVER","Red", "Green", "Blue", "Orange")
First we get the ROWNUMBER do a MOD 7 (divide it by 7 and find the remainder) . This will give us a number from 0 to 6 so then we add one to this result as CHOOSE is 1 based, then simply supply a list of colours as the choice list.

Lock scale on multiple axis ssrs

I have a chart in SSRS (reporting services) that is using both the primary and secondary y axis to plot 4 different years of data. I am also using a series group for multiple values stacked. The problem that I am having is that the 2 axis's are not using the same scale so the numbers look like they don't match the table that is also on this report. How can I lock the 2 axis's so they use the same scale. I would like to still use auto axis if possible so I don't have to calculate the max and min myself.
Right click an axis and select "Axis Properties". In the Axis Options tab you can set the minimum and maximum values of the axis, you want these values to be set to a value (Not Auto) and for both graphs to hold the same values. This is to say for example that a minimum = 0 and maximum = 10 that the graph will start at 0 and end at 10 , if you have a value of 11 it will just hit the top of the graph. You will also want to set the interval. An interval of 1 would make the axis read 0,1,2,3 etc, an interval of 2 would make it go 0,2,4,6 etc and again you want the same value set on both graphs.

Resources