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 / Formatting value for D...
Power Apps
Unanswered

Formatting value for DefaultSelectedValue of a Sharepoint lookup column ComboBocx

(0) ShareShare
ReportReport
Posted on by 53

Good morning everyone
I have a problem displaying a SharePoint list customized form in PowerApp.
In my list there is a numeric Lookup column, when I insert the data field for that column in my power app it shows the numbers followed by . and lots of 0's.
For the choice of data in the combobox I solved with this formula inserted in Items ForAll(Choices([@'ListName']. A), Text(Value, "[$-en-US]0")).
How can I achieve the same with the DefaultSelectedItems?

Thank you all

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

    hi @simno ,

    Assuming your Lookup column is named NumericLookup, you can set the DefaultSelectedItems property using a formula like this:

     

    ForAll(
     Filter(
     Choices([@'ListName'].NumericLookup),
     Value = ThisItem.NumericLookup.Value
     ),
     { Value: Text(Value, "[$-en-US]0") }
    )

     

  • simno Profile Picture
    53 on at

    Your solution doesn’t seem to work for me.
    if DefaultSelectedItems write Parent.Default my appears 2.000000000 if I enter your formula does not appear anything, it should appear 2
    Thanks anyway

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard