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 / If Logic in the Galler...
Power Apps
Unanswered

If Logic in the Gallery with Multiple condition

(0) ShareShare
ReportReport
Posted on by 709

Hello Team,

 

Need to achieve here If Condition in the Gallery wherein if the user put some value in the AHT Feilds that is lblGoalGAL as Text (example TBD)  then Productivity would TBD and WorkLoad would be Blank

2nd Condition would be If AHT  field name is lblGoalGAL is 0.95 or any other number then my WorkLoad would be 

= (7.3*3600) / AHT (0.95) and Productivity would be 1

 

 

 

akbarmahfuzalam_1-1598542707300.png

 

What Formula Do I use in the Text Input fields which is Under Goal

Help is highly appreciated.

Categories:
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    I am not sure I follow every detail, but will try to post a suggestion. Before that, I have a question. Are you saying that when a user enters a value in the GOAL text box tgor the AHT row, the value in the GOAL textbox for the Productivity row needs to be TBD and for the WorkLoad row it needs to be blank (do you mean empty or the word blank?)?

     

    Similarly, if the user types in 0.95 or any other number in the GOAL text box for AHT, you want to set the GOAL text box in the WorkLoad row to be (7.3*3600)/AHT (the number entered by the user) for Workload and 1 for Productivity? 

     

    Let me know if this is correct. 
     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • akbarmahfuzalam Profile Picture
    709 on at

    @PowerAddict ,

     

    Thanks for looking into the issue.

     

    I am not sure I follow every detail but will try to post a suggestion. Before that, I have a question. Are you saying that when a user enters a value in the GOAL text box TBD the AHT row, the value in the GOAL textbox for the Productivity row needs to be TBD and for the WorkLoad row it needs to be blank (do you mean empty or the word blank?)?

    Yes, I want that way. If a user typed TBD in the AHT Rows then the Rows with Productivity need to be TBD and WorkLoad also need to be TBD.

     

    Similarly, if the user types in 0.95 or any other number in the GOAL text box for AHT, you want to set the GOAL text box in the WorkLoad row to be (7.3*3600)/AHT (the number entered by the user) for Workload and 1 for Productivity? 

    Absolutely. You got the point. 

     

    I am not sure what formula do I need to put to achieve this.

     

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Two questions: 

    1. What is the data source of the gallery? 

    2. Where is the value entered in the GOAL text box stored? Is there a column/field in the data source of the gallery where you are setting this value? 

     

    Let me know the answers to these questions. In the meantime, I will try to come up with a solution assuming certain answers to the above questions. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • akbarmahfuzalam Profile Picture
    709 on at

    Hi Hardit,

     

    1. What is the data source of the gallery? 

    is a SharePoint List Called UNIQUEGNS and then I am Patching to some different SP List named as 'Goal N SLA'

     

    2. Where is the value entered in the GOAL text box stored? Is there a column/field in the data source of the gallery where you are setting this value? 

     

    There is Column in the SharePoint List 'Goal N SLA' as GOAL and am patching it back to SP List.

     

    As of now, I did some coding and its working for me. The only fix I want here is that, If the rows are Accuracy then it should not allow < 50 and >100. How do I add these condition on the TextInputGoalValue.

     

     

    If(
    TextInputGoalValue.Text = "TBD",
    "TBD",
    ThisItem.Metrics = "AHT",
    TextInputGoalValue.Text,
    ThisItem.Metrics = "Productivity",
    "1",
    ThisItem.Metrics = "Workload",
    RoundDown(
    (7.3 * 3600) / TextInputGoalValue.Text,
    0
    ),
    ThisItem.Metrics = "Accuracy",
    TextInputGoalValue.Text

    )

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard