Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Sum using Selected dropdown

(0) ShareShare
ReportReport
Posted on by 289
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!
  • Verified answer
    Prem4253 Profile Picture
    Prem4253 289 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
  • Prem4253 Profile Picture
    Prem4253 289 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:
  • WarrenBelz Profile Picture
    WarrenBelz 145,567 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
    Prem4253 289 on at
    Sum using Selected dropdown
     
    Value(DataCardValue12.Text)
  • WarrenBelz Profile Picture
    WarrenBelz 145,567 on at
    Sum using Selected dropdown
    My question was what is the Update property on the Data Card containing DataCardValue12 
  • Prem4253 Profile Picture
    Prem4253 289 on at
    Sum using Selected dropdown
     
    Yes, this is a Text input (DataCardValue12)
  • WarrenBelz Profile Picture
    WarrenBelz 145,567 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)

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard