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 / DataCard calculation n...
Power Apps
Answered

DataCard calculation not always working

(0) ShareShare
ReportReport
Posted on by 118

MatMuvShot.jpg

Form= Gallery1.Selected

F is Gallery2 item and Gallery2 has different source but common column as Gallery1. F is populated with Gallery1.Selected

Calculation is for A and B. Calculation is (nutshell):

A= Round( E/F,0)           B=E-(F*A)    D is referenced in If statement to make sure E is calculated in same units as F (i.e. KG's)

I added C as test label to evaluate, Value(F.Text)

In some cases, not all, Value(F.Text) returns 0 in which case renders calculations for A inaccurate (i.e. A=0)

I'm wondering if some how there may be hidden leading/lagging characters for Gallery2 item in the source that causes Value() to not work.  I checked my "source" file for Gallery2 Source and this doesn't seem to be the case.  Thoughts? Thanks

 

Categories:
  • Abhilash_Swain Profile Picture
    901 on at

    Could you please explain, have you added the calculations as default, or is there any button that triggers these calculations?

     

    If its in default,change to a button to recalculate and show.

  • EG-31080115-0 Profile Picture
    118 on at

    @Abhilash_Swain --It is set as default. However, what doesn't make sense is some Gallery1.Selected will the display value in both Gallery2 and in Label (C in screenshot).  For other Gallery1.Selected it will display in Gallery2 but not Label.  These are also the ones that fail to calculate.

  • Verified answer
    EG-31080115-0 Profile Picture
    118 on at

    It appears to be either leading/lagging ghost character or some other code/formatting issue for some of the items uploaded to SP List from Excel.  For those that won't display in Label or calculate if I delete and type in the value in the SP List it woks properly in PowerApp.

  • Abhilash_Swain Profile Picture
    901 on at

    Super

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard