It's all about the answers!

Ask a question

Return Last Item from a Table


derry davis (23222016) | asked Aug 04 '10, 2:32 p.m.
I have a table with a set of numbers and dates. I'm only interested in the last number / date item in the results returned by a query. Any idea how I can get that single value out of the table and into a report through Report Studio? For example there is a list of numbers starting at 0 ending at 99. I only want to display the number 99 on a graph.
Thanks in advance.
Derry

3 answers



permanent link
Hardik Vora (162) | answered Aug 05 '10, 8:42 a.m.
Hey Derry,
You can try the "maximum" function in the report studio to create a measured data item and plot that on the graph.

permanent link
derry davis (23222016) | answered Aug 05 '10, 9:21 a.m.
Hey Derry,
You can try the "maximum" function in the report studio to create a measured data item and plot that on the graph.


Thanks Hardik. That works but it has to be on a filter. And you set the value to 1.

permanent link
derry davis (23222016) | answered Aug 05 '10, 2:44 p.m.
What we did to get a single value from a list was to set a filter on one of the incoming data items. It was a date type so we filter on the 'maximum' date value which gives the latest date. YMMV on other data types. Does any know if there is a function to retrieve an item based on index or some other attribute?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.