-
create an agregate in a calculated field?
How do you create an agregate in a calculated field?
E.g
New calculated field:
=Avg(Fields!x.Value, "datasetname")
In another thread (http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=117174) visakh helped me create average columns instead of subtotals, using:
=IIF(Inscope("matrix1_Time"),Fields!x.Value,Avg(Fi elds!x.Value))
I am trying to apply this to a column already containing an average, so I get an error saying aggregates cannot be nested.
E.g.
=IIF(Inscope("matrix1_Time"),Fields!x.Value,Avg(Av g(Fields!x.Value)))
If I could place average in calculated field I might be able to refer to it instead, e.g:
=IIF(Inscope("matrix1_Time"),Fields!x.Value,Avg(Ca lculatedField)))
Or any other suggestions?
-
What is the Targeted Data source?
Are you hitting an Analysis Services data source, by any chance? MDX would offer some great options here ...
Thanks.
Bill
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|