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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.