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

Expressions - multiply grouped columns

$
0
0

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:



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:

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



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