Percentage displayed on the rdlc-chart pie chart

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.