Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
| DATE | Ducks | Max Ducks (Month) | ||
| 2022-01-01 | 10 | 23 | ||
| 2022-01-02 | 2 | 23 | ||
| 2022-01-03 | 23 | 23 | ||
| 2022-02-01 | 2 | 10 | ||
| 2022-02-02 | 10 | 10 |
Given above table, I would want to calculate max number of ducks in a certain month. I have initially the first two columns, and I tried to get the third with this formula
| DATE | Ducks | Max Ducks (Month) | ||
| 2022-01-01 | 10 | 23 | ||
| 2022-01-02 | 2 | 23 | ||
| 2022-01-03 | 23 | 23 | ||
| 2022-02-01 | 2 | 23 | ||
| 2022-02-02 | 10 | 23 |
Could anyone help me here pls? What would be the right measure to use?
Solved! Go to Solution.
Thanks for reaching out to us.
You can try this measure,
Measure = MAXX(FILTER(ALL('Table'), YEAR('Table'[DATE])=YEAR(MIN('Table'[DATE])) && MONTH('Table'[DATE])= MONTH(MIN('Table'[DATE]))),[Ducks])
then it returns max ducks according to the year and month of current row.
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Thanks for reaching out to us.
You can try this measure,
Measure = MAXX(FILTER(ALL('Table'), YEAR('Table'[DATE])=YEAR(MIN('Table'[DATE])) && MONTH('Table'[DATE])= MONTH(MIN('Table'[DATE]))),[Ducks])
then it returns max ducks according to the year and month of current row.
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
create month number as a column. But if you have multiple years then create year month number column and use it in ALLEXCEPT. It should work
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |