cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

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
Super User II
Super User II

A measure

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

View solution in original post

3 REPLIES 3
Super User II
Super User II

A measure

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

View solution in original post

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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors