Skip to content

Pivot

The Pivot component in an Adhoc Report allows you to summarize data from a dataset, enabling users to group rows and columns in various ways. Once created, pivot tables also support drilling down into specific data for detailed analysis.

Objective

Create Adhoc Report using Pivot.

Prerequisite

The Sales.cds dataset is used for this example.

Download adhoc_analysis.zip file.

After downloading the zip file, add the Sales.ds into the Dataset Section of AIV for this example. To add it into AIV follow this link .

Adhoc Report - Pivot: This video contains information regarding How to Create Adhoc Report using Pivot in AIV.

Steps to Create Adhoc Report using Pivot

  1. Login to AIV using your credentials.

  2. There are three ways to add an Ad-hoc Report in the application:

    • From the Hamburger menu Create icon, navigate to Documents > Adhoc Reports. Then, click the (+) icon next to “Adhoc Reports”, as illustrated in the figure below: Adhoc report edit

    • Click on the Adhoc Reports grid, as shown in the figure below: Adhoc report edit

      • Right-click on any empty area in the list view and choose Create Adhoc from the context menu. Adhoc report edit
    • Click the Create Adhoc button located in the bottom horizontal menu bar, as shown in the figure below: Adhoc report edit

  3. When the user clicks the Create Adhoc option using one of the methods mentioned above, the following window will appear:

    Image

  4. Drag and drop the Pivot component into the empty area as shown below:

    Image

  5. As user perform the above step, window will look as per the image below:

    Image

  6. Now, from the Datasets drop-down list, select Sales.ds as shown below:

    Image

  7. Add country to Rows, productLine to Columns, and extendedPrice to Values by dragging them from the Dataset Columns.

    Image

  8. Click the Settings Setting icon Click the Settings icon next to sum(extendedPrice) under Values.

  9. A dialog box will open as shown below:

    Image

  10. The user can make the changes if required and Click the Submit submitbutton button to Save.

  11. Select Landscape View from the Birt Template drop-down as shown.

    Image

  12. You can also specify the number of records you want to show on a page from the following widget near the template selector widget:

    Image

  13. The Pivot in an Adhoc Report can only be run with the HTML format type.

  14. To run the Adhoc Report using the Pivot component, click on Run in the top most right corner as follows: Image

  15. Click on Run option, which will open the following dialog box:

    Image

  16. Since the datset has no parameters, the user clicks the Submit submitbutton button, and it redirects them to a new tab in the browser.

  17. The Adhoc Report using pivot component will be generated in HTML.

    Image

  18. If you want to save the pivot, click the save Save icon icon located at the top-right corner. This will open the following dialog box:

    Image

  19. You can enter a custom name and choose either save as Reports/Template.

  20. For this example; give Name: AisReport & Select Save As: Reports and click on submitbutton to perform the save operation.

  21. If you want to change the settings of a componenet click on Setting Setting icon icon below Run which will open the following dialog box:

    Image

  22. Similarly, click the Delete Delete icon icon to remove the Pivot component.

The following graphical elements are available in Adhoc reports:

Adhoc Table
Adhoc Chart
Adhoc Image
Adhoc Annotation
Adhoc Text
Adhoc Pre-defined Components
Bind Parameters
Adhoc Embed Link