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 / Update the text option...
Power Apps
Answered

Update the text option to cater for nested if statements

(0) ShareShare
ReportReport
Posted on by 97

Recently I raised a topic and did get an answer. Unfortunately my if statement now has more if statements. I have not been able to update the provide response to fit these new If statements. The datasource for my app is a SPO list called Requests.

 

I have another SPO list called DLAPath with columns DLA Name, DLAMinAmount, DLAMaxAmount

This specifies who can approve something depending the value amount.

 

I am trying to set a value forDataCardValueDLAPath to the DLA Name from the SPO list depending on the value in DataCardValueNetBookValue field AND whatever is selected from the Select L2 Approver choice field. If there is no selection in the Select L2 Approver choice field then only DataCardValueNetBookValue is used to lookup the SPO list.

 

eddoria_1-1674601274636.png

 

The Select L2 Approver is disabled unless the DataCardValueNetBookValue amount is >50000 and <= 100000. Then it is enabled.

 

Sample SPO list

 

DLA NameDLAMinAmountDLAMaxAmount
Board5000001100000000
CFO1000015000000

 

I am not sure if actually need the list if I can hard code the nested If statements to return values.

 

Example

DataCardValueNetBookValue = 100500

 

Therefore DataCardValueDLAPath would be "CFO"

 

DataCardValueNetBookValue = 50001 and ETMembers.selecteditem = CIO

Therefore DataCardValueDLAPath would be "CIO"

 

The if statements I need converted to one default of the text field txtDLAPath are:

If Net Book Value = 0 to 50,000 then Disposal DLA Path = GFC,

If Net Book Value > 50,001 and <= 100,000 and Select L2 Approver = MD Markets then DataCardValueDLAPath = MD Markets,

If Net Book Value > 50,001 and <= 100,000 and Select L2 Approver = COO then DataCardValueDLAPath = COO,

If Net Book Value > 50,001 and <= 100,000 and Select L2 Approver = CIO then DataCardValueDLAPath = CIO,

If Net Book Value > 100,001 and < = 2,000,000 then DataCardValueDLAPath = CFO,

If Net Book Value > 2,000,001 and < = 2,500,000 then DataCardValueDLAPath = CEO,

If Net Book Value > 2,500,001 and < = 1,000,000,000 then DataCardValueDLAPath = Board

 

Any assistance would be greatly appreciated. Thank you

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @eddoria ,

    Replace with your Text Box names and put this as the Default of the third box - I think it should be close

    With(
     {
     wVal: Value(TextBox1.Text),
     wApp: TextBox2.Text
     },
     If(
     wVal < 50000,
     "GFC",
     wVal < 100000 
     wApp,
     wVal <2000000,
     "CFO",
     wVal < 2500000,
     "CEO",
     wVal <= 1000000000,
     "Board",
     "Over Limit !!"
     )
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • eddoria01 Profile Picture
    97 on at

    Thank you for your response. I was able to get it to work. I just had to put in First(CurrentRecord).ETMembers.Value and it works.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard