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

SSRS line chart - visibility for a series group based on category group

$
0
0

Hi,

I'm puzzled with a chart in SSRS where I am trying to hide part of a line in a chart.  I have a simple line chart displaying YTD income (y-axis) by month (x-axis, category group) with series groups based on year.  The source of data is a cube in SSAS.  When I plot the data, the line for the current year is displayed for the whole year (i.e. all months), even though we're only in August at the moment.  This is the behaviour when using YTD function in SSAS.

I have tried to hide the line for the "future" months, but I can't get it to work.  I can either hide the whole series (this year) or display it, but not a partial selection of the series.

Here are a couple of attempts...

=iif(Fields!Month_number.Value>month(today()),true,false)   -- doesn't hide anything

=iif(Fields!Month_number.Value<month(today()),true,false)   -- testing - hides all series (all years)

I've even tried it with dates, rather than integers, text values for month name, etc.  All options pretty much have the same behaviour: I can either hide a whole year(s), or display them, but not a partial line.

It might be that the problem is solved somewhere in the cube setup (TOTALYTD function), so please mention this if you think this is better.

Thanks in advance!

--p.s. I know I could filter the data in the query, but there are other measures where I need the future dates (budget for example).


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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