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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculations on Power app
Power Apps
Unanswered

Calculations on Power app

(0) ShareShare
ReportReport
Posted on by 19

HI all, 

Wondering if you can help. Building Powerapp->Sharepoint list->PowerBI

Im creating a powerapp to capture different aspects of a process for Quality Assurance. Basically what happens is the user will go into the App, and for each criteria/question mark yes/no based on their investigation. Each Yes/No will have a weighting to it and adds up to an overall score. That score will then determine whether the process sampled is overall Pass or Fail (eg over 80/100 = pass)

Whats the best way to achieve this? Any examples/screenshots helpful 🙂 

 

EDIT: Have added screenshot what i have done so far, ive got some calculations in there but want to have the "Pass" in result field and "80" in the score field and for them to be read only. (at the moment they are just calcuating in a random part of the app)

Thanks! 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @karlosch :

    Could you tell me what the data types of these 8 fields are? What are the corresponding controls?

    3.JPG

    I assume:

    • The 6 questions and "Result" are chocies type and do not allow multiple selections.
    • "Score" are number-type field.

    I've made a test for your reference:

    1\Set the ScoreTextInPut's Default property to:

     

    100+
    If(Q1ComboBox.Selected.Value<>"Yes",-10,0)+
    If(Q2ComboBox.Selected.Value<>"Yes",-10,0)+
    If(Q3ComboBox.Selected.Value<>"Yes",-10,0)+
    If(Q4ComboBox.Selected.Value<>"Yes",-10,0)+
    If(Q5ComboBox.Selected.Value<>"Yes",-10,0)+
    If(Q6ComboBox.Selected.Value<>"Yes",-10,0)

     

    DisplayMode

     

    DisplayMode.Disabled

     

    3.JPG

    2\Set the ResultComboBox's DefaultSelectedItems property to:

     

    If(
     (100 + 
     If(Q1ComboBox.Selected.Value <> "Yes",-10,0) + 
     If(Q2ComboBox.Selected.Value <> "Yes",-10,0) + 
     If(Q3ComboBox.Selected.Value <> "Yes",-10,0) + 
     If(Q4ComboBox.Selected.Value <> "Yes",-10,0) + 
     If(Q5ComboBox.Selected.Value <> "Yes",-10,0) + 
     If(Q6ComboBox.Selected.Value <> "Yes",-10,0)
     )> 80,
     {Value: "Pass"},
     {Value: "Fail"}
    )

     

    DisplayMode

     

    DisplayMode.Disabled

     

    27.gif

    Best Regards,

    Bof

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard