Quantcast
Viewing all articles
Browse latest Browse all 10045

Expressions - multiply grouped columns

I have a report and I'm trying to use expressions to calculate the weighed average between 2 columns.

My report structure looks like this:

Image may be NSFW.
Clik here to view.

My users select a year and then the [Pvm] -column gets into 2 columns.

The Sidotut and the summing are then also in 2 columns.

I'd like to do an expression like this in the Vuosipaikat -column:

=First(Sum(Fields!F_FactCount.Value)) * (7/12) + Last(Sum(Fields!F_FactCount.Value)) * (5/12)

So I'd like to multiply the first [Pvm] -column by 7/12 and the second [Pvm]-column by 5/12 and show the sum of these two values.

This is how my report looks after processing:

Image may be NSFW.
Clik here to view.

How can I manage this with expressions?

The expression above doesn't seem to work...




Viewing all articles
Browse latest Browse all 10045

Trending Articles