Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
My data set looks like this:
This is my desired results but I have been struggling with this for weeks now. Any help is appreciated!
I need to retrieve 1 row for each month where the "Peak" is the MAX during that month. Like this:
Desired Results:
Solved! Go to Solution.
Hello @heberpower ,
Create below measure and use Measure = 1 as a visual level filter.
MeasureFlag =
var _Month= SELECTEDVALUE(DimDate[Month])
var _Year= SELECTEDVALUE(DimDate[Year])
Return
if(MAX(PeakTable[Peak])=CALCULATE(MAX(PeakTable[Peak]),FILTER(ALL(DimDate),DimDate[Month]=_Month && DimDate[Year]=_Year)),1,BLANK())
Screenshot:
If this fulfils your requirement please mark it as a solution. Kudos are also welcomed!
Thanks!
Hello @heberpower ,
Create below measure and use Measure = 1 as a visual level filter.
MeasureFlag =
var _Month= SELECTEDVALUE(DimDate[Month])
var _Year= SELECTEDVALUE(DimDate[Year])
Return
if(MAX(PeakTable[Peak])=CALCULATE(MAX(PeakTable[Peak]),FILTER(ALL(DimDate),DimDate[Month]=_Month && DimDate[Year]=_Year)),1,BLANK())
Screenshot:
If this fulfils your requirement please mark it as a solution. Kudos are also welcomed!
Thanks!
Worked like a charm! Thanks!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 107 | |
| 39 | |
| 33 | |
| 25 |