Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I created a measure called MaxBirths, that would show the highest level of Births for all countries in a matrix. If I select any month on my slicer, the matrix looks perfectly fine:
However, if I select multiple months, or all months in a year, it sums them all up like this:
If I select 'All months', and the highest births in ASIA were witnessed, for example, in China in May - then that's the number I would like to be displayed for both China and ASIA rows, not the sum.
Any ideas how I could accomplish that?
My current formula:
Will appreciate any advice, have spent hours on this!
Solved! Go to Solution.
@Anonymous , Try like
MaxBirths = MAXX (Summarize('Table', 'Table'[Country], 'Table[Month] ), CALCULATE ( COUNT ( 'Table'[Births] ) ) )
DEFINE
MEASURE Births[#Births] =
SUM( Births[Births] )
MEASURE Births[Max #Births] =
CALCULATE(
MAXX(
SUMMARIZE(
Births,
Births[Country],
Births[Period]
),
Births[#Births]
),
ALLSELECTED( Births[Period] )
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.