@ShadowTech
So, then for your dropdown, I would provide the following formula for the Items property:
Table(
{disp:"Current Year", start:Date(Year(Now()), 1, 1), end:Date(Year(Now(), 12, 31)},
{disp:"Current Month", start:Date(Year(Now()), Month(Now()), 1),
end: DateAdd(DateAdd(Date(Year(Now()), Month(Now()), 1), 1, Months), -1, Days)}
)
Set the Value to display in the properties to disp (probably will default to it)
For your Pie Chart, set the Items property to the following:
ForAll(
SortByColumns(
GroupBy(
AddColumns(
Filter(yourSharePointList, (Created>=yourDropdown.Selected.start) && (Created<=yourDropdown.Selected.end)),
"_status", Status.Value
),
"_status", "records"
),
"_status"
),
{Value: Coalesce(_status, "Blank"),
Count:CountRows(Filter(records, Status.Value=_status))
}
)
This will give you a table of records for the pie chart that will have records for each status value. The records will have a Value and a Count column. The Value will be the name of the status and the Count will be the count of the records that match that status.