Showing results for 
Search instead for 
Did you mean: 
New Member

Calculating the weighted value

Hi, i'm a novice of power bi.

I need to make a report where after i have grouped a lot of employees by category, i have to calculate the weighted value of "Conteggio di MATRICOLA" (es. 582*0,30) in a new column. All this dynamically.

"QUALIFICA" and "PESO" are in a table.


















Thanks a lot 🙂


Super User II
Super User II

Re: Calculating the weighted value

Hi @ruggerogiordano ,



from your question, I am not sure whether 'Peso' and 'Conteggio di Matricola' are measures or columns.


If they are both measures, you can simply create a new measure with formula:


Conteggio weighted = [CONTEGGIO DI MATRICOLA] * [PESO]


If one or both them is a column, you'll need to decide how to 'aggregate' the column (which has multiple values) to one single value to include in your multiplication.


Below is a second example, if Conteggio di Matricola and Peso are both columns:

Weighted of Conteggio = SUM('Table'[CONTEGGIO DI MATRICOLA])*AVERAGE('Table'[PESO])

In this second example, the column Peso is aggregated by adding all of its values and the column Conteggio is aggregated by making an average of its values.


Hope this answers your question! Feel free to share more info if you need more help.

Interested in Power BI finance templates? Check out my blog at




Super User III
Super User III

Re: Calculating the weighted value

Have you looked at the SUMX-function?

weighted value =
SUMX ( Table; table[Peso] * [Conteggio di MATRICOLA] )

Helpful resources


August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors