Index data calculation method and system based on power grid business
By determining business indicators, identifying business information and building indicator formulas in power grid services, the problem that existing technology is difficult to meet the dynamic computing needs of power grid services is solved, and flexible and efficient indicator data calculation is achieved.
Patent Information
- Application Number
- CN202411679943.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-04-04
AI Technical Summary
The existing indicator data calculation methods are difficult to meet the calculation needs of dynamically oriented network service users according to the dimensions of business data indicators.
A method for calculating indicator data based on power grid services is proposed. By determining business indicators, identifying business information, setting formula elements and dimension vectors, an index formula is formed, and the calculation is carried out based on business data.
It has achieved the dynamic computing needs of users of power grid business, simplified the calculation logic of complex indicators, and improved computing flexibility and user experience.
Smart Images

Figure CN119761882A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power grid system calculation, and in particular relates to a method and system for calculating index data based on power grid business. Background Art
[0002] With the development of the digital economy, the role of data in the production and operation process has become increasingly prominent. Data is produced or comes from all aspects of society. We should strengthen the collection and processing of data, find patterns and explore value from data, give full play to the role of data as a basic resource and innovation engine, promote the digital transformation of enterprises, serve the development of the digital economy, and promote the modernization of governance systems and governance capabilities.
[0003] Index data plays an extremely important role in the management of enterprises and institutions. It is not only the basis for decision-making, but also helps enterprises and institutions to achieve quantitative management and monitoring of business goals, gain insights into market trends, customer needs, and product opportunities. At the same time, it helps enterprises improve operational efficiency, optimize decision support, drive product innovation, and improve customer satisfaction.
[0004] At present, enterprises and institutions have a variety of methods for calculating indicator data according to the needs of different business scenarios, including basic arithmetic, algebraic calculations, geometric calculations, probability and statistics calculations, calculus calculations, and combinatorial optimization calculations, etc., to complete the calculation of business indicator data on demand.
[0005] However, existing indicator data calculations are based on clear data entities, entity dimensions and data measurement items, and are calculated through assembly, change and aggregation, which makes it difficult to meet the dynamic calculation requirements of power grid business users based on the dimensions of business data indicators. Summary of the invention
[0006] In order to overcome the above-mentioned deficiencies of the prior art, in a first aspect, the present invention proposes a method for calculating index data based on power grid services, comprising:
[0007] Determine the business indicators to be defined by formulas according to the types of power grid services obtained;
[0008] According to the business characteristics of the business indicator, business information of the business indicator is identified; the business information includes: a calculation range, a calculation dimension, a calculation cycle and a calculation condition of the business indicator;
[0009] Based on the business information and the formula type corresponding to the business information, in a visualization interface, formula elements and formula dimension vectors of the business indicator are set to form an indicator formula;
[0010] Based on the business data of the power grid business and the indicator formula, the indicator data of the power grid business is calculated.
[0011] Preferably, based on the business information and the formula type corresponding to the business information, formula elements and formula dimension vectors of the business indicators are set in a visualization interface to form an indicator formula, including:
[0012] Based on the business information and the formula type corresponding to the business information, in a visualization interface of the formula element, the business indicator, the measurement item of the business indicator, the calculation function of the business indicator and the operator are selected to form a formula element;
[0013] In the visualization interface of the formula dimension vector, multiple attribute dimensions of the business indicator are selected to form multiple formula dimension vectors;
[0014] Based on the formula element and each of the formula dimension vectors, an indicator formula including a dimension vector is generated in a visualization interface of the formula element.
[0015] Preferably, before selecting multiple attribute dimensions of the business indicator in the visualization interface of the formula dimension vector to form multiple formula dimension vectors, the method further includes:
[0016] If the formula type is a custom formula, a visualization interface with basic information added to the indicator formula is displayed;
[0017] In the visualization interface for adding basic information to the indicator formula, the formula name, formula description, priority and precision of the indicator formula input by the user are obtained;
[0018] When the indicator formula window in the visualization interface for adding basic information to the indicator formula is selected by the user, a visualization interface for the formula elements pops up.
[0019] Preferably, before selecting multiple attribute dimensions of the business indicator in the visualization interface of the formula dimension vector to form multiple formula dimension vectors, the method further includes:
[0020] In the visualization interface of the formula element, when it is recognized that a user has selected an indicator name, a visualization interface of the formula dimension vector of the indicator name pops up.
[0021] Preferably, before the formula elements and the formula dimension vectors of the business indicators are set in the visualization interface based on the business information and the formula type corresponding to the business information to form the indicator formula, the method further includes:
[0022] If the formula type is a general formula, the indicator formula of the business indicator selected by the user in the general formula list is obtained.
[0023] Preferably, the general formula includes: cumulative value formula, same period value formula, cumulative value formula for the same month of the previous year, year-on-year growth rate formula for this month, cumulative year-on-year increase or decrease formula for this month, cumulative year-on-year increase or decrease formula, month-on-month growth rate formula for this month, month-on-month increase or decrease formula for this month.
[0024] Preferably, the calculation dimensions include: the business object corresponding to the business indicator, the period of the power grid business, and the time when the power grid business occurs.
[0025] In a second aspect, the present invention also proposes an indicator data calculation system based on power grid business, comprising:
[0026] A business indicator determination module is used to determine the business indicator to be defined by the formula according to the type of power grid business obtained;
[0027] A business information identification module, used to identify business information of the business indicator according to the business characteristics of the business indicator; the business information includes: the calculation range, calculation dimension, calculation cycle and calculation condition of the business indicator;
[0028] An indicator formula composition module, used to set the formula elements and formula dimension vectors of the business indicator in a visualization interface based on the business information and the formula type corresponding to the business information to form an indicator formula;
[0029] The indicator data calculation module is used to calculate the indicator data of the power grid business based on the business data of the power grid business and the indicator formula.
[0030] Preferably, the indicator formula constituting module includes:
[0031] A formula element composition submodule, configured to select the business indicator, the measurement item of the business indicator, the calculation function of the business indicator and the operator in a visualization interface of the formula element based on the business information and the formula type corresponding to the business information to form a formula element;
[0032] A formula dimension vector selection submodule, used to select multiple attribute dimensions of the business indicator in a visualization interface of the formula dimension vector to form multiple formula dimension vectors;
[0033] The indicator formula submodule is used to generate an indicator formula containing a dimension vector in a visualization interface of the formula element based on the formula element and each of the formula dimension vectors.
[0034] Preferably, the system also includes: a visualization interface construction module for basic information, which is used to display a visualization interface for adding basic information to the indicator formula if the formula type is a custom formula; in the visualization interface for adding basic information to the indicator formula, obtain the formula name, formula description, priority and precision of the indicator formula input by the user; when the indicator formula window in the visualization interface for adding basic information to the indicator formula is selected by the user, a visualization interface for the formula element pops up.
[0035] Preferably, the system further comprises: a visualization interface construction module of a formula dimension vector, which is used to pop up a visualization interface of the formula dimension vector of the indicator name in the visualization interface of the formula element when it is recognized that the user has selected the indicator name.
[0036] Preferably, the indicator formula composition module is further used for: if the formula type is a general formula, obtaining the indicator formula of the business indicator selected by the user in the general formula list.
[0037] Preferably, the general formula includes: cumulative value formula, same period value formula, cumulative value formula for the same month of the previous year, year-on-year growth rate formula for this month, cumulative year-on-year increase or decrease formula for this month, cumulative year-on-year increase or decrease formula, month-on-month growth rate formula for this month, month-on-month increase or decrease formula for this month.
[0038] Preferably, the calculation dimensions include: the business object corresponding to the business indicator, the period of the power grid business, and the time when the power grid business occurs.
[0039] In a third aspect, the present invention application further proposes an electronic device, comprising: at least one processor and a memory; the memory and the processor are connected via a bus;
[0040] The memory is used to store one or more programs;
[0041] When the one or more programs are executed by the at least one processor, the method for calculating indicator data based on power grid services is implemented.
[0042] In a fourth aspect, the present invention application further proposes a readable storage medium having an execution program stored thereon, and when the execution program is executed, the method for calculating indicator data based on power grid business is implemented.
[0043] Compared with the closest prior art, the present invention has the following beneficial effects:
[0044] The present invention applies for an indicator data calculation method and system based on power grid business, including: determining the business indicator to be defined by the formula according to the type of power grid business obtained; identifying the business information of the business indicator according to the business characteristics of the business indicator; the business information includes: the calculation range, calculation dimension, calculation cycle and calculation condition of the business indicator; based on the business information and the formula type corresponding to the business information, setting the formula elements and formula dimension vectors of the business indicator in a visualization interface to form an indicator formula; based on the business data of the power grid business and the indicator formula, calculating the indicator data of the power grid business. The present invention takes the power grid business into consideration, and sets the formula elements and formula dimension vectors of the business indicators in a visualization interface to form an indicator formula, and then calculates the indicator data based on the indicator formula, so as to realize the calculation according to the dimensions of the business data indicators that meet the dynamics of the power grid business users. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a method for calculating index data based on power grid business provided by the present invention;
[0046] Figure 2 A schematic diagram of a visualization interface of formula elements provided by the present invention;
[0047] Figure 3 A schematic diagram of a visualization interface of a formula dimension vector provided in the present invention application;
[0048] Figure 4 A flowchart of the steps for calculating the business indicators provided by the present invention;
[0049] Figure 5 An architectural diagram of an indicator data calculation system based on power grid business provided by the present invention;
[0050] Figure 6 A schematic diagram of the operation of an electronic device provided in the present invention application. DETAILED DESCRIPTION
[0051] The specific implementation methods of the present invention are further described in detail below with reference to the accompanying drawings.
[0052] Embodiment 1:
[0053] like Figure 1 As shown, the present invention provides a method for calculating index data based on power grid business, comprising the following steps:
[0054] Step 1: Determine the business indicators to be defined by the formula according to the type of power grid business obtained;
[0055] Step 2: According to the business characteristics of the business indicator, business information of the business indicator is identified; the business information includes: calculation scope, calculation dimension, calculation cycle and calculation condition of the business indicator;
[0056] Step 3: Based on the business information and the formula type corresponding to the business information, in the visualization interface, set the formula elements and formula dimension vectors of the business indicator to form an indicator formula;
[0057] Step 4: Based on the business data of the power grid business and the indicator formula, calculate the indicator data of the power grid business.
[0058] In the above step 1, according to the business type, select a specific and unique business indicator for formula definition;
[0059] In the above step 2, the calculation dimensions include: the business object corresponding to the business indicator, the period of the power grid business, and the time when the power grid business occurs.
[0060] The calculation scope of the above-mentioned business indicators may include: calculation of a single business indicator and calculation of a combination of multiple business indicators; the above-mentioned business objects may include: power generation, time and unit of power plants, transformers, etc.
[0061] In the above step 3, the formula type may include general formulas and custom formulas. General formulas refer to formulas that can adapt to data calculations of most indicators.
[0062] The above-mentioned general formulas include: cumulative value formula, same period value formula, cumulative value formula for the same month of the previous year, year-on-year growth rate formula for this month, cumulative year-on-year growth rate formula, year-on-year increase or decrease formula for this month, cumulative year-on-year increase or decrease formula, month-on-month growth rate formula for this month, month-on-month increase or decrease formula for this month. The list of general formulas is as follows Table 1:
[0063] Table 1 List of general formulas for indicators
[0064] Serial number Formula Name Remark 1 Cumulative value Calculation of cumulative indicator value 2 Same period value Calculation of the same period value of the indicator 3 Cumulative value of the same month of the previous year Calculation of cumulative value of the same month of the previous year 4 This month's year-on-year growth rate Calculation of year-on-year growth rate this month 5 Cumulative year-on-year growth rate Cumulative year-on-year growth rate calculation 6 This month's year-on-year change Calculation of year-on-year increase or decrease this month 7 Cumulative year-on-year increase or decrease Cumulative year-on-year increase or decrease calculation 8 Month-on-month growth rate Month-on-month growth rate calculation for this month 9 Month-on-month change Month-on-month increase or decrease calculation for this month 10 ...... ......
[0065] In the above, before the formula elements and the formula dimension vectors of the business indicators are set in the visualization interface based on the business information and the formula type corresponding to the business information to form the indicator formula, the method further includes:
[0066] If the formula type is a general formula, the indicator formula of the business indicator selected by the user in the general formula list is obtained.
[0067] In the above, the formula elements and formula dimension vectors of the business indicators are set in the visualization interface based on the business information and the formula type corresponding to the business information to form the indicator formula, which may include:
[0068] Step 3.1, based on the business information and the formula type corresponding to the business information, in a visualization interface of the formula element, select the business indicator, the measurement item of the business indicator, the calculation function of the business indicator and the operator to form a formula element;
[0069] Step 3.2, in the visualization interface of the formula dimension vector, select multiple attribute dimensions of the business indicator to form multiple formula dimension vectors;
[0070] Step 3.3, based on the formula element and each of the formula dimension vectors, generate an indicator formula containing a dimension vector in the visualization interface of the formula element.
[0071] The above step 3.2, before selecting multiple attribute dimensions of the business indicator in the visualization interface of the formula dimension vector to form multiple formula dimension vectors, may also include:
[0072] In the visualization interface of the formula element, when it is recognized that a user has selected an indicator name, a visualization interface of the formula dimension vector of the indicator name pops up.
[0073] In the above step 3.2, before selecting multiple attribute dimensions of the business indicator in the visualization interface of the formula dimension vector to form multiple formula dimension vectors, the following may also be included:
[0074] If the formula type is a custom formula, a visualization interface with basic information added to the indicator formula is displayed;
[0075] In the visualization interface for adding basic information to the indicator formula, the formula name, formula description, priority and precision of the indicator formula input by the user are obtained;
[0076] When the indicator formula window in the visualization interface for adding basic information to the indicator formula is selected by the user, a visualization interface for the formula elements pops up.
[0077] In the above-mentioned visualization interface for adding basic information of the indicator formula, it is possible to add basic information of a custom formula, and the basic information includes: formula id (Identity document), formula name, formula description, priority and precision and other field information;
[0078] After adding basic information in the visualization interface for adding basic information to the indicator formula, enter the sequence number of the basic information to automatically generate the formula name, formula id, priority and progress information of the basic information. The formula description and indicator formula will be automatically filled in later. You can generate a basic information list in the visualization interface for adding basic information to the indicator formula, as shown in Table 2 below:
[0079] Table 2 Basic information of indicator formula
[0080] Serial number Formula Name Formula ID Formula Description Indicator formula Priority Accuracy 1 Indicator formula 1 001 2 4 2 Indicator formula 2 002 2 4 3 Indicator formula 3 003 2 4 4 Indicator formula 4 004 2 4 5 ...... ...... ...... ...... ...... ......
[0081] Then, in the basic information of the indicator formula, click the "Indicator Formula" cell to pop up the visualization interface of the indicator formula elements; Figure 2 As shown in the figure, in the interface, the information such as the drag indicator, the indicator's measurement item, the calculation function, and the operator are visualized as the elements of the calculation formula;
[0082] like Figure 3 As shown in the figure, in the visualization interface of the formula dimension vector, click the business indicator to set the dimension vector information of the business indicator. Click "Confirm" to return to the indicator formula basic information interface, and assign the indicator formula description and indicator formula to the corresponding fields in Table 2.
[0083] Custom formulas include single indicator formulas and multi-indicator formulas; for single indicator formulas, as shown in Table 3 below, the programming of the elements displayed in JSON (JavaScript Object Notation, data exchange) format is as follows:
[0084] {
[0085] obj:{class: "dept", code: "001", lvlR:-1, filter: ""},
[0086] date:[-1,0],
[0087] item: "10000000001",
[0088] func: "sum",
[0089] timeType: "TD01"
[0090] }
[0091] In the first line: obj is the business object, class is the business category, dept is the unit of the business category, code is the specific code value 001, lvlR is the relative level (-1 means lower level, 1 means upper level, relative level), filter is the filtering condition;
[0092] In the second line, date is a date, which means that when the data is counted monthly, it is automatically positioned to the previous month of the current month. For example, if the current month is October 2024, date:[-1,0] means October 2023.
[0093] In the third line, item indicates the selected business indicator 10000000001;
[0094] In the fourth line, func: "sum", indicates the aggregation mode;
[0095] In the fifth row, timeType indicates a calculated column, that is, the value of a single business indicator for this month, and TD01 is the column code.
[0096] The above JSON format identifier: The attributes in the curly brackets are the attribute dimensions of the calculated indicator data, such as business object, business period, business time, etc., which can be set in combination with the actual indicator calculation logic; the list of JSON format identifier elements is shown in Table 3 below;
[0097] Table 3 JSON format identification elements
[0098]
[0099]
[0100] Other formulas can also be introduced in the JSON format identifier, as shown below:
[0101] The formula for the year-on-year growth rate of this period is: {} / {date:[-1]}-1 or {} / {date:[-1,0]}-1; it means: current period value / last year's value-1, where {} defaults to the current period value; the current period is compared with the same period last year to determine the year-on-year growth rate of this period;
[0102] The formula for the month-on-month growth rate this month is: {} / {date:[0,-1]}-1; it means: this period's value / last month's value-1, where date:[0,-1] means last month's value;
[0103] The formula for the cumulative year-on-year growth rate is: {date:[[0,1],[]]}+0 or {date:[[0,1],[0,0]]}+0; which means: calculate the sum of all values from January of this year ([0,1]) to this month ([] or [0,0]);
[0104] The cumulative calculation formula for the same indicator of the subordinate unit is: {obj:{lvlR:-1}}+0; sum the data of the same indicator of all subordinate units;
[0105] In the above step 3.3, after generating the indicator formula containing the dimension vector, the currently defined indicator formula is saved. By repeating the above operation multiple times, different calculation formulas can be added to the business indicator to meet the formula requirements for various calculations of a business indicator.
[0106] In the above step 4, when calculating the index data of the power grid business, the corresponding index formula can be bound for calculation according to the business requirements. After the calculation is completed, the calculation result of the index formula is saved.
[0107] The specific meanings of the above-mentioned multidimensional vectors, indicators, and data calculations of the present invention are as follows:
[0108]
[0109] Example: Figure 4 As shown: The implementation steps of the business indicator calculation of the present invention mainly involve eight parts, and the main contents are: first, selecting the calculation indicator; second, identifying the indicator calculation business; third, selecting the definition formula type; fourth, visually setting the formula definition elements; fifth, setting the formula dimension vector information; sixth, saving the indicator formula with the dimension vector information set; seventh, selecting the indicator formula to calculate the indicator data for the power grid business; and eighth, saving the calculation results of the indicator data.
[0110] The technical solution provided by the present invention solves the following problems:
[0111] 1) Expressed with unique custom formulas, the calculation formula definition of indicators based on dynamic data entities, dimensions and data measurement items is realized during the calculation process.
[0112] 2) Taking the multi-dimensional vector relationship of business detail data as its feature, the calculation scope, calculation dimension, calculation cycle and calculation conditions of business indicators are dynamically defined, and the calculation logic of complex indicators is simplified.
[0113] 3) With a visual definition interface and drag-and-drop operation mode, single indicator formula definition and indicator combination calculation definition can be realized, which can enhance application perception and improve user experience.
[0114] 4) The common formula definitions are precipitated to form a list of common indicator formulas, which can be applied and shared to avoid repeated definitions of indicator formulas and improve the ability to quickly apply existing formulas;
[0115] 5) Define formulas based on individual indicators. Multiple formula definitions can be implemented according to business needs. During operation, you can choose to set formulas that meet the business needs for calculation, thereby improving the adaptability of indicator calculation business.
[0116] The existing technology is difficult to meet the needs of dynamic and relative data entities, entity dimensions, and dimension vectors for business users. Based on the unit, time, and multi-dimensional vector characteristics of related attribute information of power grid business data, the present invention flexibly defines the calculation range, calculation dimension, calculation cycle, and calculation conditions of business indicators in a unique definition method and expression form, simplifies the calculation logic of complex indicators, and improves the flexibility of indicator calculation under dynamic condition changes. It can meet the needs of dynamic and relative data entities, entity dimensions, and dimension vectors for business users. Calculation of indicator data provides quantitative and reliable indicator data for enterprises to make timely and accurate business decisions.
[0117] In view of the indicator data collection and application requirements in the power grid business needs, the present invention designs an indicator data calculation method based on the power grid business. Based on the attribute characteristics of the business data, the method realizes indicator selection, indicator business information identification, indicator formula type selection, indicator formula definition, multi-dimensional vector information setting, indicator formula preservation, indicator formula calculation and indicator data storage. Through simple and convenient visual drag and drop operations, the difficulty of indicator formula definition and operation is reduced; through unique formula custom expressions and familiar JSON representations, the definition, parsing and calculation of indicator formulas based on business detail data are efficiently completed;
[0118] The present invention effectively solves the problem of business calculation based on multi-attribute, multi-level and multi-period business detail data, and can provide operation definitions for business users, lowering the technical usage threshold for users, and providing quantitative standard indicator data for various power grid business calculations. It can measure the status, progress or effectiveness of various power grid business activities, and facilitate the understanding and evaluation of complex power grid business data sets, as well as the understanding of the current status of power grid business such as market operation and production development; it provides indicator data support for business decisions and development strategies for power grid operations.
[0119] Embodiment 2:
[0120] like Figure 5 As shown, the present invention provides an indicator data calculation system based on power grid business, including:
[0121] A business indicator determination module is used to determine the business indicator to be defined by the formula according to the type of power grid business obtained;
[0122] A business information identification module, used to identify business information of the business indicator according to the business characteristics of the business indicator; the business information includes: the calculation range, calculation dimension, calculation cycle and calculation condition of the business indicator;
[0123] An indicator formula composition module, used to set the formula elements and formula dimension vectors of the business indicator in a visualization interface based on the business information and the formula type corresponding to the business information to form an indicator formula;
[0124] The indicator data calculation module is used to calculate the indicator data of the power grid business based on the business data of the power grid business and the indicator formula.
[0125] Furthermore, the indicator formula constitutes a module, including:
[0126] A formula element composition submodule, configured to select the business indicator, the measurement item of the business indicator, the calculation function of the business indicator and the operator in a visualization interface of the formula element based on the business information and the formula type corresponding to the business information to form a formula element;
[0127] A formula dimension vector selection submodule, used to select multiple attribute dimensions of the business indicator in a visualization interface of the formula dimension vector to form multiple formula dimension vectors;
[0128] The indicator formula submodule is used to generate an indicator formula containing a dimension vector in a visualization interface of the formula element based on the formula element and each of the formula dimension vectors.
[0129] Furthermore, the system also includes: a visualization interface construction module for basic information, which is used to display a visualization interface for adding basic information to the indicator formula if the formula type is a custom formula; in the visualization interface for adding basic information to the indicator formula, obtain the formula name, formula description, priority and precision of the indicator formula input by the user; when the indicator formula window in the visualization interface for adding basic information to the indicator formula is selected by the user, a visualization interface for the formula element pops up.
[0130] Furthermore, the system also includes: a visualization interface construction module for the formula dimension vector, which is used to pop up the visualization interface of the formula dimension vector of the indicator name in the visualization interface of the formula element when it is recognized that the user has selected the indicator name.
[0131] Furthermore, the indicator formula composition module is also used to: if the formula type is a general formula, obtain the indicator formula of the business indicator selected by the user in the general formula list.
[0132] Furthermore, the general formula includes: cumulative value formula, same period value formula, cumulative value formula for the same month of the previous year, year-on-year growth rate formula for this month, cumulative year-on-year increase or decrease formula for this month, cumulative year-on-year increase or decrease formula, month-on-month growth rate formula for this month, and month-on-month increase or decrease formula for this month.
[0133] Furthermore, the calculation dimensions include: the business object corresponding to the business indicator, the period of the power grid business, and the time when the power grid business occurs.
[0134] Furthermore, the system also includes a storage module, and the storage module is used to save the indicator formula and the calculation result of the indicator formula.
[0135] The system of the present invention is based on a new generation of planning and planning management platform - Online Power Grid (PIS, Online Powergrid), which can focus on integrating data on the ubiquitous power Internet of Things, aim at scientifically leading the planning and development of a strong and intelligent power grid, and create a visual power grid application platform with integrated graphics, online interaction, and artificial intelligence. It can innovate the power grid development business model of online management, on-graph operations, and online services, and promote the realization of online planning of power grids, online construction of power grids, and online operation of power grids. The index data calculation system based on power grid business can be used as an online power grid index data calculation component, and has been implemented in many units and business lines of power grid companies to achieve efficient calculation of index data based on business detail data.
[0136] The indicator data calculation system based on power grid business can efficiently support business users to carry out visual definition and calculation of enterprise indicator calculation formulas based on business detailed data. The formula setting, parsing and calculation based on multi-dimensional vector relationships effectively solve the business calculation problems of multi-attribute, multi-level and multi-cycle power grid business data, improve the flexibility of enterprise power grid indicator data calculation, and provide quantitative and reliable indicator data support for enterprises to make accurate business decisions in a timely manner.
[0137] Embodiment 3:
[0138] like Figure 6 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.
[0139] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of an indicator data calculation method based on power grid business in the above-mentioned embodiment.
[0140] Embodiment 4:
[0141] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It can be understood that the storage medium here can include both built-in storage media in electronic devices and, of course, extended storage media supported by electronic devices. The storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more execution programs (including program codes). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a method for calculating indicator data based on power grid business in the above embodiment.
[0142] Those skilled in the art will appreciate that the embodiments of the present invention application can be provided as methods, systems, or computer program products. Therefore, the present invention application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present invention application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0143] The present invention application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention application rather than to limit its protection scope. Although the present invention application is described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that after reading the present invention application, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the protection scope of the claims to be approved.
Claims
1. A method for calculating index data based on power grid business, characterized in that: include: Determine the business indicators to be defined by formulas according to the types of power grid services obtained; identifying business information of the business indicator according to the business characteristics of the business indicator; The business information includes: the calculation scope, calculation dimension, calculation cycle and calculation conditions of the business indicator; Based on the business information and the formula type corresponding to the business information, in a visualization interface, formula elements and formula dimension vectors of the business indicator are set to form an indicator formula; Based on the business data of the power grid business and the indicator formula, the indicator data of the power grid business is calculated.
2. The method according to claim 1, characterized in that The formula elements and the formula dimension vectors of the business indicators are set in a visualization interface based on the business information and the formula type corresponding to the business information to form an indicator formula, including: Based on the business information and the formula type corresponding to the business information, in a visualization interface of the formula element, the business indicator, the measurement item of the business indicator, the calculation function of the business indicator and the operator are selected to form a formula element; In the visualization interface of the formula dimension vector, multiple attribute dimensions of the business indicator are selected to form multiple formula dimension vectors; Based on the formula element and each of the formula dimension vectors, an indicator formula including a dimension vector is generated in a visualization interface of the formula element.
3. The method according to claim 2, characterized in that Before selecting multiple attribute dimensions of the business indicator in the visualization interface of the formula dimension vector to form multiple formula dimension vectors, the method further includes: If the formula type is a custom formula, a visualization interface with basic information added to the indicator formula is displayed; In the visualization interface for adding basic information to the indicator formula, the formula name, formula description, priority and precision of the indicator formula input by the user are obtained; When the indicator formula window in the visualization interface for adding basic information to the indicator formula is selected by the user, a visualization interface for the formula elements pops up.
4. The method according to claim 2 or 3, characterized in that: Before selecting multiple attribute dimensions of the business indicator in the visualization interface of the formula dimension vector to form multiple formula dimension vectors, the method further includes: In the visualization interface of the formula element, when it is recognized that a user has selected an indicator name, a visualization interface of the formula dimension vector of the indicator name pops up.
5. The method according to claim 2, characterized in that: Before setting the formula elements and the formula dimension vectors of the business indicators based on the business information and the formula type corresponding to the business information in the visualization interface to form the indicator formula, the method further includes: If the formula type is a general formula, the indicator formula of the business indicator selected by the user in the general formula list is obtained.
6. The method according to claim 5, characterized in that The general formulas include: cumulative value formula, same period value formula, cumulative value formula for the same month of the previous year, year-on-year growth rate formula for this month, cumulative year-on-year increase or decrease formula for this month, cumulative year-on-year increase or decrease formula, month-on-month growth rate formula for this month, and month-on-month increase or decrease formula for this month.
7. The method according to claim 1, characterized in that The calculation dimensions include: the business object corresponding to the business indicator, the period of the power grid business, and the time when the power grid business occurs.
8. An indicator data calculation system based on power grid business, characterized in that: include: A business indicator determination module is used to determine the business indicator to be defined by the formula according to the type of power grid business obtained; A business information identification module, used to identify the business information of the business indicator according to the business characteristics of the business indicator; The business information includes: the calculation scope, calculation dimension, calculation cycle and calculation conditions of the business indicator; An indicator formula composition module, used to set the formula elements and formula dimension vectors of the business indicator in a visualization interface based on the business information and the formula type corresponding to the business information to form an indicator formula; The indicator data calculation module is used to calculate the indicator data of the power grid business based on the business data of the power grid business and the indicator formula.
9. An electronic device, characterized in that: include: at least one processor and memory; The memory and the processor are connected via a bus; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, a method for calculating index data based on power grid services as described in any one of claims 1 to 7 is implemented.
10. A readable storage medium, characterized in that: An execution program is stored thereon, and when the execution program is executed, a method for calculating indicator data based on power grid business as described in any one of claims 1 to 7 is implemented.