Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Help with a line chart displaying blank line in the legend

$
0
0

Hi all,

Using SQL Server Reporting Services 2008 R2.

I have a line chart, that represents the current day's data.

My dataset returns data for the day divided up into 15 minute intervals

start_time, end_time, volume

I need to create a smooth line chart of these values, with a cumulative sum of the volumes.

It is possible for a value to be NULL in a 15 minute interval, but I have set the custom attribute on the chart to EmptyPoint = Average so that we do not see a break in the line.

HOWEVER, as it is a view of the current day's data, there will be empty data points for each 15 minute interval that has not yet occurred. I do not want to display these points - I want to only display the line up to the latest time we have data for, but for the chart to still show the whole day.

I tried setting the colour of the series to transparent for 15 minute intervals that are in the future with this expression:

=IIF(Fields!date_hour_end_time_stamp.Value > MAX(Fields!event_time_stamp.Value), "Transparent", "Automatic")

This works, but it makes the line on the legend also transparent for some reason even though not all the values are empty.

How can I achieve this without breaking the legend?

Edited to add:

I have two lines on this chart, and the other is a target line - which does need to display for the whole day.


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>