Hey @Robertjde, to make a pie chart in Power Apps, the easiest way would be to create a collection of the data you want in the chart and then enter that collection name in the Items property of the chart itself. For instance, in your case you would probably want a collection like this:
// This could go in the OnVisible section of the screen the pie chart is in
//
ClearCollect(
colPieChartData,
{
ID: 1,
Title: "OK",
Amount: *calculation for OK portion*
},
{
ID: 2,
Title: "NOK",
Amount: *calculation for NOK portion*
}
)
The calculations in the Amount fields of the collection could be whatever formula you have in the labels you mentioned. Depending on how you have the labels set up, you could possibly do this:
ClearCollect(
colPieChartData,
{
ID: 1,
Title: "OK",
Amount: Value(Label3.Text)
},
{
ID: 2,
Title: "NOK",
Amount: Value(Label2.Text)
}
)
Next, select the pie chart object and set the Items property to colPieChartData. It will probably set the values correctly but, if not, ensure that the Labels property is set to Title and the Series property is set to Amount.
Hopefully, that gets you going in the right direction! Let me know if I can explain anything further!