EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB43560: How to use a selector to target a freeform SQL report using the freeform condition feature in MicroStrategy 9.3.1 and newer releases.


Stefan Zepeda

Salesforce Solutions Architect • Strategy


How to use a selector to target a freeform SQL report using the freeform condition feature in MicroStrategy 9.3.1 and newer releases.

Strategy 9.3.1 introduces a new feature - the ability for users to define a freeform condition in a Freeform SQL or XQuery report that can be targeted by a Unit Condition selector on a grid in a Report Services document or dashboard in Strategy Web. The following steps explain the process that users can use to define and use this feature.
 
Users should be aware that as of the 9.3.1 release, only attribute elements may be passed to the targeted freeform SQL report, and at this time only a single attribute element can be selected to target with. This feature may be enhanced in future releases. Users should contact Strategy Technical support for assistance with enhancements to the feature.
 
1. Users should create a new Freeform SQL report and right mouse click in the freeform definition to select the 'Insert Conditions' dialog box.

ka02R000000kbyGQAQ_0EM440000002CoH.png

 
2. The user is now prompted to select the attribute whose elements will be passed to the targeted report, and the conditional SQL that must be issued when the report is run.

ka02R000000kbyGQAQ_0EM440000002CoW.jpeg

 
Note: Users should be aware that once the condition is defined, the editor does not currently allow this to be modified, and the definition would need to be deleted and a new condition defined on the report.
 
3. Users should then create a new document or dashboard and add the targeting dataset and the freeform SQL report that will be targeted to the document. The grid containing the attribute that will be used as a selector must be added to the document, and users would need to right click on the attribute in the grid and select the option to use as a selector as shown below:

ka02R000000kbyGQAQ_0EM440000002CoG.jpeg

 
4. To set the properties of the selector, users should right click on the attribute once again and select 'Edit selector' as shown below:

ka02R000000kbyGQAQ_0EM440000002CoX.jpeg

 
5. In the selector dialog box, users should switch from the default Target type - 'Document' selector to the 'Dataset' option as shown below:

ka02R000000kbyGQAQ_0EM440000002CoV.jpeg

 
6. Once the Target type selector option has been changed, the dialog box showing the datasets on the dashboard will be displayed. Users should select the correct dataset to be used as the target.

ka02R000000kbyGQAQ_0EM440000002CoI.jpeg

 
 7. Users can make any other changes they require and then save and run the document. After execution users can observe the results of changing the selector and noting that the 'freeform condition' on the targeted dataset is changed and the results displayed in the document.

ka02R000000kbyGQAQ_0EM440000002CoU.jpeg

 
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

June 5, 2017

Last Updated:

June 5, 2017