Hi all,
I have read alot of info around charts in Power Apps, but just cannot get mine to return any values!
I have created a collection in my apps 'OnStart property as below:
Set(varCurrentUser, LookUp(Users, Email = User().Email));
ClearCollect(
colFinishedPredictions,
Filter(Predictions, LookUp(Events, EventFinal = EventName).EventFinished = "Yes")
);
ClearCollect(
colPredictionsSummary,
{
PredictionType: "Gold",
Count: CountRows(Filter(colFinishedPredictions, Points = 5))
},
{
PredictionType: "Silver",
Count: CountRows(Filter(colFinishedPredictions, Points = 3))
},
{
PredictionType: "Bronze",
Count: CountRows(Filter(colFinishedPredictions, Points = 1))
},
{
PredictionType: "Incorrect",
Count: CountRows(Filter(colFinishedPredictions, Points = -1))
},
{
PredictionType: "No Prediction",
Count: CountRows(Filter(colFinishedPredictions, Points = 0))
}
);
Then within my pie chart I have set the 'items' property to 'colPredictionsSummary' , with PredictionType and Count added as data points

In my pie chart, this is not returning anything! As below:

I cant establish what I am doing wrong with this, but this is the final step of my app so REALLY frustrating that I cant get it right. Is anybody able to point out the (hopefully obvious) mistake that I am making?