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
Hi all,
does any one know what can i do calculate the last value of a row? I have created a matrix where is constanly changing WoW, in columns I have the week when I get the data and in rows I have the weeks that are being affected. for example in the SS below I want to add a mesure to calculate what would be the last value in the row of March 2nd which would be 11790, how can I do that?
Solved! Go to Solution.
So perhaps something like:
Max Week Received Phr =
VAR __Week = MAX('Sheet1'[Week])
VAR __Table = FILTER(ALL('Sheet1'),[Week] = __Week)
VAR __MaxWeekReceived = MAXX(__Table,[Week Received])
RETURN
MAXX(FILTER(__Table,[Week Received] = __MaxWeekReceived),[Phr])
Sample data as text always helps to test. The above code is not tested. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
So perhaps something like:
Max Week Received Phr =
VAR __Week = MAX('Sheet1'[Week])
VAR __Table = FILTER(ALL('Sheet1'),[Week] = __Week)
VAR __MaxWeekReceived = MAXX(__Table,[Week Received])
RETURN
MAXX(FILTER(__Table,[Week Received] = __MaxWeekReceived),[Phr])
Sample data as text always helps to test. The above code is not tested. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
thank you Greg, I just tested the code you shared and it works perfectely. exactly what I was looking for.
thank you once again for your help. 😀
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 |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |