cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Blacksmith354
Frequent Visitor

Display calculated column value while still on new entry form?

I have a SharePoint list with calculated columns based on a choice column. How can I get my PowerApp "new" form to show values immediately while still adding the new item?

 

Typically SharePoint lists only calculate based columns AFTER you submit a new item, but not while editing.

1 ACCEPTED SOLUTION

Accepted Solutions

I was able to use this reference the DataCardValue of the drop down datacard:

Switch(DataCardValue4.Selected.Value,"Yes",5,"No",0,"")

 

This was placed in a custom card within the New item form. Remember to set the display mode to Edit. When the user selects Yes it displays a 5, when they select No, it displays 0 and when they drop down has no selection the value is blank. Please alter for your own needs

View solution in original post

4 REPLIES 4
timl
Super User III
Super User III

@Blacksmith354 

This is not possible.

As you describe, a SharePoint calculated column is a server generated value, and it's only possible to recalculate the value by initiating a save operation.

If you want to update the calculated value whilst the user is composing a new record, you would need to replicate the calculation in Power Apps.

@timl ,

Yes, that's exactly what I'm looking to do. How can I replicate the calculation within the entry form as a card to be displayed next to the choice question?

 

I'm still extremely new to PowerApps but will learn quickly if pointed in the right direction.

 

Example: User selects "Yes" from choice drop down, and card next to it immediately displays "5". User selects "No" from the choice and card shows "0".

I tried a new custom card with an IF statement but that didn't work? Any help?

I was able to use this reference the DataCardValue of the drop down datacard:

Switch(DataCardValue4.Selected.Value,"Yes",5,"No",0,"")

 

This was placed in a custom card within the New item form. Remember to set the display mode to Edit. When the user selects Yes it displays a 5, when they select No, it displays 0 and when they drop down has no selection the value is blank. Please alter for your own needs

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (80,814)