I'm trying to add a Sparkline in my SSRS report and got an error message: The Y expression has a scope parameter that is not valid for aggregate function. I have two tables in my report, the first one shows the sum of the balance for each account in different
status(paying, writeoff etc) each day. And the second one shows the percentage instead of the actual dollar amount.
My tables look like this:
Date Trend
Account Status Expr(TextBox1) Sparkline
Total Expr1(TwxtBox2) Sparkline
Expr = Sum(Fields!Balance.Value ) Grouped
Expr1 = Sum(Fields!Balance.Value ) Outside the row group
Trend is inside the row group
I have no problem with this table and the sparkline, my second table looks exactly the same as the first one, the difference is the expression which are:
Expr = Sum(Fields!Balance.Value )/Sum(Fields!Balance.Value, "Date")
Expr1 = Sum(Fields!Balance.Value )/Sum(Fields!Balance.Value, "Date") the result is always going to be 100%.
Here's the headache, the I want the sparkline to show the trends of the percentage for each account status. My Y expression is:
Expr = Sum(Fields!Balance.Value )/Sum(Fields!Balance.Value, "Date")
Category Group is Date
I have tried use the reportitems!TextBox1.Values to get the value and it turned out I can only get the last value from the textbox1.
The expected result looks like this:
01/01 02/01 03/01 Trend
Paying 100% 85% 75% 100->85->75
WriteOff 0% 10% 15% 0->10->15
Payoff 0% 5% 10% 0->5->10
Total 100% 100% 100%