Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anto123
Frequent Visitor

Calculating weighted average

Need help

I have both the data points in same column so not sure how to get the weighted average. In the below example, i need to find Weighted average for ASA(Seconds) based on Vol. Handled

 

SkillMetricDateValue
Tier 1Vol. Handled09-01-2018100
Tier 1Vol. Handled09-02-2018130
Tier 1Vol. Handled09-03-2018189
Tier 1Vol. Handled09-04-201890
Tier 1Vol. Handled09-05-201867
Tier 1Vol. Handled09-06-201878
Tier 1Vol. Offered09-01-2018110
Tier 1Vol. Offered09-02-2018140
Tier 1Vol. Offered09-03-2018199
Tier 1Vol. Offered09-04-2018100
Tier 1Vol. Offered09-05-201877
Tier 1Vol. Offered09-06-201888
Tier 1ASA(Seconds)09-01-2018120
Tier 1ASA(Seconds)09-02-2018140
Tier 1ASA(Seconds)09-03-201860
Tier 1ASA(Seconds)09-04-201889
Tier 1ASA(Seconds)09-05-201898
Tier 1ASA(Seconds)09-06-201812
Tier 2Vol. Handled09-01-2018130
Tier 2Vol. Handled09-02-2018123
Tier 2Vol. Handled09-03-2018167
Tier 2Vol. Handled09-04-201889
Tier 2Vol. Handled09-05-201867
Tier 2Vol. Handled09-06-201878
Tier 1Vol. Offered09-01-2018140
Tier 1Vol. Offered09-02-2018133
Tier 1Vol. Offered09-03-2018177
Tier 1Vol. Offered09-04-201899
Tier 1Vol. Offered09-05-201877
Tier 1Vol. Offered09-06-201888
Tier 2ASA(Seconds)09-01-201878
Tier 2ASA(Seconds)09-02-201898
Tier 2ASA(Seconds)09-03-201856
Tier 2ASA(Seconds)09-04-201867
Tier 2ASA(Seconds)09-05-2018108
Tier 2ASA(Seconds)09-06-201892
3 REPLIES 3
balaganeshv2201
Frequent Visitor

if u elaborate the formulae it will be helpful to answer 

v-yulgu-msft
Employee
Employee

Hi @Anto123,

 

Please refer to below formula to create a calculated column.

Weighed Average =
CALCULATE (
    SUM ( Table[Value] ),
    FILTER ( ALLEXCEPT ( Table, Table[Skill] ), Table[Matric] = "ASA(Seconds)" )
)
    / CALCULATE (
        SUM ( Table[Value] ),
        FILTER ( ALLEXCEPT ( Table, Table[Skill] ), Table[Matric] = "Vol. Handled" )
    )

If it does not meet your requirement, please illustrate how to calculate "Weighted average for ASA(Seconds) based on Vol. Handled". And show us your desired result with above sample table.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I have attached the calculation

 

Untitled.jpg

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.