locked
show data label RRS feed

  • Question

  • hi,

    i want to show data label on  my line chart,but only last data label.

    i cannot use last in expression as 

    =RunningValue(Fields!total.Value,Sum,"Dataset1") in my data field.

    how can i get last value

    Tuesday, July 10, 2012 3:15 PM

Answers

  • Hi Tsql,

    Thank you for you posting again. If in this case you could change the expression to:
    =Iif(Fields!Column.Value=ReportItems!Textbox1.Value, RunningValue(Fields!Column.Value,Sum,"DataSet1"),"")

    Now the report looks like below:


    Please feel free to ask if you have anything unclear.

    Regards,
    Charlie Liao
    • Proposed as answer by RoneBI Thursday, July 12, 2012 10:19 AM
    • Marked as answer by tsql_new Thursday, July 12, 2012 7:35 PM
    Thursday, July 12, 2012 3:25 AM

All replies

  • Hey There,

    Wouldn't the last RunningValue of your expression (=RunningValue(Fields!total.Value,Sum,"Dataset1")) be same as the Sum of the dataset?

    SUM (Fields!total.Value, "DataSet1")

    Could you elaborate a little more on your scenario?

    Cheers,

    IceQB



    Please mark correct answers :)

    Tuesday, July 10, 2012 5:19 PM
  • ya

    but when i put this expression ,it will shows all the data label.i just want last data label.

    what condition do i need to put?

    Tuesday, July 10, 2012 6:17 PM
  • Hi Tsql,

    Please refer to the steps to achieve your requirement:
    1. Add a text-box to your report body and set the visibility property of the text-box to “Hide”, And then add an expression to the text-box like below:
       =Last(Fields!Column.Value, "DataSet1")
    2. In the “Series Label Properties” window, click the expression button and type in the expression below:
       =Iif(Fields!Column.Value=ReportItems!Textbox1.Value, "LastValue:" & Fields!Column.Value,"")

    The report looks like below:


    If you have any questions, please feel free to ask.

    Regards,
    Charlie Liao

    Wednesday, July 11, 2012 6:15 AM
  • hi,

    thanks ,but i am using runningvalue as a expression to show data,

    so it showing multiple 78 at the end,as it is cumulative.

    any idea how can i show unique value as the end

    Wednesday, July 11, 2012 9:02 PM
  • Hi Tsql,

    Thank you for you posting again. If in this case you could change the expression to:
    =Iif(Fields!Column.Value=ReportItems!Textbox1.Value, RunningValue(Fields!Column.Value,Sum,"DataSet1"),"")

    Now the report looks like below:


    Please feel free to ask if you have anything unclear.

    Regards,
    Charlie Liao
    • Proposed as answer by RoneBI Thursday, July 12, 2012 10:19 AM
    • Marked as answer by tsql_new Thursday, July 12, 2012 7:35 PM
    Thursday, July 12, 2012 3:25 AM