cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ladams
New Member

Sort to Most Recent Result per Item

Hi Guys, 

*Dummy data here*

 

I want to sort out various rows, with multiple rows of each phone number to end up with a table showing a unique list of phone numbers, and showing the ‘Stage’ given the most recent record creation.

Below, 2nd image, is nearly there, but frustratingly only shows the highest number, instead of most recent. E.g. 4) added on 1st of Jan is shown instead of 5) added on 10th of Jan.

 

ladams_2-1666156077018.png

 

 

Nearly there results table.

ladams_1-1666156045626.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ladams , You can solve it by using measures too, Not need to create additional tbale. see if this can help

 

Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

 

if you want new table then create it using

 

lasnonblankvalue(Table[Date], Max(Table[Phone])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ladams , You can solve it by using measures too, Not need to create additional tbale. see if this can help

 

Latest
https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

 

if you want new table then create it using

 

lasnonblankvalue(Table[Date], Max(Table[Phone])



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Thank you very much, your video was siper helpful for this. Im going through all your other helpful videos on your channel now.

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors