Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does big data prompt the duplicate data to the user?

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to give duplicate data tips to users in big data, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, people who have this need can learn, I hope you can gain something.

Use special colors to highlight or symbols to mark repetitions in a column of data in a table.

For example:

A supplier can invite other suppliers to join as a consortium. The report should display all suppliers, and then the last column of suppliers should display all consortia. When the consortium supplier is duplicate with other suppliers, it should be highlighted and asterisk should be added.

Special color highlights

Use the order detail data table in the demo data source of the designer to create a grouped report using the wizard, as shown in the following figure.

For all product IDs in the order, if the product ID is duplicated, the product ID with duplicate data will be marked red.

Add a column and set the expression =query("select count(*) from order details where product ID=?" in cell F2. ",B2)。

Through this expression, we can calculate the number of times the current product ID appears in the order list corresponding to the set, and then make conditional judgment on the foreground color of B2 according to this statistical value. The foreground color expression of B2 is if(F2>1,-65536,-16777216).

After the above settings, the data with multiple product IDs have been marked red. In order to see the effect, I converted the dataset to built-in, edited the data, and added a single product ID record. The effect is shown in the following figure.

The last column of data is auxiliary to judgment, so we don't need to display it in the report. You can set it invisible. Select column F first, and then remove the visible check box of the column in the property panel on the right.

Note: is visible in column properties.

Beautify the report, set the alignment to center, and discount the display format, let's see the effect.

special symbol marking

Based on the above report, add a red five-pointed star to the back of duplicate data as a special mark, and do not make special marks for product IDs without duplication.

1. Insert a column before column C, and set the expression in B2 as: if(G2>1,"φ","").

2. Set C2 foreground color to red;

3. To make the product IDs of cells C2 and B2 appear to be in one column, adjust the column width and set the color of the left border of cells C1 and C2 to transparent.

4. Combine the B1 and C1 cells.

5. Set the alignment of B2 to the right, the C2 cell to the left, and set the indentation of C2 to 5.

The specific settings are shown in the figure below.

Let's preview the report to see how it works.

After the above settings we have completed the effect of adding asterisk to duplicate data.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report