The percentage displayed on the pie chart is not as convenient as the crystal report. You need to define the corresponding formula. However, this method also makes rdlc more flexible.
For the prominent percentage on the rdlc pie chart, see the following formula:
= Formatpercent (count (Fields! Productid. Value)/count (Fields! Productid. value, "reportdataset_orderview"), 2)
Formatpercent (XX, 2) indicates the percentage formatted as two decimal places.
The key is count (Fields! Productid. value) and count (Fields! Productid. value, "reportdataset_orderview ")
Count (Fields! The productid. Value) field is the traversal of the current domain, so that you can obtain the Count value of the current group;
Count (Fields! Productid. value, "reportdataset_orderview") indicates the entire dataset, so that you can obtain the total value.
See:
Final effect: