Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] )
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |