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] )
)
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |