Forum Discussion

AnonymousEngi's avatar
AnonymousEngi
Frequent Visitor
8 months ago
Solved

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.

 

HierarchChildMost Recent GradeLast N Grades
Tree 1Branch 1BB < B < A
Tree 1Branch 2BB < A < B
Tree 1Branch 3CC < B < B
Tree 2Branch 1AA < 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

8 Replies

  • 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 

    LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/ 

    X            -  Maruthi Siva Prasad - (@MaruthiSP) / X

  • Hi,

    Cannot understand anything there.  Share an input table and show the expected result.

    • AnonymousEngi's avatar
      AnonymousEngi
      Frequent Visitor

      Input Table

      HierarchChildGradeDate
      Tree 1Branch 1B1/12/2025
      Tree 1Branch 1B1/11/2025
      Tree 1Branch 1A1/10/2025
      Tree 1Branch 2B1/12/2025
      Tree 1Branch 2A1/11/2025
      Tree 1Branch 2B1/10/2025
      Tree 1Branch 3C1/12/2025
      Tree 1Branch 3B1/11/2025
      Tree 1Branch 3B1/10/2025
      Tree 2Branch 1A1/12/2025
      Tree 2Branch 1C1/11/2025
      Tree 2Branch 1B

      1/10/2025

       

      Output Table

      HierarchChildMost Recent GradeLast N Grades
      Tree 1Branch 1BB < B < A
      Tree 1Branch 2BB < A < B
      Tree 1Branch 3CC < B < B
      Tree 2Branch 1AA < C < B