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 / Combobox with two colu...
Power Apps
Answered

Combobox with two columns where one is datetime

(0) ShareShare
ReportReport
Posted on by 894

Searching I found a few solutions to displaying a date in Combobox. I have tried them and they work but now I need to display a second column in the combobox drop down. I try to add something to the the second column and it defaults to one. 

 

Solutions I have found for displaying dates:

1: 

ForAll(TableName,
{
DateValue:ColumnNameA,
DateDisplay:Text(ColumnNameA, "dd mmm yy")
}
)

 

2:

Distinct(TableName,Text(ColumnNameA,"[$-en-US]dd/mm/yyyy")).Result

 

I managed to add the filter I needed to second option: 

Distinct(
Filter(
Attendance_Course,
ColumnLookup.LookupName in colectionA.columnNameX,
IsBlank('ColumnNameB')
),
Text(
ColumnNameA,
"[$-en-US]dd/mm/yyyy"
)
).Result

 

Should I add another distinct or what can I do to display two columns where one is a datetime field?

 

Thanks kindly

Categories:
I have the same question (0)
  • Gyllentid Profile Picture
    894 on at

    Screenshot 2022-04-22 at 18.04.47.png

    Nothing there. Nothing shows up if I add ["Result","ColumnNameC"] in Displayfields property. 

  • Verified answer
    Gyllentid Profile Picture
    894 on at

    I think this might work:

     

    ForAll(TableName,
    {
    DateValue:ColumnNameA,
    DateDisplay:Text(ColumnNameA, "dd mmm yy"),
    Attendance:ColumnNameB
    }
    )

     

     

     

    If its helpful for anyone else:

    I added the filter inside the forall, on the outside it did not work:

    ForAll(Filter(TableName,LookupColumn.LookUpName in collectionA.columnnameX,
    IsBlank('ColumnNameC')
    ),
    {
    DateValue:ColumnNameA,
    DateDisplay:Text(ColumnNameA, "dd mmm yy"),
    Attendance:ColumnNameB
    }
    )

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @shavora ,

     

    Thanks for sharing. Please consider marking your solution as 'Solution' to get more people to notice this post.

     

    Best Regards,

    Bof

  • Gyllentid Profile Picture
    894 on at

    I can also share how to store the id of a Dataverse row in this so it can be accessible for a patch in a button:

     

    ForAll(TableName,
    {
    DateValue:ColumnNameA,
    DateDisplay:Text(ColumnNameA, "dd mmm yy"),
    Attendance:ColumnNameB

    ID:ThisRecord.TableName
    }
    )

     

    But I ended up using this in a small gallery instead of a combobox:

    Screenshot 2022-04-26 at 11.24.15.png

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard