Column Repeated Value Highlighting

  • Last update:  2021-03-04
  • I. Overview

    1.Application scenarios


    When designing a report, sometimes you need to check whether there are the same values in the same column. If there are the same values, you need to highlight these values, as shown in the following figure:

    6.jpg

    2.Implementation ideas


    • Use Condition Summary to calculate how many in this column are equal to the current value.

    • Use the condition attribute to set the highlighted background color.

    II. Example

    1. Data preparation


    Create a new ordinary report, create a new data set ds1, the database query statement is:SELECT * FROM EmployeeInformation ORDER BY 2 limit 10,10

    1614868065304059.jpg

    2.Report design


    1) Design the table as shown below:

    3.jpg

    2) Select cell A2, select Cell Element>Basic in the property panel on the right, and select the data setting drop-down list.

    4.jpg


    3) Select cell A2, select the condition attribute in the attribute panel on the right, add a background attribute, and the formula condition is count(A2[!0]{A2=$A2})>1

    5.jpg

    3.Effect preview


    1)PC end:

    Save the report, click the Pagination Preview,the effect is as shown in the figure below:

    6.jpg

    2) Mobile terminal:

    1614868711313959.jpg

    III. Template download

    Click to download the template:

    Column Repeated Value Highlighting.cpt

    Attachment List


    Theme: Report Features
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy