web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add Text Column of Fil...
Power Apps
Answered

Add Text Column of Filtered Date Value in Collection

(0) ShareShare
ReportReport
Posted on by 473

My formula below stores a 'Date' and 'Name' value. However, I want to add another column to store the 'Date' value in dd/mm/yyyy format because the date is displayed in a Gallery.

 //Store Public Holidays Date and Name
ClearCollect(
 ServiceCalendarDateAndNameBetweenSelectedDates,
 AddColumns(
 Filter(
 varDateRange,
 Value in Filter(
 ServiceCalenderDateAndNameCol,
 Date = Value
 ).Date
 ),
 "Name",
 LookUp(
 ServiceCalenderDateAndNameCol,
 Date = Value
 ).Name
 )
 );

 
Thank you.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @gymcode ,

     

    If the dates are just using for displaying in Gallery, you can have a Text function for the Label in Gallery for the initial Date column:

    Text(ThisItem.Date, "dd/mm/yyyy")

    vjefferni_0-1707115386953.png

     

    Best regards,

  • ruihaolrh Profile Picture
    473 on at

    Hi @v-jefferni , the existing date column is used for further filtering before deciding which dates to be displayed, therefore I cannot convert this column to Text, but an additional column is needed.

    My gallery that currently displays the Date (Value) and Name (Name) value: 

    gymcode_0-1707115752471.png

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @gymcode ,

     

    In the Gallery you can have several Labels for displaying one column in different formats. Anyway, to add another column in the collection, you can use below formula:

     //Store Public Holidays Date and Name
    ClearCollect(
     ServiceCalendarDateAndNameBetweenSelectedDates,
     AddColumns(
     Filter(
     varDateRange,
     Value in Filter(
     ServiceCalenderDateAndNameCol,
     Date = Value
     ).Date
     ),
     "Name",
     LookUp(
     ServiceCalenderDateAndNameCol,
     Date = Value
     ).Name,
     "FormatDate",
     Text(Value, "dd/mm/yyyy")
     )
     );

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard