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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ARLYS6
Frequent Visitor

Sum by person by category: New column

I need to create a column that calculates the sum of responses received by faculty member per college. An example of the data set is below with the Total Received per faculty/college being the column that I am trying to calculate with DAX:

 

Person               College        Survey         # Received        Total Received per faculty/college  

Faculty A            Medicine    XXXXXX          10                     25

Faculty A            Medicine    XXXXXX           15                    25

Faculty B             Dental       XXXXX              20                   30

Faculty B             Dental        XXXXX             10                   30

Faculty B             Nursing      XXXXX              5                    15

Faculty B             Nursing      XXXXX             10                   15

 

When I thought I only needed total received by faculty, the dax below worked great:

 

Total by faculty= CALCULATE (SUM('Table'[# Received]), ALLEXCEPT ('Table', 'Table'[person])) worked great

 

But then I realized that there are some faculty who teach at multiple colleges and I needed the new column to reflect total received per faculty per college. Any help is appreciated.

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can modify your code slightly to add college to the ALLEXCEPT

Total by faculty =
CALCULATE (
    SUM ( 'Table'[# Received] ),
    ALLEXCEPT ( 'Table', 'Table'[person], 'Table'[College] )
)

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

You can modify your code slightly to add college to the ALLEXCEPT

Total by faculty =
CALCULATE (
    SUM ( 'Table'[# Received] ),
    ALLEXCEPT ( 'Table', 'Table'[person], 'Table'[College] )
)

Thank you! I wasn't expecting it to be that easy.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.