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 / Format Choices/Lookup ...
Power Apps
Unanswered

Format Choices/Lookup Value

(0) ShareShare
ReportReport
Posted on by 27

Building an incident app that uses two list

 

List 1: Material list with data like Material Name, number, cost per lb.

 

List 2: Incident list that has list 1 as a look up

 

In list 1 Cost is formatted as currency but this does not transfer to list 2 and then into the PowerApp. I'm trying to format the Cost as currency in the power app. I have tried the below on the DataCard and DataCardValue Default fields.

 

"$" & Text(Value(Parent.Default),"[$-en-US]#.00")

"$" & Text(Value(ThisItem.'Cost/lb'),"[$-en-US]#.00")

 

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi,

    You can use the filter in the gallery based on Selected Filter Value.

    LIke below - Condition you can Use.

    if (IsBlank(ComboBox1.Selected.Value) && IsBlank(ComboBox2.Selected.Value),DataSourceName,Filter(DataSourceName,Column1=ComboBox1.Selected.Value && Column2=ComboBox2.Selected.Value)).

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."


  • jeffha77 Profile Picture
    27 on at

    Vijay,

     

    thanks for the reply but the app is set up as a form so no gallery and not looking to filter. Just need to format data pulled into the app from a SharePoint list. It pulls in as "0.01000000..." I want to format it to "$0.01"

     

    thanks

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi,

    Your Can Formate LIke Below.

    Code - Text(Value(Label2.Text),"[$-en-US]$0#.00")

    VijayTailor_0-1600888753975.png

    For Reference - https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text.

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • jeffha77 Profile Picture
    27 on at

    No luck with that either, I don't think it brings that data in as text and cant get it to convert it to text.

     

    The DefaultSelectedItems is what is displayed. MY guess is that its formatted as an array but I cant find any supporting documents.

     

    jeffha77_0-1601304566472.png

     

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @jeffha77 ,

    Hi, What is the input type your Using?

    VijayTailor_0-1601305488999.png


    Thanks,

    Vijay

  • jeffha77 Profile Picture
    27 on at

    Hi @VijayTailor ,

     

    It is a lookup column in SharePoint that is being displayed as choices. When the user selects the type of Material (which is the lookup) it pulls in the Cost/Lb.

    List 1 in sharepoint

    jeffha77_0-1601306508745.png

     

    List 2 in sharepoint, pulls in the material info as a lookip, this is the list attached to the form.

    jeffha77_1-1601306843743.png

     

    jeffha77_2-1601306878712.png

     

     

     

  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @jeffha77 ,

    Finally got a solution for your Issue.

    Use the below Code for formate your Lookup value.

    and 

    Edit the selected filed for Combobox and select the FormateedValue column.
    See the image below.

    AddColumns(TestAkshay,"FormatedValue",Text(Value('Cost/lbs'.Value),"[$-en-US]$#.00"))

    VijayTailor_0-1601313116661.png


    Final Result 
    DefaultSelectedItem Code.

    [Text(Value(ThisItem.'Cost/lbs'.Value),"[$-en-US]$#.00")]

    VijayTailor_1-1601313447891.png

    Hope this solution fits for your Issue.

    Thanks,

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard