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 / Compare two combobox w...
Power Apps
Unanswered

Compare two combobox with dates as items of combobox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Power users ,

Scenario: Im working on timesheet solution where in i instance i have two combobox one for Shift A and second combobox with Shift B ,combobox contains all dates of the the current month,

in my case if combobox has selected for example as 1,2,3 as shift A dates and combobox 2 should not show the other combobox selected dates or throw an error if selected .

Note :Combobox are in gallery they can have as a many as row as they want .

PowerrangerM_0-1671036238015.png

i want  to compare combobox 1 and 2 and like wise below combobox should not show already selected dates (should throw an error)

Categories:
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Anonymous 

     

    ComboBox B should have items like

     

    Filter(
         DataSource,!(Value in Distinct(ComboBox1.SelectedItems,Value))
    )

    ComboBox1 is the name of the ComboBox A control

    ReplaceValue with the name of your column.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @cha_cha  

    Hi Thanks for reply however this will not work cause ,if you see the pic ,if the persons select again from shift B same date as in shift C ,this will not work 

    and in the second row there is one more combo box that should also not allow to select same dates @cwebb365 @RandyHayes @SebS @WarrenBelz  

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard