Using Queries in SAP Webi

Last updated on Dec 05 2021
Darayus Bharucha

Table of Contents

Using Queries in SAP Webi

Queries in Webi are managed in the Query panel. When you create a Webi report, you use queries in the query panel to get data from the data source.

Queries can be created from different interfaces like you can create queries based on Universe, represent data in OLAP database as objects, flat files like Excel and CSV files, data in SAP InfoCubes using BEx queries, Analysis view or Query as a web service.

Each query has dimensions and measures. Measures always return numeric data based on the calculation and other objects in the data source. Queries can be hierarchical or non-hierarchical in nature. Non-hierarchical queries have no relationship between the objects.

Hierarchies define relationship between the objects. For example: In a Geographical hierarchy, you have measures based on geographical hierarchies like counties, states and cities. Using hierarchies, you can drill up and down to see data at the next level.

Query panel is not available, if you use Web Interface of Webi tool.

Query Definition

In a Webi document, you retrieve data in report from the data source using the query panel. All the queries are built in the query panel and interface of query panel depends on the data source you are using to get data.

Queries can be created on Universe, which contains Relational and OLAP data models, data from flat files like CVS, XLS files, SAP BW BEx query, and Analysis view. Query is run to get data from the data source. You can apply filters and also preview data in the query panel.

To open a Query Panel − Go to Web Intelligence → New → Select Data Source → Ok.

1 61

When you click ‘Ok’, you have to select data source from the list of selected data source type.

2 60

New window will open known as Query Panel. Select the objects from Universe outline, which you want to add to the report in result objects.

3 60

To add a filter, select the object in Query filters by dragging an object and select a value. For data preview, click ‘Refresh’ tab. To add this query to the report, click ‘Run Query’ option at the top of the screen to add to Webi document.

Query and Documents User Rights

You can view multiple objects in the Query panel and create, edit, and delete objects in queries as per login user access rights. Users are normally created by BusinessObjects Administrator. CMC is used to create user profiles to login to BO tools.

If you don’t have enough access rights, you will not be able to access few objects of a report. Access rights are defined by the BO administrator.

Classes and Subclasses

Classes are used to group similar objects in a report. A class can contain one or more subclasses. Subclasses contains further subcategory of objects in the upper level of a class.

Classes are used to organize objects in a logical manner. While creating queries on Universe, you can find the information on objects that you have to use in query.

Dimension

Dimension lists all the objects using which we want to analyze the data. Dimension provides the basis for analysis in a report. Dimension normally contains non-hierarchical character type data like customer name, product name, customer address, sales office address, etc.

Common examples of Dimensions are – Product, Customer, Time, etc.

Analysis Dimension − An analysis dimension contains group of hierarchies related to each other. When you add an analysis dimension in a report, its default hierarchy appears in query.

− Analysis Dimension appears as this symbol in the query panel

Attributes and Measures

Attribute provides data about dimensions or hierarchy. For example − Home address of a customer dimension. Attribute has one-to-one relationship with corresponding dimension. Each customer has only one address object.

− Attribute appears as this symbol in the query panel

If your Universe is not designed correctly, an object returns the multiple values for a dimension and the corresponding cell in the report shows MULTIVALUE error.

Measures are defined as numerical values in the report on which analysis is performed. They are integer values, which are used to compare the performance of an organization with defined KPI’s.

For example − Sales in each region, total Revenue per year, profit per product, etc.

− Measure appears as this symbol in the query panel

Hierarchies

A hierarchy represents parent-child relationship in Universe. It allows you to drill up or down in the report to the next level. For example − Geography hierarchy contains Country, State and City. Time hierarchy contains Year, Quarter, Month and Week.

Using the member selector in defining hierarchy, you can define which member appears in the result set. In hierarchical data sources, hierarchies are associated with a dimension.

Members and Named Set in Hierarchy

Members are defined at different level of hierarchies in a data source. For example − Consider a Geography hierarchy containing members – “India” at the country level and “Haryana” at the State level.

You can also include individual members in query from hierarchy, if you don’t want to add all the members. Named set can be used to define a set of members.

A named set is defined as named expression and results a set of members. You can define named set at Universe level or a relational or OLAP database level.

SAP Webi – Queries using Universe

You can build queries in the Query panel using various data sources like Universe, BEx from SAP BW or an Analysis view.

Using Universe for Building Queries

Universe contains data from OLAP and Relational data sources. Data in Universe can be a relational data or hierarchical data.

Open Web Intelligence via BI Launchpad → New (Create a new Webi document). You will be prompted to select a Data Source.

4 56

Select a Universe as data source and click ‘Ok’. You will get a list of all available Universe.
Select a Universe, which you want to use to create a Webi document.

5 51

A new window will open with the name Query Panel. In the query panel, on the left side of the screen, you have a list of available objects. You have Result Objects where you drag objects from the left panel, which you want to add in a Webi document.

You have Query Filter using which you can add different filters. Data Preview can be used to view data before it is added to Webi document. Run query tab at the top of the screen is used to run the query.

6 43

In the Query panel, you have an option using which you can add data from multiple sources in a single Webi document by creating multiple queries.

To add a Query, go to Add query option at the top of the screen. You can select different data sources to add a second query.

7 36

You can also edit the properties of Query, like the name of the query, number of records, etc. ‘View Script’ option allows you to check the script of the query.

8 33

Following functions can be set using Query Properties −

Sr.No. Function & Properties
1. Retrieving duplicate rows

Relational .unx, OLAP, but not available in BEx queries.

2. Returning sample result sets

Available in relational .unx, but not available in OLAP .unx or BEx queries.

3. Retrieving/excluding empty rows

Available in OLAP .unx only. Not available in BEx queries.

In this case, you have an option to run multiple queries separately. You can go to Run queries and select the query you want to run. You can also combine queries using the Query Panel.

9 25

 

So, this brings us to the end of blog. This Tecklearn ‘Using Queries in SAP Webi’ blog helps you with commonly asked questions if you are looking out for a job in SAP Business Object and SAP Domain. If you wish to learn SAP Webi and build a career in SAP domain, then check out our interactive, SAP Business Objects Certification Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/sap-business-objects-certification-training/

SAP Business Objects Certification Training

About the Course

Business intelligence tools and features are used by multiple companies and firm for the effective results their large flow of data. The completion of this SAP Business Objects training will be helpful in landing yourself a good paying job. With this Business Objects online training, you will gain considerable proficiency in SAP BO architecture, data warehousing, use of Information design tool, create multiple reports and the implementation of Web intelligence and Efficiency in solving the issues of data sources and Crystal dashboard design.

Why Should you take SAP Business Objects Training?

  • The Average salary of SAP Business Objects Business Intelligence Analyst is $94,000 per annum – PayScale.com
  • Business Objects is an enterprise reporting tool and Scalability is one of the primary reasons large corporations choose Business Objects for their BI needs.
  • Worldwide Business Intelligence and Analytics Market to grow to $22.8 billion in next 2 years – Gartner.

What you will Learn in this Course?

Introduction to Business Objects

  • History and Version of Business Object
  • How Business Objects works in SAP family
  • SAP BO-Business Intelligence package and tool list
  • Data warehousing concept from SAP perspective

SAP Business Object Architecture

  • SAP BO Architecture
  • Various tiers in architecture: Client, Processing, Intelligence

SAP Web Intelligence

  • Web Intelligence Overview
  • Variable in Web Intelligence environment

Using Universe Designer Tools (UDT)

  • Overview of the Universe Designer Tool
  • Working with shared, secured and personal connections
  • Understanding of the Semantic layer

SAP BO Reports

  • SAP BO Reports
  • Chart Reports, Table Reports, Sorting and aggregating of Reports
  • Various elements of Reports, graphs, text elements
  • Reports and Filters
  • Section Report
  • Break Report
  • Alerts Report
  • Scope of Analysis Panel
  • Conditional Reporting
  • Ranked Report
  • Drill Report

Advanced Formatting

  • Advanced methods of formatting in SAP BO
  • Identifying Chasm trap and resolving Chasm traps with various methodologies
  • Detection and resolving of loop

Information Design Tool (IDT) Integration

  • Introduction to SAP BO information design tool
  • Extracting data from various sources using OLAP methodologies
  • Creating of Universe with IDT
  • IDT Vs UDT
  • Working with IDT as an Integration tool

Getting started with Crystal Dashboard

  • Data visualization tool for creating interactive dashboards
  • Point-and-click Features
  • Various dashboard features and interface

Live Office

  • Live office
  • Detailed design of Crystal Dashboard

SAP BO 4.2 Features

Got a question for us? Please mention it in the comments section and we will get back to you.

 

0 responses on "Using Queries in SAP Webi"

Leave a Message

Your email address will not be published. Required fields are marked *