In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about what is the configuration method of pagination summary in big data. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Hi ~ everybody, are you still worrying about the sum of the data per page? Are you still worried about writing a long list of code and working late into the night? Are you still freaking out about Party A's changing paging needs? Stop! From now on, you will find that paging summary has never been so simple, come and follow in the footsteps of the little teacher to find out.
As we all know, there are often business requirements in business systems: data reports need to be displayed in pages according to actual paper, and the data on this page is summarized at the end of each page (for example, counting, summation). The following figure shows the subtotal of the freight charges per page:
The demand seems simple, but Party A's similar requirements may emerge one after another. How can we fix it once and for all? Here is the Messenger of Hell-dry the report to see how strong it is.
First of all, the first step is, of course, to make the report, as shown in the following figure:
The main configuration of the report:
Cell number expression
The report is an inventory report, so the A2 cell is counted by the select function, and the value is taken after B2.
Cell background color
The first line sets the background color to blue
The second line implements the interlaced heterochromatic effect by setting a dynamic background color expression:
If (row ()% 2) 4144960)
Display format
Set the display format of C2 ordering date as: yyyy year MM month dd day
Set the display format of E2 freight as: ¥# 0.00
Display value
Set the display value expression for B2 customer ID: ds2.select (company name, customer ID==value (), 1)
Then, the paging summary is done with the pcsum () function.
The specific operations are as follows:
1. Add two rows of data as subtotals and totals, and set the row type to the end of the report
two。 Configure the subtotal expression: = pcsum (E2 {}) and set the display format to: ¥# 0.00
Configure the total expression: = sum (E2 {}) and set the display format to: ¥# 0.00
Finally, let's review the problems encountered and the solutions:
[question] paging summary
[solution] the pcsum () function realizes the sum of paging subtotals. Smart you must have figured out how to achieve paging counting. Bingo~ is the pccount () function!
The above is what the configuration method of the pagination summary in big data is shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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: 302
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.