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.
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! 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 |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |