reporting-serviceslinegraphdatapoint

SSRS Data label on first and last entry


I have a line graph which tracks days passed on the X-axis.

I would like for the data points to be visible on only the first entry and the last entry.

I tried the below, which I thought should show only the final entry, but in fact had the opposite effect.

=iif(Last(Fields!DateTime.Value),False, True)

Changing from the Last to the First (or Max or Min) all have the same effect.

An example with data point on only the first entry: enter image description here

Many thanks.


Solution

  • I figured it out.

    I needed to show it explicitly where to look, so

    =iif(Fields!DateTime.Value = Max(Fields!DateTime.Value, "BatchData") OR Fields!DateTime.Value = Min(Fields!DateTime.Value, "BatchData"),True,False)