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

Announcements

News and Announcements icon
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
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 395

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 287 Super User 2026 Season 1

Last 30 days Overall leaderboard