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 / Compare collection wit...
Power Apps
Answered

Compare collection with list SharePoint to Sum value

(0) ShareShare
ReportReport
Posted on by 250

Hey, power helpers

 

am trying to compare a collection to a SharePoint list, in a gallery. the collection has unique UGA which are linked to the user.

i have tryed this:

ForAll(UGA_COL, Sum(Filter(sv_listing_physicians,ThisItem.UGA = UGA),ThisItem.Cible_control))

But get the error: 

Text Value expected

what am i doing wrong? 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @loopingmurdock,

    Could you please tell me that where and which property do you set this ForAll() function?

     

    More details needed.

    Tell me what your UGA_Col and sv_listing_physicians look like.

  • loopingmurdock Profile Picture
    250 on at

    The ForAll() is a collection, property.

     

    UGA_COL:

    UGAZoneDMZDelegue
    71MAC3Random nameRandom name
    69LYN5Random nameRandom name
    93PAR3Random nameRandom name
    34MON5Random nameRandom name

     

    sv_list:

    UGAPhone_2021Email_2021AE_2021
    71MAC5278

    8

    93PAR5556
    39GRN4565

    The goal here is to only have the sum of the UGA that are find in the collection {UGA_COL}

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @loopingmurdock,

    Do you want to compare the UGA in list with the UGA in collection so that you could sum a column based on the compared result?

     

    If you want to filter the sv_list based on the UGA in the collection, you should try the following formula:

    Filter(sv_list,UGA in UGA_Col.UGA)

    The above formula could help you filter the records that has the same UGA in collection.

     

    In addition, I am still confused where and which property do you set this ForAll() function, the error indicates that your control expect a text value.

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard