March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dear all,
I'm beginner with Power Bi and would like to get the max value by category in the period (e.g. 01 year). Could you please advise me how to filter this value?
Currently, I'm only can find the max value from all datas and not able to filter the value in my range.
My data example as below:
Category | Value | Date | Max value |
A | 5.5 | 21/02/2023 | 6.7 |
A | 6.7 | 21/01/2022 | 6.7 |
A | 7.8 | 21/01/2021 | 6.7 |
B | 7.0 | 21/02/2023 | 6.0 |
B | 6.0 | 21/01/2022 | 6.0 |
B | 2.5 | 21/01/2021 | 6.0 |
C | 1.2 | 21/02/2023 | 1.6 |
C | 1.6 | 21/01/2022 | 1.6 |
C | 2.5 | 21/01/2021 | 1.6 |
Many thank for your help.
Best Regards,
Kenny NG
Solved! Go to Solution.
@phamthanhhungks , Try a new column
new col =
var _year = year([Date])
return
maxx(filter(Table, [Category] = earlier([Category]) && year([Date]) = _year ) , [Value])
@phamthanhhungks , Try a new column
new col =
var _year = year([Date])
return
maxx(filter(Table, [Category] = earlier([Category]) && year([Date]) = _year ) , [Value])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |