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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Anonymous
Not applicable

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.