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 / If statement with mult...
Power Apps
Unanswered

If statement with multiple true statements

(0) ShareShare
ReportReport
Posted on by 10

Hi everyone, 

I am new to powerApps, I have an if statement and I want to have 2 different things occur if the condition is true.

Ex:    If( x = "0", Filter(...) && SortByColumns(...), Else Condition)

 

This is in the gallery of the app in items.

 

I am trying to use ; and ;; but neither of those work. Any help would be very much appreciated

 

Thank you in advance!

Categories:
I have the same question (0)
  • TM73 Profile Picture
    6 on at

    Hello @apate30,

     

    I am pretty sure you cannot chain commands / functions within the TRUE or FALSE expression of an IF(). The & and && work for string concatenation and logical evaluation respectively.

     

    You could use Concurrent(Formula1, Formula2, …) to chain commands instead of “;” or “;;” (Locale specific), but I don’t think it works in the Gallery control either. I’ve seen use cases for Concurrent() in App -> OnStart. I think it is used mostly to setup your App environment (setting variables, collections).

    Ideally, one could do If(Condition, Concurrent(Formula1, Formula2, …), ElseResult / DefaultResult), but I don’t ink it would work in Gallery either.

     

    Concurrent() - https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/functions/function-concurrent

     

    I am new to Power Apps as well.

    Could you please provide more info? I will look into it further.

     

    Thank you.

     

    Cheers,

    T

  • Verified answer
    apate30 Profile Picture
    10 on at

    Thanks for the response @TM73

    Concurrent did not work for me, but I think I figured out how to do it. I just made the filtered gallery what SortbyColumns was sorting.

     

    Ex: If( X = "0", SortByColumns(Filter(x , y), z , xx) , yy)

     

    This works for what I needed

  • TM73 Profile Picture
    6 on at

    You are very welcome @apate30.

     

    I’m glad you were able to figure it out, and thanks for sharing your solution.


    Thank you.

    Cheers,

    T

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard