Forum Discussion
Show Latest Value & Last N Values
I apologise in advance that I cannot show any data so will try to describe and provide rough examples.
I am trying to display the latest given grade (A, B, or C) for a component for an overall item.
I have multiple components for multiple different items.
I also want to show the last N amount of grades for each component.
I have achieved a table that shows this but the problem is it also has rows for each old component grade given - I just want to see the component's latest grade and it's history.
| Hierarch | Child | Most Recent Grade | Last N Grades |
| Tree 1 | Branch 1 | B | B < B < A |
| Tree 1 | Branch 2 | B | B < A < B |
| Tree 1 | Branch 3 | C | C < B < B |
| Tree 2 | Branch 1 | A | A < C < B |
The above is an example of what I want. I'll add other columns as well, notes regarding the grade, date the grade was assigned, et cetera.
I have only ever used Excel up to now and am still trying to understand how Power Bi passes information; Excel does it Cell by Cell which means you can easily review every variable at every step of the way but Power Bi is able to accomplish this task to a better degree and can be incorporated with other dashboards.
Thank you for your time and consideration.
Kind Regards,
AnonymousEngi
Hi AnonymousEngi,
As per my understanding, you want to display Latest Value & Last N Values, based on my understanding I treid to come up with a solution in the below pbix file.Show Latest Value & Last N Values.pbix
Please check the above pbix file. Hope this help to solve the problem. Please let me know if you have any further questions or need clarifications.
If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks!
Best Regards,
Maruthi
8 Replies
- maruthisp
Super User
Hi AnonymousEngi,
As per my understanding, you want to display Latest Value & Last N Values, based on my understanding I treid to come up with a solution in the below pbix file.Show Latest Value & Last N Values.pbix
Please check the above pbix file. Hope this help to solve the problem. Please let me know if you have any further questions or need clarifications.
If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks!
Best Regards,
Maruthi
- AnonymousEngiFrequent Visitor
This is exactly what I needed, thank you.
- maruthisp
Super User
AnonymousEngi Glad to hear, my solution helped to solved the problem 🙂
- Ashish_Mathur
Super User
Hi,
Cannot understand anything there. Share an input table and show the expected result.
- AnonymousEngiFrequent Visitor
Input Table
Hierarch Child Grade Date Tree 1 Branch 1 B 1/12/2025 Tree 1 Branch 1 B 1/11/2025 Tree 1 Branch 1 A 1/10/2025 Tree 1 Branch 2 B 1/12/2025 Tree 1 Branch 2 A 1/11/2025 Tree 1 Branch 2 B 1/10/2025 Tree 1 Branch 3 C 1/12/2025 Tree 1 Branch 3 B 1/11/2025 Tree 1 Branch 3 B 1/10/2025 Tree 2 Branch 1 A 1/12/2025 Tree 2 Branch 1 C 1/11/2025 Tree 2 Branch 1 B 1/10/2025
Output Table
Hierarch Child Most Recent Grade Last N Grades Tree 1 Branch 1 B B < B < A Tree 1 Branch 2 B B < A < B Tree 1 Branch 3 C C < B < B Tree 2 Branch 1 A A < C < B - Ashish_Mathur
Super User