3.
4. 5.
6.
7. 8.
9.
Administration
10. Security
Agenda
The new query model is intended to support both RDBMS and OLAP data Terminology reflects this Three sections or elements
Tabular Element
Defines the basic data stream for the query A simple, SQL like, homogenous data Details stream
Each row contains the same type of data Grouped Aggregates like an RDBMS table Database rows or grouped aggregate data like a SQL query
Tabular Element
Tabular Model Tabular Set - union, intersect, minus Tabular SQL - edited SQL Tabular Reference - reuse an existing tabular element in the same report
Tabular Model
Properties
Contents
Data items
Filters
Defaults to Yes
Data Items
Not aggregated (default) Aggregated as per Framework Manager model rules (default)
Fact
Calculations
Filters
Detail row level Equivalent to SQL where clause Applied to grouped aggregate level data Equivalent to SQL having clause Used with parameters Condition is removed from query if no parameter supplied Used in conjunction with prompting and SDK/URLs
After aggregation
Optional
Workshop 7-1
Query Model
Cube Element
Imagine a complex, heterogeneous data set like a grouped list report with totals in the footings Each row contains different data based on its group location in the data.
Cube Element
Dimensions
Define group levels on top of those found in the Tabular Model Non-grouped Typically aggregated items Filters against aggregates for a dimension The Tabular Element defining the basic data stream
Facts
Filters
Tabular Data
Dimensions
Define group levels on top of those found in the Tabular Model Required to add additional grouped aggregates Defines levels Levels require keys Levels may have non-key items also (attributes)
Dimensions
Key items
Dimensions
Key items
Facts
Define aggregations on top of those defined in the Tabular Element at group (levels) defined in the cube. Example Grouped List report
Product line, Product type, Revenue Totals for Product line and Report (overall total) are defined by the fact Revenue
No need to specify the groups, ReportNet figures that out You specify aggregation type only
Workshop 7-2
Cube Element
Summary Element
Advanced Topics
Both queries must contain the same number of columns. The column data types must be compatible:
Tabular Sets
Numeric types (integer, float, double, decimal) can combined String types (char, varChar, longVarChar) can be combined Binary types (binary and varBinary) can be combined
Tabular Sets
Workshop 7-3
Tabular Sets
Sub-Queries
Used to filter a set of data based on the existence of a matching value in another set of data
Sub-Queries
Select From (select from where ) T1, (select from where ) T2 Where T1.<column> = T1.<column>
[Child1].[Column] = [Child2].[Column]
Workshop 7-4
The SQL generated for a query is a result of the query including the cube and summary elements. The SQL generated for a specific tabular element is created in isolation from the remainder of the query.
Most tabular element capabilities are exposed in layout Not Auto group and summarize and Generated SQL Everything else is
Dont be too fast to dive into the query, you unfairly emphasize complexity to a user Sell what can be done through the layout to maximize simplicity
Style
Conditional Reporting
Change the formatting (font, color, etc.) Ex. highlight good in green and bad in red Change the format of date, currency, etc. Especially by locale Especially multilingual text Include/exclude layout components using a Conditional Block List A set of layout objects to display when a given
Data formatting
Text
Layout
Conditional Reporting
Variables Boolean
Locale
Returns the content locale Locales defined by ReportNet Returns a string expression Used where there are more than two possible results
String
Conditional Reporting
Select value using the condition explorer Set the style or text properties
Workshop 7-5
Conditional Reporting
Create Section
Repeater frames
Rectangular frame which repeats with a row or grouped item Can repeat across and down Ex. Mailing labels, etc.
HTML
Anything the browser will execute Links, images, multimedia, JavaScript Ex. <img src="http://localhost/crn/crq/images/prog ress.gif"> Not rendered in PDF
Hyperlinks Create an HTML hyperlink in the report Render in both HTML and PDF Requires a slight HTML knowledge
<a href="www.cognos.com">Cognos Corporate Web Site</a> Link: Bold text is URL to link to (href) Label: Underlined text gets displayed on web page (on report) (text)