Forum Discussion

GrossoKubo's avatar
GrossoKubo
Frequent Visitor
2 years ago

Weighted average

Hello, in my data i have a column named ETICHETTA which contains the row headers of the photo, I've been using a measure that calculate the average for RES Share and the SUM for everything else but now i have to change that code to calculate a weighted average for RES Share  and still a SUM for every other row
My underlying data have a daily granularity and i have to calculate the average of RES Share by using Rinnovabili as the weight. Do someone know how to do it? I've been trying but since both of the values are in the same column I couldn't make it since it would just say that it's 0 

 

1 Reply