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
Super User

@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

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,202)