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 / View data from a list ...
Power Apps
Answered

View data from a list with Sharepoint Lookup Fields in Powerapps Gallery

(0) ShareShare
ReportReport
Posted on by 55

Hello,
I have two lists in Sharepoint:
LicBr_01
LicBr_02

 

The two lists have different fields, but there is a related field between both lists with the name "LEGAJO". The field is unique and does not repeat itself, it does the function of an ID.

 

Imagen02.jpg
In the LicBr_02 List, the "LEGAJO" field is of the "Lookup" type and brings information about 7 other fields of the LicBr_01 list.

 

Imagen04.jpg

 

When creating a gallery in powerapps, the information in these fields that are of type number or date in the LicBr_01 list, shows the numbers with many decimals and the dates with the time and other strange data.

 

Imagen01.jpgImagen03.jpg

I hope you can help me.

Categories:
I have the same question (0)
  • Verified answer
    SteveYao Profile Picture
    on at

    Seems the data are all correct, just the format to display not match?

  • Rob_G Profile Picture
    55 on at

    It is correct, I was reviewing other posts and managed to get something for fields with numbers:

    Set the DefaultSelectedItems property of the LookUp field (CurrencyLookUp) ComboBox to following:

    {
     Id: LookUp('Referenced List', ReferencedNumberField = Value(ThisItem.LegalID.Value), ID),
     Value: Text(Value(ThisItem.LegalID.Value), "[$-en-US]##,###,###")
    }
    • But I have no way to apply it to the date field

     

    More reference, link here:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-remove-decimal-in-lookup-field-in-PowerApp-Edit-amp/m-p/532973#M163552

     

  • Rob_G Profile Picture
    55 on at

    @SteveYao 

    Please Steve, 

     

    I tried use this option, but i have error....

     

    {
    Id: LookUp(LicBr_01, Apertura = Value(ThisItem.Legajo.Value), ID),
    Value: Text(Value(ThisItem.'Legajo:Apertura'.Value), "[$-en-US]dd/mm/yyyy")
    }

  • SteveYao Profile Picture
    on at

    Hi Rob

    What's your error on the UI?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard