Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello Community,
I will appreciate contribution to this challenge I have been trying to figure how the return the previous row in my use cases in a Matrix view in the snipnet 2 shown below. I created a calculated column to return previous row in the table below (Previous Cost), But when I try to reuse the column in a Matrix view the previous row columns do not align with the cost column any longer see snipnet 2.
Thanks for your help
Samson.
Solved! Go to Solution.
Hey Greg ,
Thanks for the input , this is the current outcome, Things still not aligning but a big step.
Thank you,
Samson Eromonsei
@Anonymous Seems like it would be something along the lines of:
Previous Cost (Measure) =
VAR __CodeID = MAX('Table'[CodeID])
VAR __Date = MAX('Table'[Date])
VAR __Table = FILTER(ALL('Table'),'Table'[CodeID] = __CodeID && 'Table'[Date]<__Date)
VAR __Previous = MAXX(__Table,[Date])
RETURN
MAXX(FILTER(__Table,[Date] = __Previous),[Cost])
Hey Greg ,
Thanks for the input , this is the current outcome, Things still not aligning but a big step.
Thank you,
Samson Eromonsei
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 |
|---|---|
| 78 | |
| 46 | |
| 37 | |
| 31 | |
| 26 |