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 / How do you Embed Multi...
Power Apps
Answered

How do you Embed Multiple Functions in IF Statements?

(0) ShareShare
ReportReport
Posted on by 221

I'm struggling to create the else_value of an IF statement that would populate the Items of a dropdown.

 

I've tried many form's of the else_value filter but it still demand's a text data type while telling me its text data type. I thought making it distinct and calling out the ImageName column that I would like to be the selections of the dropdown, but that did not solve it.

 

I believe the issue is that the else_value is an embedded function within two others functions, because if you place "Distinct(Filter(PERImageStorage, Focus = Dropdown1_1.Selected.Step), ImageName)" alone in a dropdown as its Item's, the function works correctly. How do I embed this function as the else_value in this IF statement?

 

Ginko_0-1681160108497.png

 

 

If(IsBlank(Filter(PERImageStorage, Focus = Dropdown1.Selected.Result)), Label1.Text, Distinct(Filter(PERImageStorage, Focus = Dropdown1_1.Selected.Step), ImageName))

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @Ginko ,

    That is because both possible outcomes need to be Tables

    If(
     IsEmpty(
     Filter(
     PERImageStorage, 
     Focus = Dropdown1.Selected.Result
     )
     ),
     Table({Value: Label1.Text}),
     Distinct(
     Filter(
     PERImageStorage, 
     Focus = Dropdown1_1.Selected.Step
     ), 
     ImageName
     )
    )

     

    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

  • Ginko Profile Picture
    221 on at

    Wow, wouldn't have thought it was on the true part of the statement, learned something new! Thanks! 

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard