Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi
Please help me with DAX mentioned below.
| Date | Cat | Value | Expecting Result |
| 21/03/2012 | A | 100 | 0 |
| 15/04/2016 | A | 200 | 100 |
| 10/102020 | A | 300 | 200 |
| 21/03/2012 | B | 1000 | 0 |
| 13/7/2014 | B | 2000 | 1000 |
| 15/04/2016 | B | 3000 | 2000 |
| 06/062020 | B | 4000 | 3000 |
Thank you
Solved! Go to Solution.
@Anonymous , Try a new column like
new column =
var _max = maxx(filter(table, [Date] < earlier([Date]) && [Cat] =earlier([Cat])),[Date])
return
maxx(filter(table, [Date] = _max && [Cat] =earlier([Cat]) ),[value])
@Anonymous , Try a new column like
new column =
var _max = maxx(filter(table, [Date] < earlier([Date]) && [Cat] =earlier([Cat])),[Date])
return
maxx(filter(table, [Date] = _max && [Cat] =earlier([Cat]) ),[value])
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |