Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
164 | |
84 | |
68 | |
68 | |
58 |