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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Need help in Sum of average Dax

Hi, I am looking for a measure to solve the below problem:

 

NameCall typeAttendees
NeerajF2F50
NeerajDigital50
NeerajEvents50
GauravF2F60
GauravDigital60
AjayF2F70

 

Above is the sample table as our company table is very big. In above table we the number of attendees will be same for each name but when anyone choose multiple names then it should sum the attendees..for e.g. THere are total 50 Attendees who attended event organized by Neeraj and there are 110 attendees who attended the event organized by Neeraj and Gaurav.

I want to a meausre which can perform following:

I will create 2 slicers from above table "Name" and "Call Type"

 

Now, When I choose Neeraj from Slicer Name then Number of attendees should come as 50. Call type slicer is All

But, When I choose Neeraj and Gaurav from Slicer Name then Number of attendees should come as 110. Call type slicer is All

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1673375949256.png

 

 

expected result measure: =
SUMX ( SUMMARIZE ( Data, Data[Name], Data[Attendees] ), Data[Attendees] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Here I create a sample to have a test.

RicoZhou_0-1673428585437.png

Measure:

Sum of average =
VAR _STEP1 =
    SUMMARIZE (
        'Table',
        'Table'[Name],
        "Average",
            CALCULATE (
                AVERAGE ( 'Table'[Attendees] ),
                ALLEXCEPT ( 'Table', 'Table'[Name], 'Table'[Call type] )
            )
    )
RETURN
    SUMX ( _STEP1, [Average] )

 Result is as below.

By Default, measure should return 50+60+50 in my Sample.

RicoZhou_1-1673428649223.png

Select Neeraj and Gaurav in Name:

RicoZhou_2-1673428687367.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1673375949256.png

 

 

expected result measure: =
SUMX ( SUMMARIZE ( Data, Data[Name], Data[Attendees] ), Data[Attendees] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Thank you so much for your help and time. It worked 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.