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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
chudson
Helper IV
Helper IV

SUMIFS Measure Like DAX to sum by period and category in a table visual

I have a table, example below that I'm trying to create a sum measure that will return The Cumulative Rep Revenue by Month.  The should return column is the expected result from the measure based on the Rep and Month in the Example.

 

I tried using calculate sum but can't get it to work with the filters.

Can someone help with the DAX measure.

 

RepProductMonthRevenueShould Return
BobA2019-0110003000
BobB2019-0120003000
BillB2019-015001200
BillC2019-017001200
BobA2019-02200200
BillB2019-0212001200
BobA2019-035002100
BobB2019-036002100
BobC2019-0310002100
1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

A measure

Measure 2 = 
CALCULATE(SUM(Table4[Revenue]), ALLEXCEPT( Table4, Table4[Rep], Table4[Month]))

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

A measure

Measure 2 = 
CALCULATE(SUM(Table4[Revenue]), ALLEXCEPT( Table4, Table4[Rep], Table4[Month]))

Hi @HotChilli ,

 

What if the columns in the visual are from different data tables, not the same table source in the dataset?

 

 

Thanks,

Measures evaluate according to context so, depending on these other fields, you may get different results.  You might try a calculated column (DAX is not the same but it's close)

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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