Pull the "Current" item using GETAT


Author
Message
Bob Smith
Bob Smith
Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)
Group: Forum Members
Posts: 69, Visits: 1
I would like to use additional information about the "current" item in the data labels a line chart.

Here is some "sample" data:

DateTotalAction_Type
1/1/1310Restock
1/2/135Sale


I.E. I have a series of points in a step line chart. Each point represents a value and a date. On 1/1/13 "total" is equal to 10. On 1/2/13 "total" is equal to 5.

I can use the <value> data point to place the current value in a label on the data point.

I'd like to add the "Action" value to the data label so that the change in the "Total" between 1/1 and 1/2 is explained on the chart.

I can place "Fields!Action_Type" into the data label, but because I am referencing an array it only places "Restock" in the data label. I.E. Both instances on the step line chart will state "Restock" despite the fact that the change in inventory was due to a sale.

Is there some way to use the GETAT(arr, index) function and place the current "index" value into the index field in order to extract the action type of the current item?

It might look something like this:

="<value><br/>" + GETAT(Fields!Action_Type, CurrentItem)

Hypothetically this would return the following data labels:

10
Restock

5
Sale

I hope this question makes sense...

Reply
Bob Smith
Bob Smith
Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)Forum Guru (69 reputation)
Group: Forum Members
Posts: 69, Visits: 1

Excellent! That was most helpful. I'll have to keep that tucked away...

One more question relating to the X-axis on this chart. Currently the X-axis displays one entry for each timestamp in the sample data. What I would like to do is map the data to an X-axis based on the calendar year; instead of one tick mark for each data point on the X-axis, I would like one tick mark for each month of the year. There should be as many years represented as are present in the entire data set.

I've attached 2 GIF files that roughly approximate this... hopefully this will shed some light on what I am trying to accomplish.


Attachments
WY_Portion_Axis_Desired.gif (509 views, 4.00 KB)
WY_Portion_Axis_Current.gif (479 views, 5.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search