This application is related to co-pending U.S. application Ser. No. 10/400,734, filed on Mar. 27, 2003, entitled “Defining a report based on data regions and including custom data in a report definition.”
A portion of the disclosure of this patent document may contain material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all copyright rights whatsoever. The following notice shall apply to this document: Copyright© 2004, Microsoft Corp.
The present invention relates to generating reports, and more particularly to techniques for creating report designs that can be populated with data in a computerized process, where the techniques allow for both flexibility in report design and simplicity in generating and understanding the design.
In any enterprise, data regarding aspects thereof is accumulated over time. This data can be used to report the status of the enterprise. For example, with regard to a sales enterprise, sales data can be accumulated pertaining to each sale of an item, including the salesman, the customer, the region of the salesman, the region of the customer, the amount of the sale, the quantity of the item sold, the date of the sale, the date of the delivery of the sold item, and so on. Based on such sales data, then, it may be that a report is generated that details sales by year, by month, by customer by year, by item by quarter, by salesman by delivery date, by region by week, etc.
The data that populates a report will typically be accumulated in a database. A database, as the term is used here, is a storehouse for digitally recorded data. To filter the data in a database into properly organized columns and rows for a report, a report designer may specify, in a report design, the particular data that is desired from a database. For example, a report designer might specify that he wants a “salesman name” in the first column of a report.
The report designer may then write a program that recognizes the field indicated for the first column of a report design (salesman name), queries a database for all salesman names, and places them one after the other in the first column of a report. Instead of writing his own program to carry out this task, the report designer may use commercial software that provides this function. Such software may allow a report designer to simply specify, in a report design, a type of data he wants in the first report column. The commercial software will then automatically analyze the report design, query a database, and place the desired data in the first column of a report. This operation is also available in commercial products for any number of columns and/or rows of a report.
An exemplary report design is illustrated in
Exemplary report processing software for populating a report design with appropriate data is depicted in
Different reports are designed for differing types and amounts of data. While some reports are quite simple, others present multiple types of data, and may show complex relationships between the data. For an example of a common data relationship, with reference to
While report designers can always create customized computer programs to properly populate a particular report, many report designers do not have the expertise or the desire to write such custom programs. Furthermore, it may not be an effective use of a report designer's time to write such computer programs. Therefore, report designers are frequently called on to either make do with the available report designs provided by a commercial software product, or spend valuable time creating computer programs for a custom report design. Flexibility in report design is therefore a desirable attribute for commercial report design software. Simplicity is also a desirable attribute, as with all software, because users can more readily access features that are easily understandable.
Due to the above described situation, commercial software companies are called upon to provide report design software that accommodates as many varieties of report designs as can practically be accommodated. This can be a difficult task. If done well, the task involves providing an easily understandable technique for specifying a report design that is both flexible and highly accurate in allowing designers to convey the content and layout of data for a report. Traditionally, this task has been resolved by providing two broad options for report design: the table and the matrix.
The following brief discussion in connection with
In contrast, the rows of a table can be dynamic. For example, refer to dynamic rows 105. These rows 105 can be expanded as necessary to adequately present greater or lesser amounts of report data. For example, with reference to dynamic rows 105: as time goes on, the years reported 102a and 102b may be expanded to also report the years 2003 and 2004. Additional rows can be added to provide all corresponding data for these rows in the report. This allows report designers to re-use a single report design from year to year, or to present data of varying scope using the same report design.
A table report design may also include header and footer rows. In
A table report design can further contain nested groups, each with a header and footer row.
Finally, a table report design can specify detail rows within an innermost group. This aspect of a table design is not represented in the actual table of
In summary, report designers using a table design in accordance with the present state of the art can specify fixed, or static, columns, along with either static or dynamic rows. Any number of header and footer rows are also available. The software that processes the report design will then place all specified data in the appropriate columns and rows. For dynamic rows as many rows as necessary may be generated to accommodate data.
The other design option available to report designers in conjunction with commercially available report-generation software is the matrix. An exemplary matrix that exposes the features of such a design is provided in
A matrix report design also permits both static and dynamic rows, e.g., 470 and 460, respectively. In
In summary, a matrix allows for presentation of report data with a number of fixed rows or simple dynamic rows that can be further delineated by row headers and footers. Static or dynamic columns can be used to display data, as necessary. The dynamic columns/rows may also be further delineated by header and footer columns to provide additional related information in a report.
The table and matrix report design therefore each provide some useful features, but are limited in the ways they allow report designers to specify the features of a report. A more flexible format for report designs that is at the same time simple to understand will help to improve reports by permitting a broader range of designs that can be easily implemented via standardized commercial software that does not require customized additions to properly present the data of a report.
In light of the current state of the industry in support for report designs, there is a heretofore unrecognized need to provide additional flexibility and simplicity in supporting the various report designs that may be desired for the presentation of data.
Systems and methods are provided for designing reports. Columns and/or rows of a report or of a region of a report can be declaratively defined as either dynamic or static. The declarative definition can be represented by any marking. For example, brackets, text font, text color, some other marking, or the absence thereof could be designated as a declaration. If a column or row is declaratively designated as dynamic, it can be expanded into a plurality of columns or rows. This expansion may be used as necessary to accommodate the data with which a report design is used. If a column or row is designated as static, it remains as a single column or row to represent only the specified column or row data.
In addition, subgroups of columns and rows can also be declaratively defined as dynamic or static, as desired by a report designer. A static column may not contain sub-columns, or it may contain a plurality of static columns, a plurality of dynamic columns, or any combination of both. Similarly, a dynamic column may also contain any number of static columns, any number of dynamic columns, or any combination of both, which indicates that each of the dynamic columns, on expansion, will contain the designated sub-columns. The same applies for rows.
Certain specific details are set forth in the following description and figures to provide a thorough understanding of various embodiments of the invention. Certain well-known details often associated with computing and software technology are not set forth in the following disclosure, however, to avoid unnecessarily obscuring the various embodiments of the invention. Further, those of ordinary skill in the relevant art will understand that they can practice other embodiments of the invention without one or more of the details described below. Finally, while various methods are described with reference to steps and sequences in the following disclosure, the description as such is for providing a clear implementation of embodiments of the invention, and the steps and sequences of steps should not be taken as required to practice this invention.
A report is a compilation of data for display in columns and rows on a visual surface. The data in a report can be any data. A typical report may include financial data for an enterprise, such as gross revenue for the sales of various products, expenses associated with various products, profits associated with various products, and the like. Other reports may include customer information, such as names, contact information including telephone numbers, addresses, and email addresses, as well as product preferences, gross annual purchases, special discounts, and so on. A report may also be used to track employees, by compiling employee names, hours worked, accomplishments, scheduled vacation time, special needs, etc. These examples are a very small subset of the possible data that may be included in a report. Any data that humans may desire to compile regarding any endeavor can be placed in a report. Further examples of actual reports are provided in the Figures at
A report may be divided into regions, and the various regions of a report may be designed according to differing report designs. Further, a single report design may specify various regions within a report that follow different designs. This feature of reports is explained in greater detail in U.S. patent application Ser. No. 10/400,734. For the purpose of this document, the term report should be construed to mean both an entire and complete report, or a region of a report that conforms to a homogeneous set of design choices.
A report design is a template for a report that shows what data will be displayed in an actual report and the layout of the data. A report design can comprise a computer readable set of instructions in a proper computer readable syntax, such as XML or HTML. An example of this embodiment of a report design is provided below in this specification. Such a design may also be embodied graphically, for example, as in
Report design software typically uses a GUI for graphically representing a report design. For example, report design software may present a designer with a number of empty columns and rows on a computer screen GUI. A designer may select any of the various columns and rows using a mouse or other control device. A designer may then enter data that is desired for a report by selecting from a plurality of menu options, or by identifying the data directly through typing identification information with a keyboard input. The information that a report designer enters using various input devices may then be stored in a report definition file. This file provides a compact representation of the report definition created by a report designer, and may be in any number of file formats, e.g., XML, HTML, .txt, .doc, etc.
A simple report design may indicate a plurality of columns for a table, such as in
The embodiment illustrated in
As illustrated in
In various embodiments of the invention, one or more declarations that may be used to identify a column or row as dynamic or as static can be standardized in an Extensible Markup Language (XML) schema or XML Document Type Definition. This allows report designers to use the standardized declaration(s) and be assured that their design will be properly processed by report design software that is instructed to recognize the declaration(s). For example, if brackets [ ] are defined in an XML schema as an attribute that identifies a dynamic row or column, then report designers can place brackets [ ] in the rows and columns that they wish to be dynamic, and those dynamic rows and columns will be interpreted as such by report processing software. Rows and columns without the brackets [ ] would not be identified as dynamic, and could therefore be identified as static rows and columns by default.
A declaration can be any marking. As briefly discussed in the summary section, such a marking might be brackets, text font, text color, some other marking, or the absence thereof. In addition, text point size, the presence of a particular symbol such as a star * or a letter (D), or the use of an identifying word, e.g., “dynamic” or “static” could be used to declare a column or row to be dynamic or static. The invention is not limited to the particular marking used to declaratively define a column or row as dynamic or static. Instead, the invention comprises the use of any declaration to identify a column or row as dynamic or static in a report design.
A column of a report is a vertical band in which related report data is located. A column may be identified by a column heading in a top row of a column. A column may be divided into subgroups of columns, which may themselves be further be divided into subgroups down to any level of subgrouping. Therefore, a first column for “cars” may be divided into FORD® and TOYOTA® subgroups. Each of these columns may be further divided into model subgroups, such as FOCUS®, TAURUS®, and BRONCO® in the FORD® column and CAMRY®, COROLLA®, and TERCEL® in the TOYOTAS® column. Each of these model columns may be further divided into colors, such as red, blue, and green. The further division of columns may continue as necessary to any level of subgrouping. This concept is represented in
Similarly, a row of a report is a horizontal band in which related report data is located. A row may be identified by a row heading in a first column of a row. A row may be divided into subgroups of rows, which may themselves be further be divided into subgroups down to any level of subgrouping. Therefore, a first row for “cars” may be divided into FORD® and TOYOTA® subgroups. Each of these rows may be further divided into model subgroups, such as FOCUS®, TAURUS®, and BRONCO® in the FORD® row and CAMRY®, COROLLA®, and TERCEL® in the TOYOTA® row. Each of these model rows may be further divided into colors, such as red, blue, and green. The further division of rows may continue as necessary to any level of subgrouping. This concept is represented in
A column or row that is declared to be static in a report design, such as that of
For example, imagine that column 602 is designated to list employee primary email addresses. Each employee has only one primary email address. There may be other email address information available in a database, such as secondary or tertiary email addresses, but those addresses are not desired for the report. To achieve this, a static column can be identified, such as 602, and the contents of the column can be identified as “primary email address.” Report processing software that generates an actual report from such a design will retrieve primary email addresses from a database, and place them in the column. It will not attempt to retrieve additional email addresses or generate additional columns of the actual report to accommodate additional email addresses.
The same principle discussed with regard to static column 602 applies to static rows. A static row is one that will not be expanded into multiple rows by report processing software. Consider static row 657. This row may be identified to contain information, such as “primary product ID.” There may be multiple product IDs stored in a database for various products, but those IDs are not desired for the actual report. The row is a static row, so multiple rows will not be generated to convey various product IDs.
In contrast, a column or row that is declared to be dynamic in a report design, such as 609, may be duplicated as necessary to accommodate all available data for the specified column or row. Consider column 615, which is declaratively defined as a dynamic column. The report designer may have determined that data will go in the report that may span multiple columns. However, the number of columns needed may not be known, or may be variable, or may be simply so large that entry of all such columns in a report design would be onerous. In such situations, a report designer can specify a dynamic column 615. This column can be automatically expanded into multiple columns by report processing software. The expansion can be made as necessary, to accommodate all data that is specified for a dynamic column.
For example, if column 615 was designated for yearly sales data, there may be a large number of years for which such data is known, and moreover additional data will be added to a database as years pass. Instead of specifying a static column for every year of desired data, a report designer can specify a dynamic column that is named, for example, [yearly sales]. A report designer can further specify a range of desired data, e.g., 1990-2001, or simply specify that all available data fitting the description is desired. Report processing software, on generating an actual report from the design of
Again, this principle can be applied to dynamic rows. A dynamic row is a row identified in a report design as expandable into multiple rows by report processing software. For example, dynamic row 660 can be expanded as necessary according to the data that is retrieved by report processing software. If dynamic row 660 is for the purpose of representing “yearly team leaders” indicating a team leader for production of products identified in the columns, then the dynamic row 600 can be expanded to accommodate 1990 team leaders, 1991 team leaders, 1992 team leaders, and so on as necessary in multiple rows. A report designer need not specify each and every year, and can instead specify a range of desired data, such as 1990-1997, or simply specify all available data.
Aspects of the invention allow report designers to declare both dynamic and static rows and columns in a report design, as desired for a particular report. Moreover, any combination of nested dynamic and static rows or columns may be declared within another row or column, respectively. For example, dynamic columns may contain both dynamic and static nested columns.
This ability to nest both dynamic and static columns in a dynamic column is illustrated in
Static columns, such as 606, can also be nested in dynamic columns, such as 600. In generating a report for such a report design, a single static column 606 can be placed in each expanded instance of dynamic column 600. When populating the report, the report processing software can first expand the dynamic column 600, and then populate the nested columns such as static column 606 as appropriate.
From the above explanation and from an examination of
While the above discussion has focused on columns for simplicity, it should be equally clear from
Dynamic rows may also contain nested static rows. In this regard, dynamic row 650 contains nested static row 655. Each instance of 650, after expansion, will contain an instance of static row 653. Each instance of 653 can then be populated with data as appropriate. Note that in the case of both rows and columns, such nested categories need not contain the exact same data as all other instances of the nested row or column. Instead, the query used to populate the row or column may be modified to adapt to the instance of the dynamic parent row or column, to fill the nested rows or column with appropriate data for the particular instance.
Static rows may also contain dynamic rows. This is illustrated in
Note that in addition to displaying static and dynamic rows and columns,
The exemplary report design of
The rows of the report design in
The detail cells in
In
The numbering of the columns and rows of
The rows of the report design provided in
The XML definition below demonstrates how the elements of a report implementing the techniques of the invention may be embodied in a machine readable language. The declarations made schematically are reduced to elements and attributes declared in an XML file. Report designers using aspects of the invention may use a program that allows for schematic preparation and prepares a definition file, such as the example below, in an automated process. Alternatively, the invention may be practiced by directly writing report definition files without the aid of report design software. In referring to the example below, the term “tablix” has been coined to declare an instance of a report design using the techniques described herein.
Exemplary XML Definition for
Exemplary Computing Environment
The techniques of this invention are intended for use in connection with one or more computers. In particular, report design products implementing the methods disclosed herein are likely to provide a Graphical User Interface (GUI) to assist in the use of declarative elements to specify the qualities of a report as taught by this specification. Such a graphical user interface and the supporting computing hardware and software is well known in the art, and the following brief description is provided to more specifically point out the features of such a system, without endeavoring to describe in detail the operation of well known and understood computing technology.
With reference to
It should be understood that the various techniques described herein may be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention. In the case of program code execution on programmable computers, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. One or more programs that may implement or utilize the user interface techniques of the present invention, e.g., through the use of a data processing API, reusable controls, or the like, are preferably implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language, and combined with hardware implementations.
The invention may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Typically the functionality of the program modules may be combined or distributed as desired in various embodiments.
Although exemplary embodiments refer to utilizing the present invention in the context of one or more stand-alone computer systems, the invention is not so limited, but rather may be implemented in connection with any computing environment, such as a network or distributed computing environment. Still further, the present invention may be implemented in or across a plurality of processing chips or devices, and storage may similarly be effected across a plurality of devices. Such devices might include personal computers, network servers, handheld devices, supercomputers, or computers integrated into other systems such as automobiles and airplanes. Therefore, the present invention should not be limited to any single embodiment, but rather should be construed in breadth and scope in accordance with the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5255356 | Michelman et al. | Oct 1993 | A |
5317686 | Salas et al. | May 1994 | A |
5418950 | Li et al. | May 1995 | A |
5504885 | Alashqur | Apr 1996 | A |
5603025 | Tabb et al. | Feb 1997 | A |
5809266 | Touma et al. | Sep 1998 | A |
5832532 | Kennedy et al. | Nov 1998 | A |
6065012 | Balsara et al. | May 2000 | A |
6195653 | Bleizeffer et al. | Feb 2001 | B1 |
6271845 | Richardson | Aug 2001 | B1 |
6298342 | Graefe et al. | Oct 2001 | B1 |
6463442 | Bent et al. | Oct 2002 | B1 |
6496836 | Ronchi et al. | Dec 2002 | B1 |
6549907 | Fayyad et al. | Apr 2003 | B1 |
6633882 | Fayyad et al. | Oct 2003 | B1 |
6687873 | Ballantyne et al. | Feb 2004 | B1 |
6920608 | Davis | Jul 2005 | B1 |
6985895 | Witkowski et al. | Jan 2006 | B2 |
7082569 | Voshell | Jul 2006 | B2 |
7302444 | Dunmore et al. | Nov 2007 | B1 |
20010044811 | Ballantyne et al. | Nov 2001 | A1 |
20010047372 | Gorelik et al. | Nov 2001 | A1 |
20010049699 | Pratley et al. | Dec 2001 | A1 |
20020073105 | Noguchi et al. | Jun 2002 | A1 |
20020091681 | Cras et al. | Jul 2002 | A1 |
20020154161 | Friedman et al. | Oct 2002 | A1 |
20030115194 | Pitts et al. | Jun 2003 | A1 |
20030149646 | Chen et al. | Aug 2003 | A1 |
20030154277 | Haddad et al. | Aug 2003 | A1 |
20030208460 | Srikant et al. | Nov 2003 | A1 |
20040003138 | Finocchio | Jan 2004 | A1 |
20040066410 | Lindhorst et al. | Apr 2004 | A1 |
20040088158 | Sheu et al. | May 2004 | A1 |
20040088650 | Killen et al. | May 2004 | A1 |
20040111666 | Hollcraft | Jun 2004 | A1 |
20040117731 | Blyashov | Jun 2004 | A1 |
20040193435 | Fang | Sep 2004 | A1 |
20040205010 | Hamer et al. | Oct 2004 | A1 |
20040268371 | Carrell et al. | Dec 2004 | A1 |
20050010597 | Potter et al. | Jan 2005 | A1 |
20050039033 | Meyers et al. | Feb 2005 | A1 |
20050166139 | Pittman et al. | Jul 2005 | A1 |
20050246341 | Vuattoux et al. | Nov 2005 | A1 |
20060048045 | Lehenbauer et al. | Mar 2006 | A1 |
20060294098 | Thomson et al. | Dec 2006 | A1 |
20070050697 | Lewis-Bowen et al. | Mar 2007 | A1 |
20070081197 | Omoigui | Apr 2007 | A1 |
20080046861 | Grieser | Feb 2008 | A1 |
20080104091 | Chin | May 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20050289455 A1 | Dec 2005 | US |