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 / Else_Value - Some help...
Power Apps
Answered

Else_Value - Some help please

(0) ShareShare
ReportReport
Posted on by 44

Hi 

 

I've designed a basic ticketing system.

 

I've got a gallery I'm trying to apply a If filter to. I have a drop down filter with some users listed. I am trying to show if no users are selected, show all list items that have been created that are over 5 days old, excluding any with the status "Completed"

 

The a 2nd filter which returns specific users.

 

If(

//If user filter is set to "-"
DDUser_1.Selected.Result = "-",
Filter(QualityHelpdesk,Today()DateAdd(Created,5),Status.Value<>"Completed"),

//If user filter is set to <>"-"

DDUser_1.Selected.Result <> "-",
Filter(QualityHelpdesk,Today()DateAdd(Created,5),Status.Value<>"Completed"),
)

 

I'm getting the error

 

SDH_84_0-1656496254117.png

 

Any help / advice would be greatly received. 

Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hey, you've got no comparison between your today and dateadd and your second filter has a comma at the end but no further condition below it

     

    If(
     //If user filter is set to "-"
     DDUser_1.Selected.Result = "-",
     Filter(
     QualityHelpdesk,
     Created < DateAdd(Today(),-5),
     Status.Value<>"Completed"
     ),
    
     //If user filter is set to anything other than "-"
     DDUser_1.Selected.Result <> "-",
     Filter(
     QualityHelpdesk,
     Created < DateAdd(Today(),-5),
     Status.Value<>"Completed",
     //Filter by user
     UserNameColumn=DDUser_1.Selected.Result
     )
    )

     

    I added pseudocode for the user filter, you'll need to adjust that for your particular column name 

  • SDH_84 Profile Picture
    44 on at

    @iAm_ManCat Thanks so much. I was staring at that for far to long! 

     

    I did have to add one extra bit to the formula:

     

    //Filter By User
    'Assigned To'.DisplayName = DDUser_1.Selected.Result)
    )

     

    But now it's all working as I expected.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Awesome, glad I could help - sometimes its good to have a second pair of eyes look things over 🙂

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard