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 / Sum using Selected dro...
Power Apps
Answered

Sum using Selected dropdown

(0) ShareShare
ReportReport
Posted on by 652
Goodday,
 
I have a dropdown (named as drpbusiness) with Fire and Water as the options. If Fire is selected, I can correctly see the submission calculations is DataCardValue12.
 
Below formula is applied to Default Property card (DataCardValue12)
 
But when Water is selected, DataCardValue12 shows blank.
I need to allow users to enter values in DataCardValue12 if Water is selected and save the same values within the form and backend data (SharePoint).
Please advise. Thanks!
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,779 Most Valuable Professional on at
    Hi @Prem4253​​​​​​​
    What is the Update property on the Data Card containing DataCardValue12 (which I assume is a Text Input)
  • Prem4253 Profile Picture
    652 on at
     
    Yes, this is a Text input (DataCardValue12)
  • WarrenBelz Profile Picture
    153,779 Most Valuable Professional on at
    My question was what is the Update property on the Data Card containing DataCardValue12 
  • Prem4253 Profile Picture
    652 on at
     
    Value(DataCardValue12.Text)
  • WarrenBelz Profile Picture
    153,779 Most Valuable Professional on at
    So if the user types in a valid number (you can set the Text control in the right panel only to accept this), it will update that value to SharePoint. What is it that it is not doing ?
  • Prem4253 Profile Picture
    652 on at
     
     When Water is selected, I'm able to add value to DataCardValue12, which is than getting stored to SharePoint.
     
    But the updated value does not shows any value into PowerApps form. It is returning to blank, even though it is updated to SharePoint.
     
    Value got updated to SharePoint:
     
    But returning blank into form:
  • Verified answer
    Prem4253 Profile Picture
    652 on at
     
    I think I was able to fix this with below logic:
    If(drpbusiness.Selected.Value = "Water",ThisItem.'Amount',Parent.Default,
    If(
        drpbusiness.Selected.Value = "Fire",
        Sum(
            Value(DataCardValue26.Text),
            Value(DataCardValue28.Text),
            Value(DataCardValue36.Text),
            Value(DataCardValue39.Text),
            Value(DataCardValue40.Text),
            Value(DataCardValue42.Text)
    ))
    As always, Thanks for your help @WarrenBelz

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

WarrenBelz 101 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 70

Last 30 days Overall leaderboard