Adding a condition to a subreport
This procedure provides instructions for adding a condition to a subreport by using a copy of the A06b — Asset Aging – Drill-Down View subreport as an example.
To add conditions to a subreport
- Log on to the SAP BusinessObjects Business Intelligence BI launch pad.
- Navigate to the Documents tab.
- In the Folders menu, expand Public Folders > BMC Analytics for BSM > Asset Management.
- Navigate to the A06b — Asset Aging – Drill-Down View subreport.
- Copy and paste the report to the folder where you are storing the customized reports.
- In the custom folder, right-click the report and select Modify.
The Web Intelligence window appears showing the Asset Aging – Drill-Down View subreport. - Click Edit under the Data Access > Data Providers tab.
The Query Panel appears open to the Query 1 tab for the data provider. - Navigate to the Asset Management > Asset Information folder in the Web Intelligence window navigation bar.
- Drag the Enter/Select Company condition to the Query Filters list in the right pane.
- Navigate to the Asset Management > Asset Information > Asset folder in the Web Intelligence window navigation bar.
- Drag the Company dimension to the Result Objects list in the right pane.
- Click Close > Apply Changes and Close.
- Click Document Structure and Filters.
- Drag the Company object from the left pane in the report, and align the Company column with other columns in the report. Increase the width of the table header and align it with the width of the table columns.
- Click Refresh All.
- Click Save.
To pass a value through the report hyperlink
- Return to the Asset Management folder in the SAP BusinessObjects Business Intelligence BI launch pad.
- Navigate to the A06a — Asset Aging report.
- Copy and paste the report to the folder where you are storing the customized reports.
- In the custom folder, right-click the report and select Modify.
The Web Intelligence window appears showing the Asset Aging report. - Click Edit under the Data Access > Data Providers tab.
The Query Panel appears open to the Query 1 tab for the data provider. - Navigate to the Asset Management > Asset Information > Asset folder in the Web Intelligence window navigation bar.
- Drag the Company dimension from the navigation bar to the Result Objects list in the right pane.
- Click Close > Apply Changes and Close.
- Click Edit Report.
- Right-click the measure Var_ProdCatTier2 and choose Duplicate.
- Double-click the duplicated measure to open the Variable Editor tool.
- Set the name to Var_Company.
- Set the Qualification to measure.
Set the formula to the following value:
=If(IsError(If(DrillFilters([Company])=""
;If(DrillFilters()=""
;[Company]
;If(DrillFilters([Company])=""
;[Company]
;"ALL")
)
;DrillFilters([Company])))=1;"ALL";If(DrillFilters([Company])=""
;If(DrillFilters()=""
;[Company]
;If(DrillFilters([Company])=""
;[Company]
;"ALL")
)
;DrillFilters([Company])))- Click OK on the Variable Editor dialog box and Yes on the confirmation window that appears.
- Double-click the Var_Link measure.
The Variable Editor window appears. Change the URL in the Formula field to pass the value for the Company condition to the Asset Aging – Drill-Down View subreport.
The new value is as follows:="<a href=../../opendoc/openDocument.jsp?sFolder=HomePublicFoldersBMC%20Analytics%20for%20BSMAsset%20Management&sDocName=A06b%20-%20Asset%20Aging%20-%20Drill-Down%20View&sDocType=wqy&sReportName=Report&lsSAsset%20Aging%20Buckets="+URLEncode([CI Aging Year Buckets])+"&lsMEnter/Select%20Manufacturer%20Name(s)="+URLEncode([Var_Manufacturer])+"&lsMEnter/Select%20Company="+URLEncode([Var_Company])+"&lsMProduct%20Categorization%20Tier%201="+URLEncode([Var_ProdCatTier1])+"&lsMProduct%20Categorization%20Tier%202="+URLEncode([Var_ProdCatTier2])+"&lsMProduct%20Categorization%20Tier%203="+URLEncode([Var_ProdCatTier3])+"&lsMEnter/Select%20Product%20Name(s)="+URLEncode([Var_ProductName])+"
&sRefresh=yes target=_self>"+Count([Instance ID])+"</a>"- Click OK and Yes on the confirmation window that appears to ask if you want to modify this variable.
- Click Save.
- Navigate to the A06a — Asset Aging report.
- Refresh the report.
- Click a hyperlinked asset count value.
The A06b — Asset Aging – Drill-Down View report is opened. - Refresh the report.
- Verify the company and additional information in report A06b.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*