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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
DiDiliz
Frequent Visitor

Separate measure by multiple slicer options

I am trying to create a measure that performs a calculation but adds together the value of the measure when multiple options are selected in the slicer instead of adding everything together.  So for example if person 1 and person 2 are selected in one slicer and October and November are selected in another slicer, I want: 

number of hours for person 1 * average % for person 1 for October

+ number of hours for person 1 * average % for person 1 for November

+ number of hours for person 2 * average % for person 2 for October

+ number of hours for person 2 * average % for person 2 for November,

 

instead of number of hours for October and November and person 1 and person 2 * average % for October and November and person 1 and person 2.  I have already have a measure that will separate out the months selected in a slicer, but when I select multiple people from another slicer it is then totals the number of hours for person 1 & person 2 * average % for person 1 and person 2.  Is there a way to add in the person selection as well as the month selection.  

 

This is the measure I already have for the calculation to add the invidual months together is: 

Measure =
SUMX(
    VALUES('TABLE1'[Week Commencing ].[Month]),
    CALCULATE(
        SUM('TABLE2'[Hours]) * AVERAGE('TABLE1'[Budget %]),
        FILTER(
            'TABLE1',
            'TABLE1'[Week Commencing ].[Month] = EARLIER('TABLE1'[Week Commencing ].[Month])
    )))
 
I need to add the people in it which is TABLE1[Team Member]. 
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

I think you can use

My Measure =
SUMX (
    SUMMARIZE ( Table1, Table1[WeekCommencing].[Month], Table1[TeamMember] ),
    CALCULATE ( SUM ( 'TABLE2'[Hours] ) * AVERAGE ( 'TABLE1'[Budget %] ) )
)

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

I think you can use

My Measure =
SUMX (
    SUMMARIZE ( Table1, Table1[WeekCommencing].[Month], Table1[TeamMember] ),
    CALCULATE ( SUM ( 'TABLE2'[Hours] ) * AVERAGE ( 'TABLE1'[Budget %] ) )
)

That's worked great, thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.