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 / Division in Gallery
Power Apps
Unanswered

Division in Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all

 

I have a gallery which has some cities and some values for certain quarters. Image attached.

 

I've like to add a column in my gallery with one of those columns divided by another (and for this to update as and when I edit the text input i.e. value in the gallery). 

 

My problem is that the division (yellow box in image) is showing the first row's value in every row.

 

The formula for the division is:

IfError(Value(TextInput1_2.Text)/Value(TextInput1_1.Text),0)

 

Any ideas how I can change this so that the every row is correct?

 

Many thanks in advance.

Katie

PowerApps Help 1.PNG
Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Write the formula using the value in the row instead of the value in the controls

    So it would be something like: ThisItem.Q3/(ThisItem.Q1+ThisItem.Q2+ThisItem.Q3)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the swift response.

     

    The app is embedded in PowerBI.

     

    The value in the row is ThisItem.Measure1

     

    Where Measure1 is a PowerBI measure (basically a lookup to take the value in that given quarter).

     

    Ther measure doesn't automatically update as and when the value is patched to my data source. (You need to manually refresh the PowerBI dataset I believe - I've just tested it and the division doesn't update when I change the values).

     

    From a PowerApps perspective do you know of any alternative solution?

    Thanks

    Katie

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    That is a different issue from having the same data on every row in the calculated column.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Should anyone have this issue in future...

     

    I used lookup functions in the division instead of using ThisItem.

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard