Hi @milky_bar_may ,
Firstly, let me correct you one point:
The gallery2 that you mentioned should be a display form which displays details of the item selected in gallery1.
Am I right?
Secondly, let me express my understanding about your issue.
Do you want these feathers?
1)Gallery1 display all items of this list
2)If you click one item in gallery1, you will view details in a display form
3)In this display form, you want to display all comments of this selected account.
4)Use a control to dynamic filter these comments.
Thirdly, if my assumptions are right, please follow my steps:
1)set gallery1's Items: your list name
2)set display form's Item: Gallery1.Selected
Insert a list box in the display form to display all comments of this selected account.
Insert a combo box to display all the dates that the selected account‘s time to comment. (datepicker can not only display specific dates.)
set the combo box's Items:
Filter(your listname,Account&Name=Gallery1.Selected.Account&Name)
set the combo box's Primarytext:
Comment from Business
set the listbox's Items:
If(IsEmpty(ComboBox1.SelectedItems),
Filter(your listname,Account&Name=Gallery1.Selected.Account&Name),
ComboBox1.SelectedItems
)
set the listbox's Value:
Comment from Business
Then the combo box will display the dates that the selected account's time to comment.
If you select no date in this combo box, the list box will display all comments that the selected account sent.
If you select dates in this combo box, the list box will only display the comments that the selected account sent in selected dates.
Best regards,