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 / Help to combine / writ...
Power Apps
Unanswered

Help to combine / write together two variables

(0) ShareShare
ReportReport
Posted on by 3

Hi
I have two variables I would like to write together as they have to look at both parts in a dropdown. It gives me an error when I try to insert e.g. "or". How would you write these two together?
The meaning of the field is that only your own registered courses should be displayed when you log into the app

Filter(Attendee7Day;AttendeeAddress=varUserEmail)
and 

Sort(Distinct(Course7Day;StartAndLocation);Result; SortOrder.Descending)

Thanks in advance

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    A combobox/dropdown can only have 1 datasource. You are trying to insert 2 different datasources, it is normal that it gives you an error

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

    My blog!

  • NH90 Profile Picture
    3 on at

    @Nogueira1306 

    Al right. It make sense. But how can we get around this and fix it so it filters on both parts?
    Would like it to only show your own courses. Like currentUser. 

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    The only way that I think of it you creating a collecting that joins both courses.. Like this:

     

    Collect(MyCourses; Filter(Attendee7Day;AttendeeAddress=varUserEmail));;

    Collect(MyCourses; Filter(Attendee7Day;AttendeeAddress=varUserEmail));;

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

    My blog!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard