Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
219 | |
89 | |
73 | |
66 | |
60 |