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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
robindk
Frequent Visitor

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
v-shex-msft
Community Support
Community Support

Hi @robindk,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

 

 

 

Hi @robindk,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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