cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nagaraj007
Helper V
Helper V

Need to get latest date and synopsis from the gallery

Hello All,

 

I need to show the last updated record date and synopsis against that item in the main screen. Please advise how to show this.

I would not require all the items in the card. I would require only the latest item to be shown. 

Attached is the gallery for your reference.latest date & synopsis.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @nagaraj007 ,

 

Please try this, Use First() function to only get the latest record.

 

First(Sort(AddColumns('database', "DateColumn", DateValue(Date)),DateColumn, Descending))

 

Hope this helps.

Sik

View solution in original post

6 REPLIES 6
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @nagaraj007 .

You can use the Sort function for Modified Column/

Sort(TestAkshay,Modified,Descending)

TestAkshay - Is the List Name.
Modified  -  Is  the column Name
Reference - Image

VijayTailor_0-1602142368855.png

 


Thanks,

Hi Vijay, 

I would like to see only one latest record in the gallery.

 

List name = database

column name = Date (which is text in Sharepoint) and i am copying from Sharepoint to Onedrive(which is my main database)

 

Sort(database,Date,Descending) 

i am getting error as Expected a text value

Hi @nagaraj007 ,

You can Wrap as text.Like below.

Sort(database,Text(Date),Descending) 

Thanks,

 

I am still getting getting the same error.

And also Vijay i would like to see only one latest record in the gallery. I don't want to see all items.

Hi @nagaraj007 ,

 

Please try this, Use First() function to only get the latest record.

 

First(Sort(AddColumns('database', "DateColumn", DateValue(Date)),DateColumn, Descending))

 

Hope this helps.

Sik

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,293)