web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sum using Selected dro...
Power Apps
Unanswered

Sum using Selected dropdown

(0) ShareShare
ReportReport
Posted on by 650
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
    152,839 Most Valuable Professional on at
    Sum using Selected dropdown
    Hi @Prem4253​​​​​​​
    What is the Update property on the Data Card containing DataCardValue12 (which I assume is a Text Input)
  • Prem4253 Profile Picture
    650 on at
    Sum using Selected dropdown
     
    Yes, this is a Text input (DataCardValue12)
  • WarrenBelz Profile Picture
    152,839 Most Valuable Professional on at
    Sum using Selected dropdown
    My question was what is the Update property on the Data Card containing DataCardValue12 
  • Prem4253 Profile Picture
    650 on at
    Sum using Selected dropdown
     
    Value(DataCardValue12.Text)
  • WarrenBelz Profile Picture
    152,839 Most Valuable Professional on at
    Sum using Selected dropdown
    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
    650 on at
    Sum using Selected dropdown
     
     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
    650 on at
    Sum using Selected dropdown
     
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard