Hi all,
I have a gallery with two nested galleries within it to show some dataverse items based on some filtering. One of the filters is the date of the data row needs to be between two dates which the user chooses from two date pickers. The screen looks like this currently:

I cannot get the two fields which are highlighted to show the correct number of items. The top highlight number is supposed to show all the items in the dataverse between the two dates selected + filtered by the partner dropdown. The second highlighted number (currently showing 6) is supposed to be a total of all the items that fall into the Buyers Enquiries (etc) category which shows on the left hand side. These numbers are not correct.
The formula I have for the total calls item property is:
If(drpPartner.SelectedText.Value = "All Partners",
CountIf(DateRange, true && Date >= DatePickerStart.Value And Date <= DatePickerEnd.Value),
CountIf(DateRange, Partner = drpPartner.SelectedText.Value && Date >= DatePickerStart.Value And Date <= DatePickerEnd.Value))
DateRange is a collection which is collected when the screen is visible but also when any of the filters change:
ClearCollect(DateRange, Filter(AllCalls, Date >= DatePickerStart.Value And Date <= DatePickerEnd.Value))
For the second highlighted number (currently showing 6) the text formula is: ThisItem.Count.
Any help would be much appreciated