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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Summary / Weighted Avg as visuals

I have a dashboard that I need to make where the key is to show the weighted avg of completion on a certain things

I have a set of users - with data categories like gender, age, unit +++

Now the wish is to be able to see on a weighted avg - how many course is completed by gender, age groups, unit +++

 

How can this be done most easily? 

 

I have 1 table source with all users and their data

another table with completed courses.

They are linked together on the user id

 

The visuals need to show that by gender Female / Male - the avg number of completed courses i X for example.

So that it gives the right impression. There are alot more males then females in the total. So it needs to be correctly reprensented.

 

One visual for example is a pie chart, which they want to show the weighted avg completed courses by gender.

 

Any advice, preferabbly with example  how this can be achieved would be highly appreciated!

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

Can you please share some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi,

 

To put it simply

 

2 tables

 

Table 1: Employee Master

UserIDGenderOrgUnitCountry
1MaleUnit1US
2MaleUnit1US
3FemaleUnit2UK
4MaleUnit3UK
5MaleUnit3US

 

2nd Table:

UserIDTrainingID
110
111
210
310
311
410
510

 

 

 

Anonymous
Not applicable

Hi @Anonymous,

You can extract the table1 user id list and use it as a parameter to filter table2 records, then you can summarize these records to get the average:

formula =
VAR idlist =
    CALCULATETABLE (
        VALUES ( T1[UserID] ),
        ALLSELECTED ( T1 ),
        VALUES ( T1[Gender] ),
        VALUES ( T1[OrgUnit] )
    )
VAR summary =
    SUMMARIZE (
        FILTER ( T2, [UserID] IN idlist ),
        [UserID],
        "_count", COUNTROWS ( T2 )
    )
RETURN
    AVERAGEX ( summary, [_count] )

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.