Hi @Anonymous,
Could you please share a bit more about your scenario?
Do you want to display percentage of "Yes" or "No" value for each column using Pie chart control?
The user @myonlywan has faced similar issue with you, please check the following thread:
https://powerusers.microsoft.com/t5/General-Discussion/bar-chart-based-on-star-rating/m-p/142099
I have created a SP list on my side, the data structure as below:
I have made a test on my side, please take a try with the following workaround:
Set the Items property of the Pie Chart control (Pie Chart1) to following formula (For Original Protocol Received column):
AddColumns(
GroupBy('20181112_case2',"Original_x0020_Protocol_x0020_Re","GroupData"),
"Percentage",
CountRows(GroupData)/CountRows('20181112_case2')
)
On your side, it should be:
AddColumns(
GroupBy('Trial Progress List',"Original_x0020_Protocol_x0020_Re","GroupData"),
"Percentage",
CountRows(GroupData)/CountRows('Trial Progress List')
)
Set the Items property of the Pie Chart control (Pie Chart2) to following formula (For Original Data Received column):
AddColumns(
GroupBy('20181112_case2',"Original_x0020_Data_x0020_Receiv","GroupData"),
"Percentage",CountRows(GroupData)/CountRows('20181112_case2')
)
On your side, it should be:
AddColumns(
GroupBy('Trial Progress List',"Original_x0020_Data_x0020_Receiv","GroupData"),
"Percentage",
CountRows(GroupData)/CountRows('Trial Progress List')
)
Currently, within Pie Chart control, we could not display the detailed percentage number directly. If you want to display the detailed percentage number, you could consider take a try to add a Label control to display the detailed percentage number. Please take a try with the following workaround:
Within the Pie Chart1, for True Pie item, set the Text property of the Label control to following:
Text(
LookUp(
AddColumns(GroupBy('Trial Progress List',"Original_x0020_Protocol_x0020_Re","GroupData"),"Percentage",CountRows(GroupData)/CountRows('Trial Progress List')),
Original_x0020_Protocol_x0020_Re <> false,Percentage
)*100,
"[$-en-US]#.00"
) &"%"
for False Pie Item, set the Text property of the Label control to following:
Text(
LookUp(
AddColumns(
GroupBy('Trial Progress List',"Original_x0020_Protocol_x0020_Re","GroupData"),"Percentage",CountRows(GroupData)/CountRows('Trial Progress List')),
Original_x0020_Protocol_x0020_Re <> true,Percentage
)*100,
"[$-en-US]#.00"
) &"%"
Similar formula for Label control in Pie Chart 2 control.
More details about GroupBy function, please check the following article:
GroupBy function
Best regards,
Kris