SSRS Line Chart--One line defined by a parameter (a subset), one line an overall average (parameter independent)

StackOverflow https://stackoverflow.com/questions/23683236

I am new to SSRS 2008R2 reports, so this may or may not be easy, although it should be very basic. Here is a table of what my data looks like in the query designer:

enter image description here

You can see that Provider.ProviderName (the Pro... column in the picture) is a parameter as well as the beginning and ending months. It is straightforward to add a line to a line chart depicting the No Show Value for the provider selected in the drop-down menu for the report (each month is one data point, typically for 12 months). But I cannot figure out how to add a line that shows the monthly average No Show Value across all providers, for the same selected time period, no matter what Provider is selected. Any ideas?

有帮助吗?

解决方案

I would keep the Provider parameter definition in SSRS but unlink it from this dataset, so that it returns the results for all Providers.

Then in the existing Values entry (representing the Selected Provider), I would add an Iif function to return Nothing unless the Dataset Provider Field matches the Parameter provider.

Then I would add a new Values entry (series) for the Average No Show Value which will aggregate across all Providers.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top