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 / Switch and using neste...
Power Apps
Unanswered

Switch and using nested IF

(0) ShareShare
ReportReport
Posted on by

I'm trying to navigate to a correct form based on Category(lbl_AllRequestsCategory.Text)

Then based upon another variable "Status" decide which form to go to ?

 

This is not working below

 

Switch(lbl_AllRequestsCategory.Text
,"NEW PRICING OPPORTUNITY"
,
If(dtbl_AllRequests_NoFilter.Selected.Status = "Submitted" Or dtbl_AllRequests_NoFilter.Selected.Status = "Pending",
Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2)
Or
If(dtbl_AllRequests_NoFilter.Selected.Status = "Completed",
Navigate(scrn_Prex_NCPricingOrig_DeadView_PR2)
Or
If(dtbl_MyRequests_qs.Selected.Status = "Pending - On Hold for Clarification",
Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2)
Or
If(dtbl_MyRequests_qs.Selected.Status = "Pending - Escalation in Progress",
Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2)
Or
If(dtbl_MyRequests_qs.Selected.Status = "Pending - Cost Support Request with Supplier",
Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2)
Or
If(dtbl_MyRequests_qs.Selected.Status = "Rejected",
Navigate(scrn_PrexSeller_RejectedView)
,"")

,""),""),""),""),"")
)

Categories:
I have the same question (0)
  • Verified answer
    Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    Try This:

    Switch(
     lbl_AllRequestsCategory.Text,
     "NEW PRICING OPPORTUNITY",
     Switch(
     dtbl_AllRequests_NoFilter.Selected.Status,
     "Submitted", Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2),
     "Pending", Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2),
     "Completed", Navigate(scrn_Prex_NCPricingOrig_DeadView_PR2)
     ),
     "OtherCategory", // Add more categories and form navigations as needed
     Switch(
     dtbl_MyRequests_qs.Selected.Status,
     "Pending - On Hold for Clarification", Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2),
     "Pending - Escalation in Progress", Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2),
     "Pending - Cost Support Request with Supplier", Navigate(scrn_PREX_Reserve_NCPricingOrig_PR2),
     "Rejected", Navigate(scrn_PrexSeller_RejectedView)
     ),
     // Default case, you can add more categories as needed
     ""
    )

     

    Mark as solution if this solves your issue. Give this reply a thumbs up. Reply to this thread if you need further assistance. Thanks

  • Community Power Platform Member Profile Picture
    on at

    Thank you so very much...Testing now.

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