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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculated field on a ...
Power Apps
Answered

Calculated field on a form, with a possible IF statement from a dropdown box.

(0) ShareShare
ReportReport
Posted on by 29

Hi all,

 

I have a calculated field, which I think needs some sort of IF statement, but I'm not sure how to do this. Any help is appreciated. I've attached a screen shot and tried to explain below.

 

I have the calculated column which adds up both 1st dose and 2nd dose to tell me the total. That bit works with no issues. Although I have a lot of .00000 after the number. (That I should be able to rectify).

 

So where it says under each dosage 'Available'. This is a drop-down, and when I select 'not available' I want it to not include the dosage in the calculated field. 

 

For example, I mark 1st Dose as not available. The calculated field called 'quantity' returns a value of 2.5.

Screenshot 2.jpg
Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Theoriginal1981 I do not know enough about your app, but you can try applying the below to the Text property of your Label:

     

    With(
     {
     _data: Filter(
     Table(
     {
     DoseValue: Value('Your First Dose Quantity Label'.Text),
     Availability: 'Your Dose 1 Dropdown Control'.Selected.Value
     },
     {
     DoseValue: Value('Your Second Dose Quantity Label'.Text),
     Availability: 'Your Dose 2 DropDown Control'.Selected.Value
     }
     ),
     Availability = "Available"
     )
     },
     Sum(
     _data,
     DoseValue
     )
    )

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard