Report generation method, device, computer equipment and storage medium
Through the automatic parsing and filtering functions of the report generation method, the problem of low efficiency in report preparation caused by too many dimension members is solved, efficient report generation and display is achieved, and the user experience and system resource utilization are improved.
Patent Information
- Application Number
- CN202011003394.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-22
AI Technical Summary
In financial management, when displaying business reports, when there are many dimension members, business personnel need to add or delete dimension members in multiple locations, resulting in a huge workload and low efficiency in preparing reports.
Provides a report generation method. By displaying the report dimension selection interface, users can select target dimension members, and automatically parse the dimension member range based on the subordinate dimension members of the target dimension member, generate reports, and reduce the need for manual entry and fixed storage of dimension members.
It improves the efficiency of report generation, reduces the workload of business personnel, ensures that the generated reports meet user needs, avoids redundant display, saves system resources, and improves the convenience of users to view reports.
Smart Images

Figure CN112232043B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a report generation method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of computer technology, in financial management, the content corresponding to the dimension member combination in the business report is usually displayed through the financial system. At present, if you want to display the content corresponding to the dimension member combination in the business report, you can store the dimension members in the row header and column header of the business report, and then display the content corresponding to the dimension member combination. As long as the dimension members in the report change, you need to add or delete specific dimension members in multiple positions in the row header or column header of the business report.
[0003] However, the current way of displaying the content corresponding to the dimension member combination in the business report will cause a huge workload for business personnel to prepare the report when the report contains many dimension members. Summary of the invention
[0004] Based on this, it is necessary to provide a report generation method, device, computer equipment and storage medium that can reduce the workload of business report compilers in response to the above technical problems.
[0005] A report generation method, the method comprising:
[0006] Displaying a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension;
[0007] Determine a target dimension member under a target dimension selected from the candidate dimensions of the report; the target dimension is at least one;
[0008] When the target dimension member has subordinate dimension members, a member range selection area corresponding to the target dimension member is displayed;
[0009] Get the dimension member range selected in the member range selection area;
[0010] Parsing the dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension;
[0011] Generate a report based on the dimension member set.
[0012] In one embodiment, generating a report according to the dimension member set includes:
[0013] When there are multiple target dimensions to be selected from the candidate report dimensions,
[0014] Determine the Cartesian product of the dimension member sets under each of the target dimensions to obtain a dimension member combination;
[0015] Generate a report based on the dimension member combination.
[0016] In one embodiment, the multiple target dimensions include a target dimension corresponding to a row partition and a target dimension corresponding to a column partition, and determining the Cartesian product of the dimension member sets under each of the target dimensions to obtain the dimension member combination includes:
[0017] For each partition in the row partition and the column partition, the Cartesian product of the dimension member sets corresponding to different target dimensions in the same partition is determined to obtain the dimension member combination in the row partition and the dimension member combination in the column partition.
[0018] In one embodiment, generating a report according to the dimension member combination includes:
[0019] Using the dimension member combination in the row partition as the row header of the report, and using the dimension member combination in the column partition as the column header of the report;
[0020] The row and column intersections of the dimension member combination in the row partition and the dimension member combination in the column partition are used as report data display points of the report to generate a report.
[0021] In one embodiment, the method further comprises:
[0022] When a partition setting trigger operation is detected, the report partition setting interface is displayed;
[0023] In response to the partition setting operation on the report partition setting interface, the row partition setting area or the column partition setting area in the report partition setting interface respectively corresponds to the row partition or the column partition, and sets the target dimension members and the corresponding dimension member range under the target dimension.
[0024] In one embodiment, the step of using the dimension member combination in the row partition as the row header of the report and using the dimension member combination in the column partition as the column header of the report includes:
[0025] When there are multiple row partitions, the distribution positions of the dimension member combinations in each row partition in the row header of the report are determined according to the order in which the multiple row partitions are set in the row partition setting area;
[0026] When there are multiple column partitions, the distribution positions of the dimension member combinations in the column partitions in the column header of the report are determined according to the order in which the multiple column partitions are set in the column partition setting area.
[0027] In one embodiment, the method further comprises:
[0028] Displaying a partition order movement control in the row partition setting area and the column partition setting area respectively;
[0029] In response to a triggering operation on the partition order movement control, the order of the partitions controlled by the partition order movement control is moved.
[0030] In one embodiment, the method further comprises:
[0031] When a dimension member within the dimension member range changes,
[0032] Re-analyzing the dimension members within the dimension member range to obtain a re-analyzed dimension member set corresponding to the target dimension;
[0033] The report is updated according to the dimension member set obtained by re-parsing.
[0034] A report generation device, comprising:
[0035] A display module, used to display a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension;
[0036] A determination module, used to determine a target dimension member under a target dimension selected from the candidate dimensions of the report; the target dimension is at least one;
[0037] The display module is further configured to display a member range selection area corresponding to the target dimension member when the target dimension member has a subordinate dimension member;
[0038] An acquisition module, used for acquiring the dimension member range selected in the member range selection area;
[0039] A parsing module, used for parsing dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension;
[0040] A generating module is used to generate a report according to the dimension member set.
[0041] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0042] Displaying a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension;
[0043] Determine a target dimension member under a target dimension selected from the candidate dimensions of the report; the target dimension is at least one;
[0044] When the target dimension member has subordinate dimension members, a member range selection area corresponding to the target dimension member is displayed;
[0045] Get the dimension member range selected in the member range selection area;
[0046] Parsing the dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension;
[0047] Generate a report based on the dimension member set.
[0048] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0049] Displaying a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension;
[0050] Determine a target dimension member under a target dimension selected from the candidate dimensions of the report; the target dimension is at least one;
[0051] When the target dimension member has subordinate dimension members, a member range selection area corresponding to the target dimension member is displayed;
[0052] Get the dimension member range selected in the member range selection area;
[0053] Parsing the dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension;
[0054] Generate a report based on the dimension member set.
[0055] The report generation method, device, computer equipment and storage medium can filter dimension members that are not to be displayed by selecting target dimension members under the target dimension in the display report dimension selection interface. When the target dimension member has subordinate dimension members, the dimension members within the dimension member range are automatically parsed to obtain the dimension member set corresponding to the target dimension according to the dimension member range selected in the member range selection area corresponding to the target dimension member, and a report is generated according to the dimension member set, without the need to manually enter the dimension members in the report and store them fixedly, thereby improving the efficiency of generating reports. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flowchart of a report generation method in one embodiment;
[0057] Figure 2 A schematic diagram of a report dimension selection interface in one embodiment;
[0058] Figure 3 A schematic diagram of a report dimension selection interface in another embodiment;
[0059] Figure 4 A schematic diagram of analyzing organizational dimension members in one embodiment;
[0060] Figure 5 A schematic diagram of generating a report in an embodiment;
[0061] Figure 6 A schematic diagram of a report partition setting interface in an embodiment;
[0062] Figure 7 is a structural block diagram of a report generating device in one embodiment;
[0063] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] In one embodiment, Figure 1As shown, a report generation method is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the terminal can be a mobile terminal, a computer or a special device. Among them, the mobile terminal is such as a mobile phone, a tablet computer, a handheld POS (point of sale, i.e., a sales terminal). Computers are such as desktop computers and laptops. Special financial management equipment is such as a desktop POS machine or a service inquiry machine. The report generation method specifically includes the following steps:
[0066] Step 102, displaying a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension.
[0067] The report dimension selection interface is a user-oriented operation interface for selecting dimension-related information related to the report to be generated. The report candidate dimension is a dimension for users to select to form the dimension members of the report. The dimension member is a specific member under the dimension. For example, "organization" is a dimension, and specific organizations such as "organization S1" and "organization S2" are specific dimension members under the abstract organization dimension.
[0068] Specifically, the terminal may display a report dimension selection interface, in which at least one report candidate dimension and dimension members under the report candidate dimension are displayed, from which the user may select a target dimension member under a target dimension for generating a report.
[0069] In one embodiment, the report dimension selection interface may include a query area for dimension member codes or names. When there are many dimension members, the user can directly query the dimension members by entering the codes or names of the dimension members in the query area.
[0070] In one embodiment, in the report dimension selection interface, the report candidate dimensions and dimension members under the report candidate dimensions can be displayed in the form of a tree structure. The report candidate dimensions are root nodes, and the dimension members are child nodes. Each report candidate dimension and dimension member has a corresponding selection control, and the user can select the report candidate dimension and dimension member by triggering the selection control.
[0071] It can be understood that dimension members under the same report candidate dimension may have a hierarchical relationship, that is, a dimension member may have subordinate dimension members.
[0072] In one embodiment, the report dimension selection interface may further include a dimension folding and expanding control. By triggering the dimension folding and expanding control, dimension members under the candidate dimension may be folded or expanded.
[0073] refer to Figure 2, the figure shows a specific example of the report dimension selection interface. In this interface, the selection status is displayed as "pending". For the sake of simple illustration, the report dimension selection interface only shows the candidate dimension "organization" for illustration, and does not list all candidate dimensions. There are multiple dimension members under the candidate dimension "organization", such as S1, S2, S3, R1, R2, R3, etc., and there can also be a superior-subordinate relationship between dimension members. For example, the subordinate dimension members of dimension member S1 are R1~R3. Among them, "S1 S1" is used to represent dimension member S1, and the two "S1"s in "S1S1" are dimension member code S1 and dimension member name S1, respectively. "R1 R1" is used to represent the subordinate dimension member R1 of dimension member S1, and respectively represents dimension member code R1 and dimension member name R1. Dimensions and dimension members are in a tree structure. It should be noted that it is not limited to using dimension member code and dimension member name together to represent dimension members. In other embodiments, any one of the two can also be used to represent dimension members. In the report dimension selection interface, dimensions and dimension members have corresponding selection controls for users to select, such as the square control shown in the figure. It can be understood that the form of the control is not limited here, and it can also be a circular or other shaped control. In the query area, "Please enter the code or name and press Enter", the code is the dimension member code, and the name is the corresponding dimension member name. Enter the code or name and press Enter to quickly query the dimension and the dimension members under the dimension.
[0074] Step 104, determine the target dimension member under the target dimension selected from the candidate dimensions of the report; there is at least one target dimension.
[0075] The target dimension is the selected report dimension, and the target dimension member is the selected dimension member.
[0076] Specifically, upon detecting a trigger operation of the report candidate dimension selection control and the dimension member selection control under the corresponding candidate dimension, the terminal can determine the target dimension member under the target dimension selected from the report candidate dimension. The selected target dimension can be one or multiple target dimensions can be selected simultaneously.
[0077] Step 106: When the target dimension member has subordinate dimension members, display a member range selection area corresponding to the target dimension member.
[0078] The subordinate dimension members refer to the dimension members under the target dimension member. The member range selection area is an area used to select the dimension member range.
[0079] Specifically, if it is detected that the target dimension member has a lower-level dimension member, the terminal may select an area in the member range corresponding to the target dimension member.
[0080] Step 108: Obtain the dimension member range selected in the member range selection area.
[0081] Specifically, the member range selection area includes a range selection entry. When the user triggers the range selection entry, the member range options including multiple options can be expanded to prompt the user to select a specific member range option. The terminal can respond to the triggered selection operation for the specific member range option by displaying the selected member range option in the member range selection area and folding the member range option area. The member range option can be below the range selection entry or elsewhere in the member range selection area.
[0082] refer to Figure 3 , a member range selection diagram is shown in the figure. In the member range selection area, the dimension code corresponding to the selected target dimension is displayed as "S1", and the target dimension member name under the target dimension is "S1". After the user triggers the range selection entry, multiple member range options are expanded, such as "Only myself, All subordinates_excluding myself, All subordinates_including myself, All subordinates_only detail members, All subordinates_only non-detail members". For example, the user can select "All subordinates_including myself".
[0083] Step 110, parse the dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension.
[0084] The dimension member set refers to a dimension member set obtained by parsing all dimension members within the dimension member range, and uses the names of specific dimension members as elements of the set.
[0085] Specifically, the terminal may parse the dimension members within the dimension member range according to the acquired dimension member range, and obtain a dimension member set corresponding to the target dimension.
[0086] In one embodiment, when the dimension member range is all subordinate dimension members and includes itself, the terminal can parse the target dimension member under the target dimension and parse the subordinate dimension members of the target dimension member. When the subordinate dimension member still has subordinate dimension members, the subordinate dimension member is continued to be parsed until it is detected that the parsed subordinate dimension member no longer has its subordinate dimension member, the parsing is stopped, and the parsed dimension member is used as the element of the set with the name of the dimension member to obtain the dimension member set.
[0087] In one embodiment, when the dimension member scope is to include only itself, the dimension members within the dimension member scope are only target dimension members.
[0088] In one embodiment, when the dimension member scope is all subordinate dimension members and does not include itself, the dimension members within the dimension member scope include all subordinate dimension members (including direct subordinate dimension members and indirect subordinate dimension members) of the target dimension member.
[0089] refer to Figure 4 , the figure shows a specific example diagram of parsing dimension members within the dimension member range. Figure 4 As shown, the dimension code is "Entity" and the name is "Organization". The dimension member named "S1" is the dimension member under "Organization". Assuming that the selected target dimension is S1, it has subordinate dimension members "R1, R2, R3". Assuming that the dimension member range is "all subordinates_including itself" of "S1", then the parsed result is "S1, R1, R2, R3", and the dimension member set {S1, R1, R2, R3} corresponding to the target dimension "S1" is obtained.
[0090] Step 112, generating a report based on the dimension member set.
[0091] Specifically, the terminal may place members in the dimension member set to specific locations in the report according to the dimension member set obtained by parsing, and then display data related to the dimension members according to the dimension members at the corresponding locations to generate a report.
[0092] In one embodiment, the terminal may place each dimension member in the dimension member set in a row header or a column header in a report to indicate the specific meaning of the data in the row or column.
[0093] In the above report generation method, in the display report dimension selection interface, select the target dimension member under the target dimension, and filter the dimension members that you do not want to display. When the target dimension member has subordinate dimension members, according to the dimension member range selected in the member range selection area corresponding to the target dimension member, the dimension members within the dimension member range are automatically parsed to obtain the dimension member set corresponding to the target dimension, and the report is generated according to the dimension member set, without the need to manually enter the dimension members in the report and store them fixedly, thereby improving the efficiency of generating reports.
[0094] In addition, the reports generated based on the dimension member range selected by the user are more in line with the user's needs and avoid the problem of displaying content that the user does not want to display. This can not only avoid redundant display and save system resources, but also improve the convenience of users in viewing reports by excluding irrelevant content that the user does not want to display.
[0095] In one embodiment, generating a report based on a dimension member set includes: when there are multiple target dimensions selected from the candidate dimensions of the report, determining the Cartesian product of the dimension member sets under each target dimension to obtain a dimension member combination; and generating a report based on the dimension member combination.
[0096] Among them, the Cartesian product is the result of the Cartesian operation. The dimension member combination is obtained by performing Cartesian operations on the dimension member sets under each target dimension. For example, if the two target dimension member sets have 3 and 4 specific dimension members respectively, then the dimension member combination obtained by performing Cartesian operations on the two target dimension member sets is a combination of 12 dimension member sets.
[0097] Specifically, when it is detected that there are multiple target dimensions selected from the candidate dimensions of the report, a Cartesian operation is performed on the dimension member sets under each target dimension to obtain a dimension member combination and generate a report.
[0098] In this embodiment, the terminal directly obtains the dimension member combination by Cartesian operation on the dimension member set, without the need for the user to perform tedious combination of the dimension members, thereby improving efficiency. In addition, it also avoids the error and omission scenarios caused by a large number of manually specified combinations.
[0099] In one embodiment, the multiple target dimensions include target dimensions corresponding to row partitions and target dimensions corresponding to column partitions, and determining the Cartesian product of dimension member sets under each target dimension to obtain dimension member combinations includes: for each partition in the row partition and the column partition, determining the Cartesian product of dimension member sets under different target dimensions in the same partition to obtain dimension member combinations in the row partition and dimension member combinations in the column partition.
[0100] Among them, row partitions are areas divided by rows in a report according to dimensions, and are used to place one or more target dimensions by rows. It can be understood that column partitions are areas divided by columns in a report according to dimensions, and are used to place one or more target dimensions by columns.
[0101] Specifically, for each partition in the row partition and the column partition, the terminal performs a Cartesian operation on the dimension member sets corresponding to different target dimensions in the same partition to obtain the dimension member combination in the row partition and the dimension member combination in the column partition.
[0102] In this embodiment, when there are multiple target dimensions, the terminal can divide the target dimensions into row partitions or column partitions by rows or columns in the report, and perform Cartesian operations based on the dimension member sets under different target dimensions in the same row partition or the same column partition to obtain the dimension member combination of the row partition. There is no need for the user to adjust the target dimensions to each partition in the report and then perform the dimension member combination, which improves efficiency.
[0103] In one embodiment, generating a report based on dimension member combinations includes: using the dimension member combinations in the row partition as the row headers of the report, and using the dimension member combinations in the column partition as the column headers of the report; using the row and column intersections of the dimension member combinations in the row partition and the dimension member combinations in the column partition as the report data display points of the report, and generating the report.
[0104] Among them, the row header is a cell in the report that places the dimension member combination in the row partition, and plays the role of marking the row data with the placed dimension members. The column header is a cell in the report that places the dimension member combination in the column partition, and plays the role of marking the column data with the placed dimension members. The row and column intersection is a cell in the report that is used to store specific data. This cell has both the meaning of a row header mark and a column header mark, and the data in this cell is obtained by the terminal according to the meaning of the row and column intersection.
[0105] Specifically, the terminal uses the dimension member combination in the row partition as the row header of the report, and uses the dimension member combination in the column partition as the column header of the report. According to the row and column intersections of the dimension member combination in the row partition and the dimension member combination in the column partition, the terminal obtains the data corresponding to the row and column intersections into the cells, displays the corresponding data, and generates a report.
[0106] refer to Figure 5 A schematic diagram of generating a report is shown. The report includes row partitions and column partitions. Taking the first row partition as an example, the same partition includes dimension member sets under multiple target dimensions. For example, {S1, R1, R2, R3}, {Series 1, Series 2} and {Amount, Quantity} belong to dimension members under different target dimensions respectively. Cartesian operations are performed on different dimension member sets in the same partition to obtain dimension member combinations. As shown in the figure, (S1, Series 1, Amount) is a dimension member combination in the first row partition. The dimension member combinations in the first row partition and the second row partition are placed in the row header. The dimension member combinations in the column partition are placed in the column header. The terminal can obtain the data corresponding to the row and column intersections of the dimension member combinations in the row partition and the dimension member combinations in the column partition into cells, display the corresponding data, and generate a report. Figure 5 As shown in , after the terminal obtains the data "10000" and "5000" corresponding to the intersection of rows and columns, it displays the data in the report and generates a report.
[0107] In this embodiment, the terminal directly obtains data into cells according to the row and column intersections of the row partition and the column partition identified by the row header and the column header, which can improve the efficiency of generating reports.
[0108] In one embodiment, the report generation method also includes: when a partition setting trigger operation is detected, displaying a report partition setting interface; in response to the partition setting operation on the report partition setting interface, in the row partition setting area or the column partition setting area in the report partition setting interface, respectively corresponding to the row partition or the column partition, setting the target dimension members and the corresponding dimension member range under the target dimension.
[0109] The report partition setting interface is an interface provided to users for partition setting, which is convenient for users to set partitions according to their own needs. The row partition setting area is used to set the row partitions corresponding to the row headers in the report. The column partition setting area is used to set the column partitions corresponding to the column headers in the report.
[0110] Specifically, when the terminal detects a partition setting trigger operation, it displays a report partition setting interface. In the row partition setting area in the report partition setting interface, the user can set the target dimension and the dimension member range under the target dimension to the row partition according to their own needs, and perform a partition setting operation corresponding to the row partition to set which target dimensions and corresponding dimension members need to be placed in the row partition. In response to the partition setting operation, the terminal can set the target dimension members and the corresponding dimension member range under the target dimension in the row partition setting area respectively corresponding to the row partition. The user can also set the target dimension and the dimension member range under the target dimension in the column partition setting area in the report partition setting interface according to their own needs, and perform a partition setting operation corresponding to the column partition to set which target dimensions and corresponding dimension members need to be placed in the column partition. In response to the partition setting operation, the terminal can set the target dimension members and the corresponding dimension member range under the target dimension in the column partition setting area respectively corresponding to the column partition.
[0111] refer to Figure 6 , the figure shows a schematic diagram of the report partition setting interface. As shown in the figure, "row partition setting" identifies the row partition setting area, "organization" is a target dimension in a row partition setting, and "all subordinates of S1_including itself" is the target dimension member and corresponding dimension member range in the same row partition setting. "Series" is another target dimension in a row partition setting, and "Series 1, Series 2" is another target dimension member and corresponding dimension member range in the same row partition setting. Sequence "1" represents the first row partition, and sequence "2" represents the second row partition.
[0112] In this embodiment, the user sets the target dimension members and the corresponding dimension member range through the report partition setting interface. The terminal responds to the partition setting operation on the report partition setting interface, analyzes the partition planning of the target dimension members and the corresponding dimension member range for the report that the user needs to generate, and improves the efficiency of partition planning of the target dimension members and the corresponding dimension member range in the report.
[0113] In one embodiment, the dimension member combination in the row partition is used as the row header of the report, and the dimension member combination in the column partition is used as the column header of the report, including: when there are multiple row partitions, the distribution position of the dimension member combination in each row partition in the row header of the report is determined according to the order in which the multiple row partitions are set in the row partition setting area; when there are multiple column partitions, the distribution position of the dimension member combination in each column partition in the column header of the report is determined according to the order in which the multiple column partitions are set in the column partition setting area.
[0114] Specifically, one or more row partitions can be set in the row partition setting area. When there are multiple row partitions, there is a sequence between the row partitions set. The terminal can determine the distribution position of the dimension member combination in each row partition in the row header of the report according to the sequence in which the multiple row partitions are set in the row partition setting area. The sequence of the distribution position of the dimension member combination of each row partition in the row header matches the sequence in which the row partitions are set in the row partition setting area.
[0115] It can be understood that one or more column partitions can be set in the column partition setting area. When there are multiple column partitions, there is also an order between the set column partitions. The terminal can also determine the distribution position of the dimension member combination in each column partition in the column header of the report according to the order in which the multiple column partitions are set in the column partition setting area. Among them, the order of the distribution position of the dimension member combination of each column partition in the column header matches the order in which the column partitions are set in the column partition setting area.
[0116] In this embodiment, the terminal will determine the distribution position of the dimension member combinations in each partition in the header of the report according to the order in which the multiple partitions are set in the partition setting area. The user does not need to manually distribute the dimension member combinations in the partition to the header of the report, thereby improving the efficiency of distributing the header of the report.
[0117] In one embodiment, the report generation method further includes: displaying a partition order movement control in the row partition setting area and the column partition setting area respectively; and moving the order of the partitions controlled by the partition order movement control in response to a triggering operation on the partition order movement control.
[0118] Among them, the sequential movement control is a control used to move the order of row partitions or column partitions displayed in the report partition setting interface.
[0119] Specifically, the terminal can display the partition order movement control in the row partition setting area and the column partition setting area respectively. The user can trigger the partition order movement control to adjust the order of each partition, and the terminal can respond to the triggering operation of the partition order movement control to move the order of the partitions controlled by the partition order movement control.
[0120] It can be understood that the row partition setting area and the column partition setting area can share the sequential movement control, or corresponding sequential movement controls can be set for the row partition setting area and the column partition setting area respectively.
[0121] refer to Figure 6 , the user can trigger the "up" sequential movement control in the row partition setting area, and the terminal can move the partition "2" of the partition setting interface upward in response to the triggering operation of the "up" sequential movement control.
[0122] In a specific embodiment, when there are multiple partitions, the partitions can be moved up multiple times by triggering the "Move Up" sequence control multiple times. It can be understood that when the set partition information is moved, the serial number corresponding to the partition can be moved together or not. For example, when partition "2" is moved up to the position of partition "1", the serial number can be moved or not.
[0123] It can be understood that when the partition order in the row partition setting area or the column partition setting area is moved, it can be updated to the report accordingly, so that the terminal updates the distribution position of the dimension member combination in each partition in the header according to the order of the moved partitions. Figure 5 Before the order of the row partitions is moved, the dimension member combinations in the first row partition are displayed in the row header of the report. If the first row partition is moved to the second row partition in the row partition setting area, the dimension member combinations in the second row partition will be displayed in the row header first, and then the dimension member combinations in the first row partition will be displayed.
[0124] In a specific embodiment, the terminal may also display corresponding controls for adding partitions and deleting partitions in the row partition setting area and the column partition setting area respectively, and in response to the triggering operation of adding partitions or deleting partition controls, add or delete the partitions controlled by the add partition control or the delete partition control.
[0125] In this embodiment, a sequential movement control is added, and the user can move the partition in the report partition setting interface. The terminal detects the operation of triggering the sequential movement control, and re-plans the distribution position in the partition report according to the order of the partitions after moving in the report partition setting interface, and generates the report, thereby improving the efficiency of report generation.
[0126] In one embodiment, the report generation method further includes: when a dimension member within the dimension member range changes, re-parsing the dimension members within the dimension member range to obtain a re-parsed dimension member set corresponding to the target dimension; and updating the report according to the re-parsed dimension member set.
[0127] Specifically, as business changes or other reasons occur, dimension members within the dimension member range may also change. The terminal can detect whether dimension members within the dimension member range corresponding to each partition in the report have changed according to a preset period or in real time. When it is detected that the dimension members within the dimension member range have changed, the terminal can re-parse the dimension members within the dimension member range to obtain a re-parsed dimension member set corresponding to the target dimension, and then update the report based on the re-parsed dimension member set.
[0128] In other embodiments, when a dimension member within the dimension member range changes, the terminal may also receive a change notification, and after receiving the change notification, re-parse the dimension members within the dimension member range to update the report.
[0129] In a specific embodiment, for the same partition setting, such as "all subordinates_including itself" of organization "S1", when the actual range of dimension members changes, such as "S1" adds subordinates "R4, R5", the actual content displayed in the report will also be parsed in real time to add the added dimension members, that is, the corresponding partition of the report will also add "R4, R5" and other partition dimension members after the Cartesian dimension member combination.
[0130] In this embodiment, the terminal detects changes in dimension members in real time. When a dimension member changes, the report is updated accordingly without manual updating, which can improve the efficiency of updating the report content.
[0131] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0132] In one embodiment, Figure 7As shown, a report generation device 700 is provided, comprising: a display module 702, a determination module 704, an acquisition module 706, a parsing module 708 and a generation module 710, wherein:
[0133] The display module 702 is used to display a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension.
[0134] The determination module 704 is used to determine the target dimension member under the target dimension selected from the candidate dimensions of the report; there is at least one target dimension.
[0135] The display module 702 is further configured to display a member range selection area corresponding to the target dimension member when the target dimension member has subordinate dimension members.
[0136] The acquisition module 706 is used to acquire the dimension member range selected in the member range selection area.
[0137] The parsing module 708 is used to parse the dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension.
[0138] The generating module 710 is used to generate a report according to the dimension member set.
[0139] In one embodiment, the generation module 710 is also used to determine the Cartesian product of the dimension member sets under each target dimension when there are multiple target dimensions selected from the candidate report dimensions, to obtain a dimension member combination; and generate a report according to the dimension member combination.
[0140] In one embodiment, the determination module 704 is also used to determine, for each partition in the row partition and the column partition, the Cartesian product of the dimension member sets corresponding to different target dimensions in the same partition to obtain the dimension member combination in the row partition and the dimension member combination in the column partition.
[0141] In one embodiment, the generation module 710 is also used to use the dimension member combination in the row partition as the row header of the report, and the dimension member combination in the column partition as the column header of the report; and use the row and column intersection points of the dimension member combination in the row partition and the dimension member combination in the column partition as the report data display points of the report to generate a report.
[0142] In one embodiment, the display module 702 is also used to display the report partition setting interface when a partition setting trigger operation is detected; in response to the partition setting operation on the report partition setting interface, the acquisition module is also used to set the target dimension members and the corresponding dimension member range under the target dimension in the row partition setting area or the column partition setting area in the report partition setting interface, corresponding to the row partition or the column partition, respectively.
[0143] In one embodiment, the determination module 704 is also used to determine the distribution position of the dimension member combination in each row partition in the row header of the report according to the order in which the multiple row partitions are set in the row partition setting area when there are multiple row partitions; when there are multiple column partitions, the determination module is also used to determine the distribution position of the dimension member combination in each column partition in the column header of the report according to the order in which the multiple column partitions are set in the column partition setting area.
[0144] In one embodiment, the display module 702 is also used to display the partition order movement control in the row partition setting area and the column partition setting area respectively; in response to the triggering operation of the partition order movement control, the order of the partitions controlled by the partition order movement control is moved.
[0145] In one embodiment, the acquisition module 706 is also used to re-parse the dimension members within the dimension member range when the dimension members within the dimension member range change, and obtain the re-parsed dimension member set corresponding to the target dimension; and update the report according to the re-parsed dimension member set.
[0146] The specific definition of the report generation device can be found in the definition of the report generation method above, which will not be repeated here. Each module in the above report generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0147] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a report generation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0148] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0149] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the report generation method of the above various embodiments when executing the computer program.
[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the report generation method of the above-mentioned various embodiments is implemented.
[0151] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A report generation method, characterized in that: The method comprises: Displaying a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension; Determine a target dimension member under a target dimension selected from the candidate dimensions of the report; the target dimension is at least one; each of the target dimensions includes a target dimension corresponding to a row partition and a target dimension corresponding to a column partition; When the target dimension member has a subordinate dimension member, a member range selection area corresponding to the target dimension member is displayed; the subordinate dimension member is a dimension member subordinate to the target dimension member; When a trigger operation is received for a range selection entry in the member range selection area, a member range option including a plurality of options is expanded, and in response to the triggered selection operation for the member range option, a selected dimension member range is determined; Parsing the dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension; When there are multiple target dimensions selected from the candidate dimensions of the report, for each partition in the row partition and the column partition, determine the Cartesian product of the dimension member sets corresponding to different target dimensions in the same partition, and obtain the dimension member combination in the row partition and the dimension member combination in the column partition; use the dimension member combination in the row partition as the row header of the report, and use the dimension member combination in the column partition as the column header of the report; use the row and column intersections of the dimension member combination in the row partition and the dimension member combination in the column partition as the report data display point of the report, and generate a report; The row header is a cell in the report that places the dimension member combination in the row partition; the column header is a cell in the report that places the dimension member combination in the column partition; the row-column intersection is a cell in the report that is used to store specific data; Wherein, the method further comprises: When a partition setting trigger operation is detected, the report partition setting interface is displayed; In response to the partition setting operation on the report partition setting interface, the row partition setting area or the column partition setting area in the report partition setting interface respectively corresponds to the row partition or the column partition, and sets the target dimension members and the corresponding dimension member range under the target dimension.
2. The method according to claim 1, characterized in that There is a hierarchical relationship between dimension members under the same report candidate dimension.
3. The method according to claim 1, characterized in that The step of using the dimension member combination in the row partition as the row header of the report and using the dimension member combination in the column partition as the column header of the report includes: When there are multiple row partitions, the distribution positions of the dimension member combinations in each row partition in the row header of the report are determined according to the order in which the multiple row partitions are set in the row partition setting area; When there are multiple column partitions, the distribution positions of the dimension member combinations in the column partitions in the column header of the report are determined according to the order in which the multiple column partitions are set in the column partition setting area.
4. The method according to claim 3, characterized in that The method further comprises: Displaying a partition order movement control in the row partition setting area and the column partition setting area respectively; In response to a triggering operation on the partition order movement control, the order of the partitions controlled by the partition order movement control is moved.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When a dimension member within the dimension member range changes, Re-analyzing the dimension members within the dimension member range to obtain a re-analyzed dimension member set corresponding to the target dimension; The report is updated according to the dimension member set obtained by re-parsing.
6. A report generation device, characterized in that: The device comprises: A display module, used to display a report dimension selection interface; the report dimension selection interface includes at least one report candidate dimension and dimension members under the report candidate dimension; A determination module, used to determine a target dimension member under a target dimension selected from the candidate dimensions of the report; the target dimension is at least one; each of the target dimensions includes a target dimension corresponding to a row partition and a target dimension corresponding to a column partition; The display module is further used to display a member range selection area corresponding to the target dimension member when the target dimension member has a subordinate dimension member; the subordinate dimension member is a dimension member subordinate to the target dimension member; An acquisition module is configured to expand a member range option including a plurality of options when a trigger operation is received on a range selection entry in the member range selection area, and determine a selected dimension member range in response to the triggered selection operation on the member range option; A parsing module, used for parsing dimension members within the dimension member range to obtain a dimension member set corresponding to the target dimension; A generating module, for determining, for each partition in the row partition and the column partition, the Cartesian product of the dimension member sets corresponding to different target dimensions in the same partition when there are multiple target dimensions selected from the candidate dimensions of the report, to obtain the dimension member combination in the row partition and the dimension member combination in the column partition; using the dimension member combination in the row partition as the row header of the report, and using the dimension member combination in the column partition as the column header of the report; using the row and column intersections of the dimension member combination in the row partition and the dimension member combination in the column partition as the report data display points of the report, and generating a report; The row header is a cell in the report that places the dimension member combination in the row partition; the column header is a cell in the report that places the dimension member combination in the column partition; the row-column intersection is a cell in the report that is used to store specific data; Among them, the display module is also used to display the report partition setting interface when a partition setting trigger operation is detected; in response to the partition setting operation on the report partition setting interface, the acquisition module is also used to set the target dimension members and the corresponding dimension member range under the target dimension in the row partition setting area or column partition setting area in the report partition setting interface, corresponding to the row partition or column partition respectively.
7. The device according to claim 6, characterized in that The acquisition module is also used to re-parse the dimension members within the dimension member range when the dimension members within the dimension member range change, to obtain a re-parsed dimension member set corresponding to the target dimension; and to update the report according to the re-parsed dimension member set.
8. The device according to claim 6, characterized in that The determination module is also used to determine the distribution position of the dimension member combination in each row partition in the row header of the report according to the order in which the multiple row partitions are set in the row partition setting area when there are multiple row partitions; when there are multiple column partitions, the determination module is also used to determine the distribution position of the dimension member combination in each column partition in the column header of the report according to the order in which the multiple column partitions are set in the column partition setting area.
9. The device according to claim 8, characterized in that The display module is also used to display the partition order movement control in the row partition setting area and the column partition setting area respectively; in response to the triggering operation of the partition order movement control, the order of the partitions controlled by the partition order movement control is moved.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
