Hi @JotaJr_1 ,
Is the "Data Ref" a Text type column in your SP List? Why do you not add a Date Type column to store the date value in your SP List?
Regarding the screenshot that you mentioned, it seems that you add a Text type column in your SP List to store the date value, and it only store month value and year value. But the selected date value using the Date Picker control contains Month, Day, and Year value.
Within your Filter formula, you could not compare a Text value with a Date value directly. As an direct solution, please consider convert the "Data Ref" from Text type to Date type (Date Only) column in your SP List. Then modify your formula as below:
AddColumns(
GruopBy(
Filter(
Lista_BP_System;
DateValue(Text('Data Ref'; DateTimeFormat.ShortDate)) >= DatePicker1.SelectedDate;
DateValue(Text('Data Ref'; DateTimeFormat.ShortDate)) <= DatePicker2.SelectedDate;
If( // filter reocrds based on seleted Department option
IsBlank(DepartmentComboBox.Selected.Value);
true;
Department = DepartmentComboBox.Selected.Value
)
);
"Planta";
"ByRatingPlanta"
);
"CountOfRatingsPlanta";
CountRows(ByRatingPlanta)
)
Note: The DepartmentComboBox represents a ComboBox control added in your canvas app, to list available Department options, which you want to use filter your data source records.
Please try above solution, check if it could help in your scenario.
Regards,