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 / Modern Table Control :...
Power Apps
Unanswered

Modern Table Control : Add custom field and change date format

(1) ShareShare
ReportReport
Posted on by 110

Hi Experts,

I am using the modern table control and have 2 questions:

 

  1. Date Format - A date-only field is displayed by default with date and time showing. I have changed the text property to 
    Text("cref3_arrive","dd/mm/yyyy") but that has no impact.
  2. Add Custom Column - Is it possible to add a non-table custom column, for example, Column C which equals Column A - Column B?

Kind Regards, Craig

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Craig1 ,

     

    Are you using modern form?

    If you want to add a custom card, please try this

    vxiaochenmsft_0-1719816263603.png

     

    Edit-

    I noticed that you are using the table control, please try using the AddColumns function.

    vxiaochenmsft_0-1719816749216.png

    vxiaochenmsft_1-1719816788157.png

    AddColumns( Table8S,newColumn,<your logic such as columnA - ColumnC >)

     

    Best Regards,

    Wearsky

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @Craig1 ,

    To format a date-only field to display as "dd/mm/yyyy," you should use the Text function properly. If changing the Text property directly isn't working, consider ensuring that you are using the correct formula and context. Here is how you can adjust the formatting:

    1. Select the field or control displaying the date.
    2. Set the Text property using the correct context. For example:

     

    Text(ThisItem.cref3_arrive, "dd/mm/yyyy")
    ​

     

    If cref3_arrive is the name of the field in the table, make sure it is correctly referenced. The ThisItem context is used to refer to the current item in a gallery or table.

    Create a Collection with the Calculated Column:

    You can create a collection that includes your calculated column. For example, if you have columns ColumnA and ColumnB and you want to create ColumnC which equals ColumnA - ColumnB, you can do the following:

     

    ClearCollect(
     colWithCalculatedColumn,
     AddColumns(
     yourDataSource,
     "ColumnC",
     ColumnA - ColumnB
     )
    )

     

    Set the Items property of your table control to the new collection colWithCalculatedColumn.

     

  • Craig1 Profile Picture
    110 on at

    Thank you,

    Unfortunately, the modern table control does not have a text property for each field, so, whilst this method works fine for a gallery or data table, it cannot be used with the modern table control.  

    Kind Regards, Craig 

  • Craig1 Profile Picture
    110 on at

    Thank you, 

    I have currently set my Table Items property to "

    Search (Bookings, txt_Search_Bookings.Value, BookingReference, Comments)". 
     
    Where would I add the add control logic, please? 
     
    Thanks, Craig
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Craig1 ,

     

    Try this

    Search (

    AddColumns(Bookings, <Column Name>,<logic>),

    txt_Search_Bookings.Value, BookingReference, Comments)

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard