Dynamically position vertical StripLine in SSRS 2008 - charts

I am building a Control Chart where the user selects an interrupt date and I would like to place the StripLine immediately before that. So, let's say a user selects July 2009 as their interrupt date, I'd like to place the StripLine at June 2009. Based on how I got the image below it looks like I need to use index-based placement. How can I determine where on the chart June 2009 is? The user can also select the start and end dates so it would vary chart to chart.
If it matters the horizontal axis labels are MYYYY but the values are YYYYMM for sorting. In the image below I set the IntervalOffset to 3, not 72009 or 200907.
I have the following chart with (what is right now) a statically positioned vertical strip line.
SSRS is not my strength so please let me know if you need additional information.

OK this is pretty specific to my scenario but I figured I'd post the answer in case it can help someone else. Setting the expression for IntervalOffset to the following value worked:
=IIf(
Parameters!StartYear.Value = Parameters!InterruptYear.Value,
CInt(Parameters!InterruptMonth.Value - Parameters!StartMonth.Value),
CInt(
(CInt(Parameters!InterruptYear.Value)*12+CInt(Parameters!InterruptMonth.Value)) -
(CInt(Parameters!StartYear.Value)*12+CInt(Parameters!StartMonth.Value))
)
)

Related

Google Sheets conditional formatting with differently styled dates

in Google Sheets I'd like to format an area of cells automatically by comparing its date value to another cell. In fact, I have some cells representing a month (the area of cells to be formatted) and a single cell with another date (05.05.2022 formatted as 05.05. see screenshot).
So date for homework is located in U6 and cell area for moth of may is K11:Q16. When I set conditional formatting to
apply to range: K11:Q16
and
Date is: exact date: =U6 or custom formula is: =U6
it does not work. But when I set range to N12 (05.05.2022 formatted as 5) it does work.
Any ideas?
Thanks in advance.
edit:
I created a separate sheet for sharing, so this does not fit to the screenshot:
https://docs.google.com/spreadsheets/d/1gBx3dbzxk3Qb999uo3YMdz0A9-ViSE4xPeihhasN7FQ/edit?usp=sharing
try like this:
=COUNTIF($I$2:$I$5; D11)
or:
=MATCH(D11; $I$2:$I$5; )

Format output of formula field (which is used in charts etc.)

The output of my formula field is typically formatted like this:
Output of formula field
In my details I can switch this format to a number without any decimal points or thousand points:
Format in details without points
The problem is, that this changed format isnĀ“t displayed in the diagrams or cross tables later on:
Format failure in diagrams or cross tables
How can I fix this issue?
Thanks in advance!
Formatting charts can be confusing because of how varied the layout can be for each different type of chart. I find its is easier to format the display of a chart when you are previewing data on the chart because the layout for the chart in design view may not match what is output at runtime. While previewing the report you should be able to click on any value or label on the chart to select the object. You should see the four points around the object that allow you to resize the object once it is selected. Then you can right click on the object and select "Format Selected Object" or "Format Axis Label" on the menu. Then you should see a tab labeled "Number" where you will find options that allow you to control the formatting. The options found here will vary a little depending upon the object selected on the chart. If you need specific help with these options, it would be helpful if you could provide a screen shot of the window.

Accessing object that is below a floating object

Link to original post
Here is what I am facing.
I am using the 'sheet selector' technique to switch between two sheets and the sheet selector parameter is the 'PY' and 'Date Range' option.
I also want to hide the corresponding filters along with the sheets.
When I pick PY - the checkboxes will be displayed.
When I pick date range Rebate Commit Date will be displayed.
I was able to successfully hide PY option by setting it to 'Only relevant values'.
However that is not working for date range
So I used a floating object in a vertical container to hide the date range.
It is hiding successfully but when I need to access date range am not able to do that because of the floating object on top.
Any ideas are highly appreciated.
Thank you.
Answered in tableau community - Link

add shape dynamically to activereports

I've got a kinda requirement in which there is a kinda graph (static picture) on a page. In that picture I need to plot some points dynamically. That means using a shape filled with blue color. The number of points is floating depending upon the number of applicants choosen. How can I make it work or how can I add new elements to report at runtime. Am working in ASP.nET using VB and the AR version is 6.2
If I have understood your query right,then you want to plot some points depending on the dynamic data.
A suggestion would be to make use of Chart control in report. The chart can be bound to anything from a list to an array and the data can be changed dynamically from time to time.
Moreover,you can set the backcolor and other properties of the Chart control to give a look and feel of your choice.
Regards,
Mohita
Sorry if my question makes any confusion.. Actually I was able to make that. So am just sharing that code if it helpful for someone else.. I put this to the report start event. (We are not permitted to make this in details event)
Dim pic As New DataDynamics.ActiveReports.Picture
pic.Image = System.Drawing.Image.FromFile(HttpContext.Current.Server.MapPath(String.Format("~/images/circle.gif", cl)))
pic.SizeMode = SizeModes.Zoom
Detail1.Controls.Add(pic)

How do you know how much space an NSString (using default font) will occupy on a UITableView section header?

Basically I want to copy the behavior in iPhone's Calendar where the day of week (Mon, Tue, Wed) is on the left side of the table's section header (left justified) while the formatted date (Apr 1, 2010, May 1, 2010) based on locale is on the right side of the table's section header (right justified).
I was thinking of inserting a variable amount of space in between the day of week and formatted date but I first need to know the actual space consumed by the text on both sides to figure out how much space to add.
Hope to hear your thoughts on this.
Thanks.
There're some additions made in UIKit to NSString class, among them functions allowing to determine string size when drawing with specific font. See this function in docs for a start:
- (CGSize)sizeWithFont:(UIFont *)font
Maybe you could create a temporary UILabel, set your date string as text of the label and then get the width of the label through the frame property (--> label.size.width).