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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Fro88er
Helper IV
Helper IV

max date next to a measure aggregate on a matrix

I am trying to add the last or Max Date the 300k Club Count was recorded at each Recruiter and YearMonth.  When I try and put the YearMonth in the values box in the Matrix and select latest I get the last date that Recruiter had activity, and not when his Total Revenue was above 300k, per YearMonth.

 

Thanks in advence for looking at this.

 

HallOfFame.Help.png

 
300K Club Count =
IF(
HASONEFILTER(DimCalendar[YearMonth]),
IF([Total Revenue] >= 300000,
1,0),
CALCULATE(
COUNTROWS(DISTINCT(DimCalendar[YearMonth])),
FILTER(DimCalendar, CALCULATE([Total Revenue],
ALLEXCEPT(DimCalendar, DimCalendar[YearMonth])) >= 300000
)))

 

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this measure to get your desired result:

 

Latest 300K YearMonth =
VAR __300kmos =
    FILTER ( ALL ( 'Date'[YearMonth] ), [Total Revenue] > 300000 )
RETURN
    MAXX ( __300kmos, 'Date'[YearMonth] )

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this measure to get your desired result:

 

Latest 300K YearMonth =
VAR __300kmos =
    FILTER ( ALL ( 'Date'[YearMonth] ), [Total Revenue] > 300000 )
RETURN
    MAXX ( __300kmos, 'Date'[YearMonth] )

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


This worked perfectly.  Thank you so much! 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors