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 / "Comparing POS Values ...
Power Apps
Answered

"Comparing POS Values in PowerApps: Displaying Only One Entry and Syntax Error with ForAll"

(0) ShareShare
ReportReport
Posted on by 38

i have a dataverse table displayed in powerapps. in this dataverse table there is a pos that is unique.
I would now like to compare the pos with the other datasource that I have also included in the powerapps.

If(pos.Text = Text(ThisItem.Pos) , stueck.Text, "")

Ensosim_2-1709290692337.png

 

Unfortunately, it only shows me one item in the piece column.
When I try to use Forall I constantly get a syntax error

 

ForAll('VK-EK_1', If(pos.Text = Text(ThisItem.Pos) , stueck.Text, ""))

 

Ensosim_3-1709290948129.png

 

 

 

 

 

 

I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @Ensosim, ForAll function returns a table not a text value. Also, you can't use the Data table control to calculate values in the Canvas App. If you use a Gallrey, you can achieve this instead.

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: ahmedsalih.blog

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

    Microsoft Business Application MVP

     

     

     

  • Ensosim Profile Picture
    38 on at
    Thank you :), i also tried gallery control. How can i use the functions now for all rows?
  • Shashank Bhide Profile Picture
    946 Moderator on at

    What type is this other data source? Sounds like you are looking to "Filter" the other data source with "ThisItem"'s value? 

  • Ensosim Profile Picture
    38 on at

    The other data source is a json file that I have converted into a table, where I display the individual columns in a gallery.
    But I need the same columns with the values in the dataverse table, they should only be displayed there.

    Ensosim_0-1709548398083.png

     

    I need length width from the table for my dataverse table and a few more columns.

     

    Ensosim_1-1709548523072.png

    This is the Dataverse Table where i want to display a few columns of the tst.response

    Ensosim_2-1709548637048.png

    pos.Text and stueck.Text are from the tst.reponse. With this if function i get only one row, but i need all rows from the tst. response. The pos from dataverse and the json table are the same. So i thougt i can compare this both to get the correct value

     

     

     

  • Verified answer
    Shashank Bhide Profile Picture
    946 Moderator on at

    Ok, so that sounds like joining two tables on "pos" column? it'll need a POC to do exact logic, but something like below might be of help?

     

    ClearCollect(
     JoinedList,
     ForAll(
     List1,
     Patch(
     List1,
     LookUp(List2, Id = List1.Id)
     )
     )
    )

     

  • Ensosim Profile Picture
    38 on at

    Thank you ❤️

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
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard