Beruflich Dokumente
Kultur Dokumente
Version: 9.2.1m
Document Number: 09520921m
International Components for Unicode Copyright 1999-2011 Compaq Computer Corporation Copyright 1999-2011 Hewlett-Packard Company Copyright 1999-2011 IBM Corporation Copyright 1999-2011 Hummingbird Communications Ltd. Copyright 1999-2011 Silicon Graphics, Inc. Copyright 1999-2011 Sun Microsystems, Inc. Copyright 1999-2011 The Open Group All rights reserved. Real Player and RealJukebox are included under license from Real Networks, Inc. Copyright 1999-2011. All rights reserved.
CONTENTS
Document description.............................................................. xix About this book ............................................................................ xxi Additional formats .................................................................. xxi How to find business scenarios and examples ...................... xxi Whats new in this guide ....................................................... xxii Prerequisites ......................................................................... xxv Who should use this guide.................................................... xxv Resources.................................................................................. xxvi Documentation..................................................................... xxvi Education ........................................................................... xxxiv Consulting ........................................................................... xxxv International support ........................................................... xxxv Technical Support .............................................................. xxxvi Feedback ...................................................................................... xli 1. Designing and Creating Documents Introduction.................................................................................. 1 Before you begin............................................................................ 2 Document views in Desktop..................................................... 2 Printing a document ................................................................. 4 Viewing a document as it will display in MicroStrategy Web (Flash View and HTML View) .................................................. 6 Display modes in MicroStrategy Web ...................................... 9 Designing and creating documents: An overview........................ 10 About Visual Insight: Analyses .............................................. 13 Best practices for designing effective documents........................ 15 Best practices: Designing documents for Excel..................... 19 Best practices: Designing documents for Kindle and Nook ... 21
2011 MicroStrategy, Inc.
Contents
Creating documents..................................................................... 22 Accessing data in a document: The dataset report................ 22 Creating a document using the Document Editor .................. 24 Creating a document using the Document Wizard ................ 25 Creating a document using another document as a template ................................................................................. 27 Creating a document from a report ........................................ 31 Understanding and working with document sections................... 34 Resizing document sections .................................................. 36 Hiding and displaying document sections.............................. 36 Displaying document sections horizontally ............................ 38 Document sections overview ................................................. 38 Inserting additional sections in documents ............................ 45 Adding text and data to a document ............................................ 51 Adding static text to a document............................................ 52 Adding data fields to a document .......................................... 53 Combining different types of text fields in a document .......... 57 Displaying document and dataset report information: Auto text codes ........................................................................................... 59 Auto text codes for document information ............................. 60 Auto text codes for dataset report information ....................... 63 Configuring auto text codes ................................................... 65 Working with metrics in documents ............................................. 95 Adding metrics from a dataset report to a document ............. 96 Creating metrics in documents .............................................. 97 Calculating totals and summary metrics in documents........ 104 Metric calculation in documents........................................... 110 Displaying real-time web and other HTML content: HTML containers .................................................................................. 121 Displaying formatted HTML in an HTML container .............. 122 Displaying a website using a URL (iFrame)......................... 125 Adding shapes and lines to a document.................................... 128 Inserting images in a document................................................. 130 Using dynamic images......................................................... 133 Arranging controls on a document............................................. 136 2. Formatting Documents Introduction.............................................................................. 147 Useful formatting suggestions ................................................... 149 Methods for formatting a control ................................................ 150 Copying and pasting formatting ........................................... 151
vi
Contents
Using a transparent or opaque backstyle .................................. 152 Applying a 3D effect................................................................... 155 Applying a drop shadow ............................................................ 157 Using gradient colors ................................................................. 159 Three-way or mirror gradients: Flash only ........................... 160 Applying gradient colors ...................................................... 161 Creating a pop-up tooltip ........................................................... 162 Hiding a control.......................................................................... 164 Formatting text fields ................................................................. 166 Clipping text or displaying scroll bars in text fields............... 168 Formatting numbers............................................................. 169 Displaying text vertically....................................................... 171 Formatting text position in a text field .................................. 173 Formatting HTML containers ..................................................... 173 Formatting shapes ..................................................................... 177 Controlling the display of rounded corners in Flash Mode... 178 Formatting images ..................................................................... 180 Formatting sections ................................................................... 180 Hiding or displaying sections for a finished document ......... 181 Formatting the background color of document sections ...... 186 Displaying sections horizontally ........................................... 186 Changing the size of a section............................................. 188 Repeating information horizontally....................................... 194 Keeping the contents of a section together ......................... 195 Defining default formatting for control types: control defaults.... 196 Applying default formatting to a control or document section ................................................................................. 199 Formatting conditional data in documents ................................. 200 Derived metrics, summary metrics, and attributes in conditional formatting........................................................... 205 Conditional formatting on selector totals.............................. 207 Showing and hiding conditional formatting .......................... 208 Formatting the border or background of a document or layout.. 213 Formatting a document using predefined formats (Autostyles)................................................................................ 215 Creating an Autostyle .......................................................... 216 Applying an Autostyle to a document .................................. 216 Adding watermarks to documents ............................................. 217 Project watermarks vs. document watermarks .................... 219
vii
Contents
Creating the project watermark............................................ 221 Hiding a project watermark for a specific document ............ 223 Creating document watermarks ........................................... 224 Disabling document watermarks.......................................... 226 Disabling all watermarks ...................................................... 226 Formatting a document for printing............................................ 227 Adding page breaks and numbering pages ......................... 229 Modifying page setup options .............................................. 231 Controlling horizontal overflow............................................. 235 Font embedding in PDFs ..................................................... 237 Changing graph resolution in PDFs ..................................... 239 Including or hiding bookmarks in PDFs ............................... 240 Including interactive tables of contents in PDFs .................. 243 Formatting a document for MicroStrategy Web ......................... 248 Formatting a document for export.............................................. 250 Selecting available export formats ....................................... 252 Specifying default export options ......................................... 253 Displaying images in Excel .................................................. 256 Allowing Excel to automatically change row height ............. 257 3. Grouping and Sorting Records in a Document Introduction.............................................................................. 259 Grouping records in a document ............................................... 260 Example of grouped records in a document ........................ 261 Changing the grouping order in a document........................ 262 Deleting a grouping field in a document............................... 264 Showing totals for a group ................................................... 264 Displaying a group horizontally ............................................ 273 Hiding Group Header and Group Footer sections ............... 279 Adding a page break for a group ......................................... 280 Resetting page numbers for each group.............................. 281 Repeating a Group Header section on another page .......... 282 Keeping the data in a group together on a page ................. 283 Specifying that groups are exported to separate Excel worksheets........................................................................... 283 Using page-by on a document................................................... 286 Disabling page-by ................................................................ 289 Sorting records in a document................................................... 290 4. Displaying Reports in Documents: Grid/Graphs viii Introduction.............................................................................. 295 Adding a Grid/Graph to a document .......................................... 298
Contents
Adding a Grid/Graph and a new dataset simultaneously..... 302 Adding a Grid/Graph placeholder ........................................ 303 Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut ............................................................................. 306 Changing datasets in Grid/Graphs....................................... 309 Selecting and editing a Grid/Graph............................................ 310 Adding objects to a Grid/Graph ........................................... 312 Viewing a Grid/Graph as a grid.................................................. 313 Editing a Grid/Graph displayed as a grid: Formatting options ................................................................................. 313 Viewing as a graph .................................................................... 314 Editing a Grid/Graph displayed as a graph: Formatting options ................................................................................. 315 Viewing as a grid and a graph ................................................... 315 Specifying the layout for a Grid/Graph displayed as both a grid and a graph................................................................ 316 Editing a Grid/Graph displayed as a grid and a graph: Formatting options ............................................................... 319 Formatting Grid/Graphs ............................................................. 319 Useful formatting suggestions.............................................. 322 Formatting the background of selected items in Grid/Graphs used as selectors ............................................ 324 Adding title bars to Grid/Graphs ................................................ 326 Allowing the background of the Grid/Graph to show through a transparent title bar.............................................. 328 Quick switch for Grid/Graphs..................................................... 329 Quick switch in MicroStrategy Web ..................................... 329 Quick switch in Desktop....................................................... 330 Enabling quick switch .......................................................... 330 Using view filters on Grid/Graphs .............................................. 331 Multiple qualifications in view filters ..................................... 334 Metrics in rows and columns................................................ 334 View filters example ............................................................. 336 Multiple view filters example ................................................ 338 Example of metrics in rows and columns............................. 341 Linking to the dataset reports of Grid/Graphs............................ 345 Linking from Grid/Graphs to reports and other documents........ 347 Drilling in Grid/Graphs ............................................................... 348 Enabling drilling on Grid/Graphs .......................................... 349 Enabling interactive Grid/Graphs for MicroStrategy Web .......... 358 Sorting and pivoting in Grid/Graphs in Flash Mode and
2011 MicroStrategy, Inc.
ix
Contents
Express Mode ...................................................................... 358 Enabling filtering, drilling, and moving objects for Grid/Graphs in Flash Mode.................................................. 360 5. Designing Dynamic Enterprise Dashboards
Introduction.............................................................................. 365 About dashboards...................................................................... 366 What is a dashboard? .......................................................... 366 Adding interactivity to dashboards ....................................... 368 Organizing interactivity features on a dashboard................. 373 Design ideas and examples....................................................... 376 Designing a simulated portal environment........................... 379 Designing the right dashboard................................................... 379 Best practices for dashboarding ................................................ 381 Choosing datasets for a dashboard ..................................... 382 Layering information in a dashboard.................................... 383 Planning the dashboards outline and structure................... 384 Placing the data and visualizations onto a dashboard......... 386 Positioning and formatting the dashboard objects ............... 387 Enhancing dashboard performance..................................... 388 Creating a dashboard: the Blank Dashboard template.............. 389 Designing a dashboard with the Blank Document template ............................................................................... 391 Layering data on dashboards: panels and panel stacks............ 392 Defining the parts of a panel stack ...................................... 395 Inserting and defining panels ............................................... 398 Loading panels on demand in MicroStrategy Web .............. 408 Formatting panels and panel stacks .................................... 410 Providing interactivity to users: selectors................................... 418 Defining a selector ............................................................... 423 Methods to create a selector ............................................... 426 Creating selectors that filter metric values ........................... 432 Applying selections as filters or slices.................................. 435 Determining whether the selector includes or excludes data: selection type .............................................................. 441 Automatically maintaining targets for selectors.................... 443 Allowing users to select multiple items ................................ 453 Disabling simultaneous display of all items in a selector ..... 455 Renaming the All option of a selector .................................. 457
Contents
Determining how the target of a selector displays when no data exists....................................................................... 458 Determining how the target of a selector displays (current state) ...................................................................... 463 Showing totals for selectors ................................................. 471 Displaying title bars in selectors........................................... 473 Formatting selectors ............................................................ 476 Enabling Grid/Graphs as selectors to control other Grid/Graphs ............................................................................... 486 Formatting the background of selected items in Grid/Graphs used as selectors ............................................ 490 Enabling transition animations in Flash ..................................... 492 Exporting dashboards to Flash for stand-alone use .................. 493 Uncluttering the dashboard: Full screen mode .......................... 494 6. Providing Flash Analysis and Interactivity: Widgets
Introduction.............................................................................. 497 Understanding and working with widgets .................................. 500 Defining a Bubble Grid widget ............................................. 507 Defining a Cylinder widget ................................................... 510 Defining a Data Cloud widget .............................................. 512 Defining a Funnel widget ..................................................... 514 Defining a Gauge widget ..................................................... 518 Defining a Graph Matrix widget............................................ 520 Defining a Heat Map widget................................................. 525 Defining an Interactive Bubble Graph widget....................... 531 Defining an Interactive Stacked Graph widget..................... 538 Defining a Thermometer widget........................................... 542 Defining a Time Series Slider widget ................................... 545 Defining a Waterfall widget .................................................. 548 Defining a Weighted List Viewer widget............................... 552 Defining a Media widget ...................................................... 555 Defining a Microcharts widget.............................................. 565 Defining an RSS Reader widget .......................................... 588 Creating widgets ........................................................................ 597 Determining how a widget is displayed................................ 601 Displaying a message behind a widget................................ 607 Formatting widgets in Desktop .................................................. 609 Changing the number format of the metric values ............... 610 Formatting the text on a cylinder, gauge, or thermometer ... 611
xi
Contents
Formatting the text on a graph............................................. 612 Formatting the color of the bar risers ................................... 614 Formatting the legend .......................................................... 616 Formatting widgets at the document level ........................... 619 Viewing data related to a widget: Using a widget as a selector ...................................................................................... 621 Using a Bubble Grid widget as a selector ............................ 622 Using a Data Cloud widget as a selector ............................. 623 Using a Graph Matrix widget as a selector .......................... 623 Using a Heat Map widget as a selector ............................... 625 Using an Interactive Bubble Graph widget as a selector ..... 626 Using an Interactive Stacked Graph widget as a selector ... 628 Using a Microcharts widget as a selector ............................ 630 Using a Time Series Slider widget as a selector.................. 630 Using a Waterfall widget as a selector................................. 634 Using a Weighted List Viewer widget as a selector ............. 634 Defining the widget used as a selector ................................ 635 Creating a Fish Eye Selector ..................................................... 638 Replacing the selector items of a Fish Eye Selector with images ................................................................................. 642 Creating a Fish Eye Selector as a widget ............................ 643 Creating a Fish Eye Selector as a selector.......................... 646 Formatting Fish Eye selectors for Flash Mode .................... 649 Creating a Date Selection widget .............................................. 650 Creating a Date Selection widget as a widget ..................... 653 Creating a Date Selection widget as a selector ................... 655 Formatting Date Selection widgets for Flash Mode ............. 658 Linking in widgets ...................................................................... 659 Specifying how prompts are answered in the target ............ 660 Creating links in widgets ...................................................... 661 7. Linking from Documents Introduction.............................................................................. 667 About links ................................................................................. 667 Prerequisites for working with links...................................... 671 Linking in a document: Examples .............................................. 671 Linking a document to a web page ...................................... 672 Linking from a text field ........................................................ 673 Linking from an attribute in a Grid/Graph............................. 675 Linking from an attribute in a widget .................................... 675 Linking from a document to multiple targets ........................ 676 Linking to a web page................................................................ 677 xii
Contents
Creating a link to a web page .............................................. 680 Linking to other documents and to reports (drilling)................... 681 Components of a link ........................................................... 683 Specifying how prompts are answered in the target ............ 684 Creating links to documents and reports ............................. 702 Defining hyperlinks in documents .............................................. 706 How links, drilling, and selectors work together......................... 709 Emailing, exporting, and subscribing to documents and reports........................................................................................ 711 8. Advanced Documents Introduction.............................................................................. 713 Creating multi-layout documents ............................................... 714 Properties for each layout .................................................... 717 Properties for the document ................................................ 719 Creating layouts ................................................................... 721 Renaming, moving, deleting, and switching between layouts ................................................................................. 726 Exporting multi-layout documents........................................ 727 Using datasets in documents..................................................... 730 Working with multiple dataset reports .................................. 731 Defining a dataset as primary or secondary ........................ 733 Joining multiple datasets: Examples.................................... 738 Adding a dataset report to a document................................ 746 Removing a dataset report from a document....................... 746 Editing a dataset report used in a document ....................... 747 Changing the grouping and sorting dataset for a document ............................................................................. 748 Using Intelligent Cubes as datasets..................................... 749 Using a MicroStrategy OLAP Services report as a dataset ................................................................................. 749 Displaying grouping elements that contain null values ........ 750 Removing sections that do not have metric data ................. 752 Transaction-enabled documents: Interacting with data sources ...................................................................................... 754 Creating a transaction-enabled document ........................... 755 Input object controls that support transactions .................... 763 Using prompts in documents ..................................................... 766 Prompt order in documents.................................................. 767 Improving document performance in MicroStrategy Web: Incremental fetch ....................................................................... 769
xiii
Contents
Improving document performance in MicroStrategy Web: Incremental fetch on Grid/Graphs........................................ 772 Caching documents ................................................................... 775 Caching and page-by, selectors, and widgets ..................... 776 Portable documents: Reusing documents across projects........ 778 How the document reconciliation process works ................. 779 Copying documents between projects ................................. 780 9. Documents for Mobile Devices Introduction.............................................................................. 785 Best practices for designing documents for mobile devices ...... 786 Planning the document ........................................................ 787 Adding interactivity to a document ....................................... 788 Enhancing readability .......................................................... 789 Enhancing performance....................................................... 790 Designing documents for an Android device ....................... 790 Widgets for mobile devices........................................................ 792 Displaying an interactive event calendar on an iPad: Date Selection widget................................................................... 795 Displaying data in a graph on an iPad: Graph Matrix visualization ......................................................................... 797 Displaying data in a Heat Map widget on an iPad ............... 799 Displaying data in rows and columns on a mobile device: Interactive Grid widget ......................................................... 799 Displaying geographical data on a mobile device: Map widget .................................................................................. 801 Formatting RSS Reader widgets for the iPhone .................. 810 Displaying a Timeline widget on an iPad ............................. 812 Displaying data trends on a mobile device: Time Series widget .................................................................................. 814 Opening mobile applications in documents ............................... 815 Linking to documents and reports from a document displayed on a mobile device..................................................................... 818 Using links to navigate between pages in a document displayed on a mobile device............................................... 819 Formatting documents for display on mobile devices................ 820 Docking a selector on iPad documents................................ 822 Allowing panel change with a horizontal swipe on iPad documents ........................................................................... 823 Defining Information Windows for an iPad document .......... 824 Formatting layouts for display on mobile devices ................ 826 Formatting documents for display on iPhones..................... 827 Document templates for iPhone and iPad ........................... 828 xiv
2011 MicroStrategy, Inc.
Contents
Displaying documents when the mobile device is rotated: Mobile Views.............................................................................. 830 A. Document Interfaces in MicroStrategy Introduction.............................................................................. 835 Document Editor layout ............................................................. 835 Controls toolbar ................................................................... 837 Toolbar icons ....................................................................... 837 Layout tabs .......................................................................... 840 Grouping panel .................................................................... 841 Layout area .......................................................................... 841 Datasets pane...................................................................... 842 Property List......................................................................... 843 Notes ................................................................................... 845 Introduction.............................................................................. 847 Create a sample invoice document ........................................... 847 Creating the report to use as the dataset ............................ 851 Creating the new document and selecting the dataset ........ 852 Grouping the document by customer................................... 853 Adding the logo image to the document .............................. 854 Resizing the image .............................................................. 855 Adding static text to the document....................................... 855 Formatting, aligning, and sizing the text field....................... 856 Adding a rectangle to the document .................................... 856 Switching to PDF View......................................................... 857 Adding an attribute to the Customer Header section ........... 858 Combining text fields ........................................................... 860 Adding and formatting additional text fields in the Customer Header section .................................................... 861 Adding a line to the Customer Header section .................... 863 Creating the column headers in the Detail Header section ................................................................................. 864 Ordering the controls ........................................................... 865 Creating the item detail in the Detail section........................ 867 Formatting a text field as currency....................................... 868 Adding summary information to the Detail Footer section ... 869 Adding totals to a document ................................................ 871 Saving the document ........................................................... 873 Creating the final PDF ......................................................... 873
B. Document Tutorial
xv
Contents
C. Dashboard Tutorial
Introduction.............................................................................. 875 The completed dashboard ......................................................... 876 Panel 1: Daily Order Count .................................................. 876 Panel 2: Inventory Analysis ................................................. 877 Panel 3: Employee Performance ......................................... 878 High-level steps ......................................................................... 880 Creating the Daily Order Count panel........................................ 882 Creating the Daily Order Count report to be used as a dataset ................................................................................. 882 Creating the new dashboard and selecting the dataset....... 882 Adding a panel stack and panels to the dashboard ............. 883 Adding a selector to the dashboard ..................................... 886 Creating a Time Series Slider widget................................... 886 Adding a Gauge widget ....................................................... 888 Creating a selector for the Gauge widget ............................ 890 Specifying Flash Mode as the default display mode............ 891 Saving the dashboard .......................................................... 892 Viewing the Daily Order Count panel in Flash Mode in MicroStrategy Web .............................................................. 892 Creating the Inventory Analysis panel ....................................... 895 Creating the Inventory Analysis report to be used as a dataset ................................................................................. 895 Adding a dataset to the dashboard ...................................... 895 Switching panels in Design View ......................................... 896 Renaming and formatting a panel........................................ 896 Creating a Heat Map widget ................................................ 897 Creating a selector for the Heat Map widget........................ 900 Saving the dashboard .......................................................... 901 Viewing the Inventory Analysis panel in Flash Mode in MicroStrategy Web .............................................................. 901 Creating the Employee Performance panel............................... 905 Creating a custom group ..................................................... 905 Creating the Employee Performance report to be used as a dataset ......................................................................... 908 Adding a dataset to the dashboard ...................................... 909 Switching panels in Design View ......................................... 909 Renaming and formatting a panel........................................ 910 Creating a Bubble Graph widget.......................................... 911 Saving the dashboard .......................................................... 912 Viewing the Employee Performance panel in Flash Mode in MicroStrategy Web........................................................... 913 Enabling drilling and time series animation.......................... 913
xvi
Contents
D. Troubleshooting Documents
Introduction.............................................................................. 919 Troubleshooting during document creation ............................... 919 Troubleshooting Grid/Graphs............................................... 919 Troubleshooting selectors.................................................... 921 Miscellaneous document creation troubleshooting .............. 922 Troubleshooting during document execution............................. 923 Troubleshooting common Flash Mode issues ..................... 925
Introduction.............................................................................. 929 Internal functions ................................................................. 930 Null/Zero functions ............................................................... 930 Financial functions ............................................................... 930 Math functions ..................................................................... 932 Statistical functions .............................................................. 933
Introduction.............................................................................. 935 Comparison of Link Editor and manually creating link URLs..... 936 Creating link URLs manually ..................................................... 937 Base URL syntax ................................................................. 938 Event parameter .................................................................. 939 Object ID parameter ............................................................ 940 Object type parameter ......................................................... 940 Prompt information parameters ........................................... 941 Creating links manually........................................................ 944 Examples of link URLs created manually .................................. 945 Link to a non-prompted report ............................................. 947 Link to a prompted report using the message ID ................. 950 Link to a prompted report using a list of attribute elements .............................................................................. 953 Link to a prompted report using prompt XML....................... 955 Glossary ................................................................................... 959 Index ......................................................................................... 967
xvii
Contents
xviii
PREFACE
Document description
This guide is the primary resource for you to use to learn about designing and creating MicroStrategy Report Services documents using Desktop. It builds on the basic concepts about documents presented in the Report Services Document Analysis Guide. Chapters include: Chapter 1, Designing and Creating Documents includes procedures to create documents and many of the objects that make up documents, such as text fields and images. A list of best practices to create and design documents is also included. Chapter 2, Formatting Documents describes how to format the document and its objects. Chapter 3, Grouping and Sorting Records in a Document explains how to group and sort documents. Grouping defines the documents hierarchy and therefore its sort order. Page-by interactively displays groups on separate pages in PDF View. Chapter 4, Displaying Reports in Documents: Grid/Graphs describes Grid/Graphs, which display reports in a document. The chapter provides instructions to create and format Grid/Graphs. Chapter 5, Designing Dynamic Enterprise Dashboards introduces dashboards, which are a type of document that summarizes key business indicators by presenting them in visually intuitive, easy-to-read, interactive documents. Chapter 6, Providing Flash Analysis and Interactivity: Widgets describes widgets, which are a key part of dashboards. Widgets are
xix
Preface
Flash-based displays of report results, allowing users to visualize data in different ways than traditional reports displayed as Grid/Graphs do. Chapter 7, Linking from Documents explains how to connect a document with a report, a web page, or another document, passing parameters to answer any prompts that are in the target. Use links as a tool to present investigative workflows, such as navigating from data at one level to different levels of aggregation. Chapter 8, Advanced Documents provides information about advanced concepts such as multi-layout documents, how multiple datasets are joined, document caches, and portable documents. Chapter 9, Documents for Mobile Devices provides an overview of features specific to documents created for the iPhone, iPad, and Android devices, which include widgets and links that interact with mobile device applications such as email or text messaging. Appendix A, Document Interfaces in MicroStrategy helps you to become familiar with the Document Editor interface. The Document Editor allows you to create, customize, and save documents to use across the MicroStrategy platform. Appendix B, Document Tutorial walks you through the process of creating a sample invoice document. Appendix C, Dashboard Tutorial walks you through the process of creating a dashboard that incorporates widgets in a panel stack, using data from the MicroStrategy Tutorial. Appendix D, Troubleshooting Documents provides explanations of some of the most common issues you may encounter when creating Report Services Documents, in a question and answer format. Appendix E, Advanced Functions for Calculated Expressions lists the advanced functions that are supported for calculated expressions in documents. Appendix F, Creating Links Manually provides instructions for creating link URLs manually, that is, by using the object ID and link syntax.
can also You conceptsdesign and create documents using MicroStrategy Web. The are the same, but the procedures differ slightly. For instructions, see the MicroStrategy Web Help.
xx
Preface
Additional formats
This book is also available as an electronic publication in the Apple iBookstore, and can be read on an iPhone or iPad with the iBooks app installed. To download this book, search for the books title in the iBookstore search bar, or scan the QR code below using your device's camera.
xxi
Preface
reporting functionality can be found in the MicroStrategy Advanced Reporting Guide. Other examples in this book use the Analytics Modules, which include a set of precreated sample reports and documents, each from a different business area. Sample reports and documents present data for analysis in such business areas as financial reporting, human resources, and customer analysis.
Data Cloud widget, which displays a list of attribute elements displayed in various sizes to depict the differences in metric values between the elements (see Defining a Data Cloud widget, page 512) Date Selection widget, which displays as a interactive event calendar on the iPad (see Displaying an interactive event calendar on an iPad: Date Selection widget, page 795) Graph Matrix widget, which displays data using a variety of graph styles, such as the line graph, bubble graph, or grid (see Displaying data in a graph on an iPad: Graph Matrix visualization, page 797) Heat Map widget, which allows users to quickly grasp the state and impact of a large number of variables at one time (see Displaying data in a Heat Map widget on an iPad, page 799) Image Viewer widget, which displays images and image descriptions, and allows users to zoom in and out of the images, which can be uploaded by a Photo Uploader widget or images stored in a public location (see the MicroStrategy Mobile Design and Administration Guide for instructions to create an Image Viewer widget) Microcharts widget, which allows users to quickly visualize the trend of a metric at a glance without having to know many additional details (see Defining a Microcharts widget, page 565)
Preface
Multimedia widget, which displays a list of available files, such as text files, PDF files, and images, that users can download and view (see the MicroStrategy Mobile Design and Administration Guide for instructions to create a Multimedia widget) Photo Uploader widget, which allows users to upload images from mobile device by taking a new image or using an existing image on their mobile device (see the MicroStrategy Mobile Design and Administration Guide for instructions to create a Photo Uploader widget) Timeline widget, which allows users to track changes in the status of multiple business assets, as well as important events affecting each asset (see Displaying a Timeline widget on an iPad, page 812) Time Series widget, which displays data for a specific period of time in a line graph (see Displaying data trends on a mobile device: Time Series widget, page 814)
MicroStrategy 9.2.1
MicroStrategy Transaction Services lets you embed write-back functionality into documents and dashboards for the purposes of decision-making or initiating a transaction. See Transaction-enabled documents: Interacting with data sources, page 754.
MicroStrategy 9.2
You can replace the dataset of a document, and any Grid/Graphs that use the dataset are updated to use the new dataset. You can also replace all the dataset reports in a document with a single dataset report. (See the MicroStrategy Desktop Help for instructions; see Accessing data in a document: The dataset report, page 22 for background information on datasets.) You can drill on a Grid/Graph in Express Mode in MicroStrategy Web. The drill options are defined by the default drill path of the selected attribute. In Editable Mode, Express Mode, and Interactive Mode, you can drill on multiple objects. (See Drilling in Grid/Graphs, page 348.) A selector can target another selector, to filter the target. For example, a document contains a Grid/Graph with Year and Quarter, and two selectors. One selector allows the user to choose a year (the Year selector), while the other selector allows the user to choose a quarter (the Quarter selector). The Year selector targets the Quarter selector, filtering the
xxiii
Preface
Quarter selector to display only the quarters in the year chosen in the Year selector. Both selectors target the Grid/Graph, to display data for the selected year and quarter. (See Providing interactivity to users: selectors, page 418.) A selector can filter on a metric's values, ranks, or percent ranks. The selector can be either a slider, which the user moves to select the minimum and maximum values to display, or a qualification, which the user completes to filter the metric's values. For example, a document contains a Grid/Graph with Region and the Revenue Metric. A metric condition slider selector displays the range of revenue values, and a user can move the slider to select the minimum and maximum revenue to display. A metric condition qualification selector can allow a user to display only the revenue values greater than $5,000,000 or only the top-ranking five regions in term of revenue. (See Creating selectors that filter metric values, page 432.) An element selector or a metric condition slider selector can include or exclude the selected data. (An element selector displays different elements of attributes, custom groups, or consolidations; a metric condition slider displays a slider to filter metric values or rank.) If the selector contains a title bar, then the user can change between including or excluding the selections. (See Determining whether the selector includes or excludes data: selection type, page 441.) A selector can display a title bar, which can help to identify the selector or provide instructions about using the selector. (See Displaying title bars in selectors, page 473.) The title bar of a panel stack can display Next and Previous arrows to allow users to change panels in MicroStrategy Web and in Flash View in Desktop, without using a separate selector. (See Panel selector arrows on the title bar, page 402.) You can determine how to display the contents of a panel stack when the contents are larger than the panel stack itself. Use the Content overflow setting to either clip the contents, which displays only data that can fit within the size of the panel stack, or you can provide a scroll bar, to allow a user to view all of the data. (See the MicroStrategy Desktop Help for instructions to define this property.) Information Windows let users view additional information about an attribute element by hovering the cursor over the element in a grid or graph. The Information Window pops up over the element, displaying an additional visualization, based on the element. (See Defining Information Windows for an iPad document, page 824.)
Preface
Prerequisites
Before working with this manual, you should be familiar with the information in the Report Services Document Analysis Guide, MicroStrategy Basic Reporting Guide, and MicroStrategy Advanced Reporting Guide. To work with Report Services documents, you must have purchased a license for Report Services and installed it on your machine. You must also have the proper privileges assigned to your user login. These privileges are described below: Execute document, to execute documents in Desktop a document in Desktop, To executethree-tier (server) mode. you must connect to the project in Use document editor, to create and edit documents using the Document Editor in Desktop Web execute document, to browse and execute documents in MicroStrategy Web Web document design, to create and edit documents in Web Web manage document datasets, to add and remove datasets from a document in Web
Report Services, contact If you do not have more information. your MicroStrategy sales representative for
xxv
Preface
check. Dashboards usually provide interactive features that let users change how they view the dashboards data. The interaction is provided by these types of controls: panels, selectors, and widgets. In general, the role of document designer is made available only to a group of advanced users who can design documents. The Desktop Designer and Web Professional user roles in MicroStrategy include the set of privileges required to create documents and controls, for each respective product. For an introduction to documents, you should review the Report Services Document Analysis Guide, which provides a basic understanding of how to manipulate the data in a document to analyze business information.
Resources
Documentation
MicroStrategy provides both manuals and online help; these two information sources provide different types of information, as described below: Manuals: In general, MicroStrategy manuals provide:
Introductory information and concepts Examples and images Checklists and high-level procedures to get started
The steps to access the manuals are described in Accessing manuals and other documentation sources, page xxxii. Most of these manuals are also available printed in a bound, soft cover format. To purchase printed manuals, contact your MicroStrategy account executive or email documentationfeedback@microstrategy.com. Help: In general, MicroStrategy help provides:
Detailed steps to perform procedures Descriptions of each option on every software screen
languages other than English Due to translation time, manualsorinmore releases behind. You can may contain information that is one see the version number on the title page of each manual. For the most up-to-date translations, refer to the MicroStrategy Knowledge Base.
xxvi Resources
2011 MicroStrategy, Inc.
Preface
Resources
xxvii
Preface
MicroStrategy Project Design Guide Information to create and modify MicroStrategy projects, and understand facts, attributes, hierarchies, transformations, advanced schemas, and project optimization.
MicroStrategy Basic Reporting Guide Instructions to get started with MicroStrategy Desktop and MicroStrategy Web, and how to analyze data in a report. Includes the basics for creating reports, metrics, filters, and prompts.
MicroStrategy Advanced Reporting Guide: Enhancing Your Business Intelligence Application Instructions for advanced topics in the MicroStrategy system, building on information in the Basic Reporting Guide. Topics include reports, Freeform SQL reports, Query Builder reports, filters, metrics, Data Mining Services, custom groups, consolidations, and prompts.
MicroStrategy Report Services Document Analysis Guide: Analyzing Data with Report Services Documents Instructions for a business analyst to execute and analyze a document in MicroStrategy Desktop and MicroStrategy Web, building on basic concepts about projects and reports presented in the MicroStrategy Basic Reporting Guide.
MicroStrategy Report Services Document Creation Guide: Creating Boardroom Quality Documents Instructions to design and create Report Services documents, building on information in the MicroStrategy Report Services Document Analysis Guide.
MicroStrategy OLAP Services Guide Information on MicroStrategy OLAP Services, which is an extension of MicroStrategy Intelligence Server. OLAP Services features include Intelligent Cubes, derived metrics, derived elements, dynamic aggregation, view filters, and dynamic sourcing.
MicroStrategy Office User Guide Instructions for using MicroStrategy Office to work with MicroStrategy reports and documents in Microsoft Excel, PowerPoint, Word, and Outlook, to analyze, format, and distribute business data.
xxviii Resources
Preface
MicroStrategy Mobile Analysis Guide: Analyzing Data with MicroStrategy Mobile Information and instructions for using MicroStrategy Mobile to view and analyze data, and perform other business tasks with MicroStrategy reports and documents on a mobile device.
MicroStrategy Mobile Design and Administration Guide: A Platform for Mobile Intelligence Information and instructions to install and configure MicroStrategy Mobile, as well as instructions for a designer working in MicroStrategy Desktop or MicroStrategy Web to create effective reports and documents for use with MicroStrategy Mobile.
MicroStrategy System Administration Guide: Tuning, Monitoring, and Troubleshooting your MicroStrategy Business Intelligence System Concepts and high-level steps to implement, deploy, maintain, tune, and troubleshoot a MicroStrategy business intelligence system.
MicroStrategy Supplemental Reference for System Administration: VLDB Properties, Internationalization, User Privileges, and other Supplemental Information for Administrators Information and instructions for MicroStrategy administrative tasks such as configuring VLDB properties and defining data and metadata internationalization, and reference material for other administrative tasks.
MicroStrategy Functions Reference Function syntax and formula components; instructions to use functions in metrics, filters, attribute forms; examples of functions in business scenarios.
MicroStrategy MDX Cube Reporting Guide Information to integrate MicroStrategy with MDX cube sources. You can integrate data from MDX cube sources into your MicroStrategy projects and applications.
xxix
Preface
Financial Reporting Analysis Module Reference Sales and Distribution Analysis Module Reference Human Resources Analysis Module Reference
xxx Resources
Preface
Server Delivery Engine and Subscription Portal APIs, and the Narrowcast Server SPI.
Help
Each MicroStrategy product includes an integrated help system to complement the various interfaces of the product as well as the tasks that can be accomplished using the product. Some of the MicroStrategy help systems require a web browser to be viewed. For supported web browsers, see the MicroStrategy Readme. MicroStrategy provides several ways to access help: Help button: Use the Help button or ? (question mark) icon on most software windows to see help for that window.
Resources
xxxi
Preface
Help menu: From the Help menu or link at the top of any screen, select MicroStrategy Help to see the table of contents, the Search field, and the index for the help system. F1 key: Press F1 to see context-sensitive help that describes each option in the software window you are currently viewing. Web For MicroStrategy Web, MicroStrategythe F1Administrator, and MicroStrategy Mobile Server, pressing key opens the context-sensitive help for the web browser you are using to access these MicroStrategy interfaces. Use the Help menu or ? (question mark) icon to access help for these MicroStrategy interfaces.
1 From the Windows Start menu, choose Programs (or All Programs), MicroStrategy, then Product Manuals. A page opens in your browser showing a list of available manuals in PDF format and other documentation sources. 2 Click the link for the desired manual or other documentation source.
xxxii Resources
Preface
3 If you click the link for the Narrowcast Services SDK Guide, a File Download dialog box opens. This documentation resource must be downloaded. Select Open this file from its current location, and click OK. left side of Acrobat If bookmarks are not visible on the Bookmarksanand Page.(PDF) step manual, from the View menu click This varies slightly depending on your version of Adobe Acrobat Reader.
To access installed manuals and other documentation sources on UNIX and Linux
1 Within your UNIX or Linux machine, navigate to the directory where you installed MicroStrategy. The default location is /opt/MicroStrategy, or $HOME/MicroStrategy/install if you do not have write access to /opt/MicroStrategy. 2 From the MicroStrategy installation directory, open the Documentation folder. 3 Open the Product_Manuals.htm file in a web browser. A page opens in your browser showing a list of available manuals in PDF format and other documentation sources. 4 Click the link for the desired manual or other documentation source. 5 If you click the link for the Narrowcast Services SDK Guide, a File Download dialog box opens. This documentation resource must be downloaded. Select Open this file from its current location, and click OK. left side of Acrobat If bookmarks are not visible on the Bookmarksanand Page.(PDF) step manual, from the View menu click This varies slightly depending on your version of Adobe Acrobat Reader.
Resources
xxxiii
Preface
Documentation standards
MicroStrategy online help and PDF manuals (available both online and in printed format) use standards to help you identify certain types of content. The following table lists these standards. standards may depending on Theselanguages have differ that supersedethe language of this manual; some rules the table below.
Type bold Indicates Button names, check boxes, options, lists, and menus that are the focus of actions or part of a list of such GUI elements and their definitions Example: Click Select Warehouse. italic New terms defined within the text and in the glossary Names of other product manuals and documentation resources When part of a command syntax, indicates variable information to be replaced by the user Example: The aggregation level is the level of calculation for the metric. Example: Type copy c:\filename d:\foldername\filename Calculations Code samples Registry keys Path and file names URLs Messages displayed in the screen Text to be entered by the user
Courier font
Example: Sum(revenue)/number of months. Example: Type cmdmgr -f scriptfile.scp and press Enter. + A keyboard command that calls for the use of more than one key (for example, SHIFT+F1). A note icon indicates helpful information for specific situations. A warning icon alerts you to important information such as potential security risks; these should be read before continuing.
Education
MicroStrategy Education Services provides a comprehensive curriculum and highly skilled education consultants. Many customers and partners from over 800 different organizations have benefited from MicroStrategy instruction.
xxxiv Resources
Preface
Courses that can help you prepare for using this manual or that address some of the information in this manual include: MicroStrategy Report Services: Document Essentials MicroStrategy Report Services: Dynamic Dashboards
For the most up-to-date and detailed description of education offerings and course curricula, visit http://www.microstrategy.com/Education.
Consulting
MicroStrategy Consulting Services provides proven methods for delivering leading-edge technology solutions. Offerings include complex security architecture designs, performance and tuning, project and testing strategies and recommendations, strategic planning, and more. For a detailed description of consulting offerings, visit http://www.microstrategy.com/Services.
International support
MicroStrategy supports several locales. Support for a locale typically includes native database and operating system support, support for date formats, numeric formats, currency symbols, and availability of translated interfaces and certain documentation. MicroStrategy is certified in homogeneous configurations (where all the components lie in the same locale) in the following languagesEnglish (US), French, German, Italian, Japanese, Korean, Portuguese (Brazilian), Spanish, Chinese (Simplified), Chinese (Traditional), Danish, and Swedish. A translated user interface is available in each of the above languages. For information on specific languages supported by individual MicroStrategy system components, see the MicroStrategy readme. MicroStrategy also provides limited support for heterogeneous configurations (where some of the components may lie in different locales). Please contact MicroStrategy Technical Support for more details.
Resources
xxxv
Preface
Technical Support
If you have questions about a specific MicroStrategy product, you should: 1 Consult the product guides, Help, and readme files. Locations to access each are described above. 2 Consult the MicroStrategy Knowledge Base online at https://resource.microstrategy.com/support.
A technical administrator in your organization may be able to help you resolve your issues immediately.
3 If the resources listed in the steps above do not provide a solution, contact MicroStrategy Technical Support directly. To ensure the most productive relationship with MicroStrategy Technical Support, review the Policies and Procedures document in your language, posted at http://www.microstrategy.com/Support/Policies. Refer to the terms of your purchase agreement to determine the type of support available to you. MicroStrategy Technical Support can be contacted by your companys Support Liaison. A Support Liaison is a person whom your company has designated as a point-of-contact with MicroStrategys support personnel. All customer inquiries and case communications must come through these named individuals. Your company may designate two employees to serve as their Support Liaisons, and can request to change their Support Liaisons two times per year with prior written notice to MicroStrategy Technical Support. It is recommended that you designate Support Liaisons who have MicroStrategy Administrator privileges. This can eliminate security conflicts and improve case resolution time. When troubleshooting and researching issues, MicroStrategy Technical Support personnel may make recommendations that require administrative privileges within MicroStrategy, or that assume that the designated Support Liaison has a security level that permits them to fully manipulate the MicroStrategy projects and has access to potentially sensitive project data such as security filter definitions.
xxxvi Resources
Preface
Resources
xxxvii
Preface
Interface. The individual Technical Support Centers are closed on certain public holidays.
North America Email: support@microstrategy.com Web: https://resource.microstrategy.com/support Fax: (703) 8428709 Phone: (703) 8488700 Hours: 9:00 A.M.7:00 P.M. Eastern Time, MondayFriday except holidays Email: eurosupp@microstrategy.com Web: https://resource.microstrategy.com/support Fax: +44 (0) 208 711 2525 The European Technical Support Centre is closed on national public holidays in each country. Phone: Belgium: + 32 2792 0436 France: +33 17 099 4737 Germany: +49 22 16501 0609 Ireland: +353 1436 0916 Italy: +39 023626 9668 Poland: +48 22 459 52 52 Scandinavia & Finland: +46 8505 20421 Spain: +34 91788 9852 The Netherlands: +31 20 794 8425 UK: +44 (0) 208 080 2182 International distributors: +44 (0) 208 080 2183 Hours: United Kingdom: 9:00 A.M.6:00 P.M. GMT, Monday-Friday except holidays EMEA (except UK): 9:00 A.M.6:00 P.M. CET, Monday-Friday except holidays Email: apsupport@microstrategy.com Web: https://resource.microstrategy.com/support Phone: Australia: +61 2 9333 6499 Korea: +82 2 560 6565 Fax: +82 2 560 6555 Japan: +81 3 3511 6720 Fax: +81 3 3511 6740 Singapore: +65 6303 8969 Fax: +65 6303 8999 Asia Pacific (except Australia, Japan, Korea, and Singapore): +86 571 8526 8067 Fax: +86 571 8848 0977 Hours: Japan and Korea: 9:00 A.M.6:00 P.M. JST (Tokyo), Monday-Friday except holidays Asia Pacific (except Japan and Korea): 7 A.M.-6 P.M. (Singapore) Monday-Friday except holidays Email: latamsupport@microstrategy.com Web: https://resource.microstrategy.com/support Phone: LATAM (except Brazil and Argentina): +54 11 5222 9360 Fax: +54 11 5222 9355 Argentina: 0 800 444 MSTR Fax: +54 11 5222 9355 Brazil: +55 11 3054 1010 Fax: +55 11 3044 4088 Hours: Latin America (except Brazil): 9:00 A.M.7:00 P.M. (Buenos Aires), Monday-Friday except holidays Brazil: 9 A.M. - 6 P.M. (So Paulo), MondayFriday except holidays
Asia Pacific
Latin America
xxxviii Resources
Preface
Support Liaisons should contact the Technical Support Center from which they obtained their MicroStrategy software licenses or the Technical Support Center to which they have been designated.
Name (first and last) Company and customer site (if different from company) Contact information (phone and fax numbers, e-mail addresses)
Case details:
Configuration information, including MicroStrategy software product(s) and versions Full description of the case including symptoms, error messages(s), and steps taken to troubleshoot the case thus far
Business/system impact
If this is the Support Liaisons first call, they should also be prepared to provide the following: Street address Phone number Fax number Email address
To help the Technical Support representative resolve the problem promptly and effectively, be prepared to provide the following additional information: Case number: Please keep a record of the number assigned to each case logged with MicroStrategy Technical Support, and be ready to provide it when inquiring about an existing case Software version and product registration numbers of the MicroStrategy software products you are using
Resources
xxxix
Preface
Case description:
What causes the condition to occur? Does the condition occur sporadically or each time a certain action is performed? Does the condition occur on all machines or just on one? When did the condition first occur? What events took place immediately prior to the first occurrence of the condition (for example, a major database load, a database move, or a software upgrade)? If there was an error message, what was its exact wording? What steps have you taken to isolate and resolve the issue? What were the results?
System configuration (the information needed depends on the nature of the problem; not all items listed below may be necessary):
Computer hardware specifications (processor speed, RAM, disk space, and so on) Network protocol used ODBC driver manufacturer and version Database gateway software version (For MicroStrategy Web-related problems) browser manufacturer and version (For MicroStrategy Web-related problems) Web server manufacturer and version
If the issue requires additional investigation or testing, the Support Liaison and the MicroStrategy Technical Support representative should agree on certain action items to be performed. The Support Liaison should perform any agreed-upon actions before contacting MicroStrategy Technical Support again regarding the issue. If the Technical Support representative is responsible for an action item, the Support Liaison may call MicroStrategy Technical Support at any time to inquire about the status of the issue.
xl Resources
Preface
Feedback
Please send any comments or suggestions about user documentation for MicroStrategy products to: documentationfeedback@microstrategy.com Send suggestions for product enhancements to: support@microstrategy.com When you provide feedback to us, please include the name and version of the products you are currently using. Your feedback is important to us as we prepare for future releases.
Feedback
xli
Preface
xlii Feedback
1
1.
Introduction
A MicroStrategy Report Services document contains objects representing data coming from one or more MicroStrategy reports, as well as images and shapes. Documents can appear in almost as many ways as you can imagine and are generally formatted to suit your business needs, in a single display of presentation quality. This chapter describes the ways in which you can design and create a MicroStrategy Report Services document. If you are new to designing documents, see Best practices for designing effective documents, page 15 before you begin a new document. As document designers create documents, they specify the data that appears and control the layout, formatting, grouping, and subtotaling of data. In addition, they can insert pictures and draw borders in the document. All of these capabilities provide for documents that are suitable for presentation to management for printing boardroom quality material. They are used to create the highest-quality, Pixel Perfect documents such as scorecards and
dashboards, managed metrics documents, production and operational documents, and more.
While you can connect an older Desktop client to a newer Intelligence Server (such as an 8.1.x Desktop client and a 9.x Intelligence Server), none of the newer 9.x functionality for Report Services documents is supported. If some fonts are not available on an Intelligence Server installed on the UNIX operating system, copy True Type fonts into the Intelligence Server installation directory. Copy these fonts, which have a .ttc or .ttf extension, to INTELLIGENCE_SERVER_ INSTALL_PATH\PDFGeneratorFiles. The default installation path for the Intelligence Server in UNIX is home\ MicroStrategy\PDFGeneratorFiles. For the change to take effect, you must restart Intelligence Server.
View the document as a PDF (especially helpful to see how your changes affect the final display of the document) Interactively display groups on separate pages (using page-by)
Navigate through large quantities of data that have been grouped into separate pages of the document View associated websites by clicking hyperlinks Print the document Save the final PDF (by exporting it) Export the PDF to Excel, PDF, Flash, or HTML
Flash View, which displays a preview of the document as it will look in Flash Mode in MicroStrategy Web. In Flash View, you can interact with the document by using selectors, performing some manipulations such as pivoting and sorting, and viewing and interacting with widgets. HTML View, which displays a preview of the document as it will look in other MicroStrategy Web modes. Design View, which displays the structure of the document, or the placeholders for the document objects, without the actual results. It allows you to create and edit the document and the various objects that make up the document. Use Design View for the procedures described in this manual.
Opening a document
If a document has embedded Transaction Services, the document does not open. Instead, a message is displayed, indicating that
transaction-enabled documents are not supported in Desktop.
To open a document in Design View
1 From a project in MicroStrategy Desktop, navigate to the folder containing the document. 2 Right-click the document name or icon, and select Edit. The Document Editor opens.
1 From a project in MicroStrategy Desktop, navigate to the folder containing the document. viewing performance, open Acrobat Reader To enhance PDFthe document. before opening 2 Double-click the document name or icon. The document opens in PDF View, in Acrobat Reader.
Printing a document
Before you print the document, you should configure various settings that control how the document is displayed and printed. Examples of these settings are pagination, page margins, and graph resolution. This ensures that the end result (the printed document) appears as you want it to. For instructions, see Formatting a document for printing, page 227.
To print a document
1 In PDF View, click the Print icon on the Acrobat Reader toolbar. The Print dialog box opens. 2 You can change print settings, such as the printer to be used and the page range to print, as needed. Click OK.
1 In Desktop, double-click the document name or icon. The document opens in PDF View, in Acrobat Reader. 2 Click the Export to PDF icon in the toolbar. The Export to PDF dialog box opens.
If the Export to PDF icon is unavailable, PDF exporting has not been made available for this document. If the Export to PDF dialog box is not displayed, you do not need to complete the remaining steps of this procedure. The PDF opens immediately.
3 If your document contains multiple layouts (see Creating multi-layout documents, page 714 for a description of layouts), you can choose to export the entire document or only the current layout. For an explanation of how layouts are exported, including examples, see Exporting multi-layout documents, page 727. To export the entire document, select All layouts. To export the current layout only, select Current layout.
4 If your document is grouped (see Chapter 3, Grouping and Sorting Records in a Document for a description of groups and pages), you can choose to export the entire document or only the selected group element to PDF. Page-by allows you to view the PDF by a selected group element. For examples of a paged document, and instructions on how to disable page-by, see Using page-by on a document, page 286. To export the entire document, select the Expand page-by check box. To export only the selected group element, clear the Expand page-by check box.
5 Click OK. The PDF opens in another instance of the Acrobat Reader.
Viewing a document as it will display in MicroStrategy Web (Flash View and HTML View)
Flash View and HTML View in Desktop display the document as it will look in MicroStrategy Web.
For more information and instructions, see Embedding fonts for Flash Mode, page 249.
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Document. 4 To enable Flash View, select the Flash check box in the Available display modes list.
5 To enable HTML View, select at least one of the following check boxes in the Available display modes list: Express Interactive Editable
1 In Desktop, double-click the document name or icon. The document opens in PDF View, in Acrobat Reader. 2 To preview the document for Flash mode, click Flash View on the toolbar. 3 To preview the document for other MicroStrategy Web modes, click HTML View on the toolbar. If Flash or HTML View is not available on the enabled.ViewEnabling MicroStrategy Web previewtoolbar, it must be See for a document, page 6 for instructions.
View, and edit the document while referring to a copy of the document as it looks in a browser.
To open a document in a separate browser window
1 In Desktop, double-click the document name or icon. The document opens in PDF View, in Acrobat Reader. 2 Click the Export to HTML icon in the toolbar. The Export to HTML dialog box opens.
If the Export to HTML icon is unavailable, HTML exporting has not been made available for this document.
If the Export to HTML dialog box is not displayed, you do not need to complete the remaining steps of this procedure. A copy of the document opens in a browser.
3 If your document contains multiple layouts (see Creating multi-layout documents, page 714 for a description of layouts), you can choose to export the entire document or only the current layout. For an explanation of how layouts are exported, including examples, see Exporting multi-layout documents, page 727. To export the entire document, select All layouts. To export the current layout only, select Current layout.
4 If your document contains page-by fields (see Chapter 3, Grouping and Sorting Records in a Document for a description of groups and pages), you can choose to export the entire document or only the selected group element to HTML. Page-by allows you to view the document by a selected group element. For examples of a paged document, and instructions on how to disable page-by, see Using page-by on a document, page 286. To export the entire document, clear the Expand page-by check box. To export only the selected group element, select the Expand page-by check box.
of Express Mode. Internet Explorer 7 is required for6the interactivitycannot interact If you are using Internet Explorer or earlier, you with the document. You can instead view the results only, as you might in a static PDF file. Flash Mode, which allows document analysts to access and interact with features provided by Flash, such as widgets. Interactive Mode, which allows document analysts to view the document and interact with it. It provides more interactivity than Express Mode, including formatting Grid/Graphs and creating metrics. Editable Mode, which displays the actual results of the document, while still allowing you to edit the document. All of the tasks that you can perform in Design Mode can also be performed in Editable Mode. This allows you to make changes and immediately see how they affect the look and feel of the document. Design Mode, which displays the structure of the document, or the placeholders for the document objects, without the actual results. It allows you to create and edit the document and the various objects that make up the document. You can work more quickly in Design Mode than in Editable Mode since you do not have to wait for the results of your document to load in Design Mode.
For instructions to open a document in MicroStrategy Web, and more details on the various modes, see the MicroStrategy Web Help. the document Beforewhich modes itcan be viewed in MicroStrategy Web, you must select can be displayed in. For instructions, see Selecting the display modes available for MicroStrategy Web, page 249.
Data (attributes, consolidations, custom groups, and metrics) from the documents dataset reports. See Adding text and data to a document, page 51, for examples and instructions. Static text for labels. See Adding text and data to a document, page 51, for examples and instructions. Information about the document (such as page numbers) and the dataset reports (such as report names and filter information). See Displaying document and dataset report information: Auto text codes, page 59, for examples and instructions. Metrics created within the document, which use the metrics on the dataset reports to obtain data not directly available from the datasets. These include derived metrics, calculated expressions, and summary metrics. For instance, a calculated expression combines metrics from different dataset reports. For more examples, and instructions to create them, see Working with metrics in documents, page 95.
HTML container, which displays real-time information from the web. For instructions to create HTML containers, and examples of how they can be used, see Displaying real-time web and other HTML content: HTML containers, page 121. Line or Rectangle. For instructions to create lines and rectangles, and examples of how they can be used, see Adding shapes and lines to a document, page 128. Image. For instructions to create images, including guidelines to ensure that the images are available as needed, see Inserting images in a document, page 130. Grid/Graph, which displays data in the same way that a MicroStrategy report does. For instructions to create Grid/Graphs and examples of how they can be used, see Chapter 4, Displaying Reports in Documents: Grid/Graphs.
Other types of controls, such as selectors and widgets, provide interactivity and visually intuitive graphic images. These controls are most commonly used on dashboards, which are a specific type of document. However, their use is not limited to dashboards; you can use them on any type of document. These types of controls include: Panel stack, which is a holder for a collection of panels, or layers of data, in a document. A user can navigate or flip through the panels in a panel stack; only one panel is displayed at a time. The document sample below shows a Grid/Graph, Employee Info By Region, on a panel in a panel stack.
Selector, which allows users to interact with the document, by flipping through the panels in a panel stack or by displaying different attributes or metrics in a Grid/Graph.
11
The selector in the document sample above is the list of Grid/Graphs at the left. When a user clicks Category Sales Report, that Grid/Graph on another panel in the panel stack is displayed, as shown below.
Widget, which displays the results of a dataset report in Flash in MicroStrategy Web, allowing users to visualize data in different ways than traditional reports displayed as Grid/Graphs do.
controls, as For more details and examples of dashboards and these 5, Designing well as procedures to define these controls, see Chapter Dynamic Enterprise Dashboards. Each of these different kinds of controls is referred to as a control type. Dragging and dropping a dataset object onto the Layout area of the Document Editor creates a control. If the dragged object is a dataset report, a Grid/Graph is created; otherwise, a text field containing the dataset object is added to the Layout area. When the document is displayed as a PDF, the Grid/Graph is displayed like a MicroStrategy report; the text field displays the elements or values of the dataset object. Where a control is placed in the Layout area (which document section, that is) determines not only the location of the values but also whether it is repeated and at what level it is calculated. For example, some document sections, such as the Page Header or Page Footer, are appropriate for displaying page numbers because those sections are automatically repeated throughout the document. A metric placed in different document sections is calculated differently. In the Detail section, the metric is calculated at the level of the attribute element, while the same metric placed in the Group Header section is calculated at the level of the group. This is described in more detail, including examples, in Metric calculation in documents, page 110.
For a more in-depth description of the various document sections, including explanations of where they appear when the document is generated and the type of information they typically contain, see Understanding and working with document sections, page 34. After you add controls, you can move and arrange them to determine how they appear when the document is viewed as a PDF. For instructions and examples of the various ways in which you can move and arrange controls, see Arranging controls on a document, page 136. You can format the document as a whole, and also the separate controls that are included in the document. For information on the formatting available in documents, including instructions and examples, see Chapter 2, Formatting Documents.
In HTML View and PDF View, the analysis is displayed as a static document. You can update and modify the document in Design View. You can therefore use an analysis as a starting point for a document, to add data and a structure to the document. Switch to the Document Editor to add formatting and fine-tune the document. analysis in Desktop Saving theback to an analysis. converts it to a document; it cannot be converted
2011 MicroStrategy, Inc. Designing and creating documents: An overview
13
Add the data to a graphical representation, such as a bar graph or pie chart Display the data in an interactive widget, such as a Geo Map, Graph Matrix, or Heat Map
Filter the data, by the elements of an attribute or the value of a metric Group the data, by selecting the attributes to page by, and then selecting which element to display Sort data Drill into the data Move attributes and metrics around the template, quickly swapping objects between the rows and columns of the analysis Add data from existing reports, documents, and Intelligent Cubes
In MicroStrategy Web, you can quickly and efficiently create a meaningful display, since you do not need to switch to Design View to change the data that is displayed in the analysis. You can quickly create an analysis from an existing source: a report, document, or Intelligent Cube. Once you select the data from the source, the data is automatically added to an interactive grid. You can immediately begin sorting, pivoting, and filtering data. For information on working with analyses in MicroStrategy Web, including instructions and examples, see the MicroStrategy Report Services Document Analysis Guide or the MicroStrategy Web Help. For information on creating analyses in MicroStrategy Web, including instructions and examples, see the MicroStrategy Web Help.
15
If your universe of users is extremely diverse, consider making documents as flexible as possible for each user who executes them, by adding prompts. A prompt asks users questions about the results they want to see on a document, and then submits the appropriate query to the data source. For an introduction to prompts, see the MicroStrategy Basic Reporting Guide. Your universe of users may include different security requirements. For example, you may need a single document for a group of users, but that group includes both external and internal users, and you want to restrict some data from external view. You must confirm that appropriate security is in place for a documents underlying objects, and that security filters are in place to control row-level access to data. Object-level security is performed using ACLs, or access control lists. Security filters and ACLs are generally implemented by your system administrator, but one or both may be under the control of your project designer. See the MicroStrategy System Administration Guide for details on security filters, ACLs, and other security features.
When panels are pre-loaded, they display immediately when the user selects a different panel. However, if the user is unlikely to access all the panels in a panel stack, or if you want to optimize the initial load time of the document, you can specify that the panels load only when a user changes to a different panel. Note that this on-demand panel loading only occurs when the document is executed in MicroStrategy Web with DHTML enabled.
Determine whether the dataset(s) will return a large amount of data. If so, consider adding grouping to the document, by choosing which attributes you want to group the pages by. See Grouping records in a document, page 260. Make the following decisions as you are planning the design of your document, not after you are finished:
Determine the logic for page breaks. See Adding page breaks and numbering pages, page 229. Decide what export options you will enable for users of this document. See Formatting a document for export, page 250.
Decide whether you need landscape or vertical orientation to best display the data you want to include. See Formatting a document for printing, page 227. If the document will be viewed in PDF, be sure to include bookmarks. See Including or hiding bookmarks in PDFs, page 240.
Do not include so many graphical objects that the data becomes unimportant. Make sure the data is the main focus of the document. The overall goal is to achieve a clean look. Plan your design so that all related data can be seen on a single screen or page, and that it can be interpreted from the top left to the bottom right. Save your document frequently as you design and make formatting changes to it.
For additional best practices when designing a dashboard and when using effects and widgets, see Best practices for dashboarding, page 381.
19
Choose Excel-compatible colors for all objects, including panels, shapes, and Grid/Graphs. Use the set of 40 colors that appear in the Color dialog box in the Document Editor. Excel supports these 40 colors in addition to many more. Other colors are matched by Microsoft Excel as closely as possible. Avoid using gradient colors, since they are not exported to Excel. Use graph styles that are supported by Microsoft Excel. For example, if you include a Gauge graph in the document, it is not displayed in Excel. If you include a Combination graph, the exported version in Excel may not be displayed exactly like the original graph in MicroStrategy Web. For a list of graph types that appear differently in Excel than in MicroStrategy, see Displaying images in Excel, page 256. Avoid overlapping objects. When exported, the document may not be displayed correctly. For example, an object in the background of the document may be displayed in the foreground of the Excel spreadsheet. Provide extra space around objects because they may increase in size when the document is exported to Excel. Use text field borders to create lines and rectangles. Standard MicroStrategy line and rectangle controls may not be displayed correctly in Excel. You can also use a panel stack to create a colored background; for instructions to create panel stacks, see Layering data on dashboards: panels and panel stacks, page 392. Avoid inserting line breaks within text fields. Line breaks (inserted by typing CTRL+ENTER) are not rendered in Excel. Do not enable word-wrapping in a column header on a Grid/Graph in MicroStrategy. If you do so, the headers are not displayed correctly in Excel or PDF. Enable word-wrapping in Excel after you export the document.
21
Creating documents
You can create a document in one of several ways, depending on your needs: On your own from start to finish using the Document Editor, which allows you to select the information to be included and the formatting of the document (see Creating a document using the Document Editor, page 24). You can add one or more dataset reports to the document. With the help of the Document Wizard, which provides steps to create the document (see Creating a document using the Document Wizard, page 25). Using another document as a template, which allows you to pattern the new document after an existing one (see Creating a document using another document as a template, page 27). The same dataset, controls, formatting, and layout as the template are used in the new document. However, you can add to or modify the new document after it is created. From a report. The report is added as a Grid/Graph (an object that acts like a standard MicroStrategy report) in the Detail Header of the new document (see Creating a document from a report, page 31). You can also select multiple reports at the same time to create a multi-layout document (see Creating a document from a report, page 31 for instructions and Creating multi-layout documents, page 714 for background information on layouts).
A dashboard is a special type of document. A dashboard is commonly only one page long, is intended to be viewed online, and usually provides interactive features that let analysts change how they view the dashboards data. For information on creating dashboards, the objects that can be used to create dashboards, and dashboard examples, see Chapter 5, Designing Dynamic Enterprise Dashboards.
22 Creating documents
These dataset objects are all of the objects from the dataset report, regardless of whether they are displayed on the report. That is, if a metric, for example, is in the Report Objects but not displayed on the grid, that metric is listed as a dataset object. For background information about these subset reports, including the different methods to add them to a document, see Using a MicroStrategy OLAP Services report as a dataset, page 749. When you create a new document, you can select the report or Intelligent Cube to use as the dataset. Once the document is created, you can: Add another dataset to the document Replace an existing dataset with another dataset Replace all the datasets in the document with a single dataset Remove a dataset from the document
Multiple datasets
You can create a document with multiple dataset reports, and you can add more dataset reports after you create a document. One dataset must be defined as the grouping and sorting dataset; you can group and sort only by the objects on this dataset. For details on how multiple datasets join together in a document, see Using datasets in documents, page 730. For instructions to change the grouping and sorting dataset, see Changing the grouping and sorting dataset for a document, page 748.
Creating documents
23
1 From the File menu, select New, then Document. The New Document dialog box opens. object If the Select a report dialog box opens, below. templates are disabled for documents. Skip to step 3 2 Select the Blank Document icon and click OK. The Select a report dialog box opens. you to start with a A document template allowsnew document. Thepredefined structure when you create a Blank Document template helps you create a traditional document with multiple sections, but you can select a different template. For background information on document templates and using them to create a document, see Creating a document using another document as a template, page 27. 3 Navigate through the report folders and select the MicroStrategy report or reports to use as datasets. To select multiple reports, hold the SHIFT or CTRL key while selecting the reports. added to If you select multiple reports, allinthe selected reports aredefined as the document. The first dataset alphabetical order is the grouping and sorting dataset. You can sort and group the document using fields from the grouping and sorting dataset only. For instructions to change the grouping and sorting dataset, see Changing the grouping and sorting dataset for a document, page 748. For background information on using multiple datasets in documents, see Working with multiple dataset reports, page 731. 4 Click OK. The Document Editor opens. The datasets that you chose are displayed in the Datasets pane. For descriptions of the editors major sections and toolbars, see Appendix A, Document Interfaces in MicroStrategy.
24 Creating documents
5 Select the data for the document. Add data fields, auto text codes, text labels, images, and other controls. For instructions, see: Adding text and data to a document, page 51 Displaying document and dataset report information: Auto text codes, page 59 Displaying real-time web and other HTML content: HTML containers, page 121 Adding shapes and lines to a document, page 128 Inserting images in a document, page 130 Adding a Grid/Graph to a document, page 298
6 Arrange the controls as you like. For instructions, see Arranging controls on a document, page 136. 7 Format the various controls and sections, as well as the document as a whole. For descriptions of the various formatting options, and instructions to apply them, see Chapter 2, Formatting Documents. 8 Group and sort the data. For instructions and background information, see Grouping and Sorting Records in a Document, page 259. 9 Add totals, if desired. For instructions, see Calculating totals and summary metrics in documents, page 104. 10 Save the document by selecting Save from the File menu. 11 You can now execute and view the document. To do this, from the View menu, select PDF. For a list of actions that you can perform in PDF View, and instructions to print the document, see the MicroStrategy Document Analysis Guide or the Desktop Help.
25
1 Select New Document from the File menu. The New Document dialog box opens. a report dialog are If the Select documents. Youbox opens, object templatesyou can use disabled for must enable them before the Document Wizard. For instructions, see the Desktop Help. 2 Select Document Wizard and click OK. The wizard opens with a Welcome page that lists the steps to create a document. 3 Perform the tasks that follow, clicking Next after completing each task. a Select the documents data source type: allows you to select the MicroStrategy report used as a dataset and to specify a title that displays at the top of the document. b Select fields for the document: lets you determine which objects from the dataset will be on the document. c Select how the document is grouped: allows you to group the data in the document and determine the hierarchical structure of the document. When a grouped document is displayed in PDF View, you can use page-by to interactively display groups on separate pages. For more detailed information on grouping and paging a document, including examples, see Grouping records in a document, page 260 and Using page-by on a document, page 286.
d Specify group sorting: allows you to sort the groups on the document. For more detailed information on sorting a document, including examples, see Sorting records in a document, page 290. e Select a template for the documents layout: allows you choose from several predefined document layouts, which provide formatting and layout information. For more detailed information about document templates, see Creating a document using another document as a template, page 27.
26 Creating documents
Select the documents formatting Autostyle: allows you to choose an Autostyle to apply to the new document. An autostyle is a collection of formatting properties saved for various control types. For more detailed information about Autostyles, see Formatting a document using predefined formats (Autostyles), page 215.
about any the see For detailed explanationsthe Desktoppage inpresswizard,clickthe Desktop Help. To access Help, F1 or Help in the wizard. 4 Click Finish to create the document and open it in the Document Editor. 5 Save the document by selecting Save from the File menu. 6 If you wish, view the document by clicking PDF View on the toolbar. The Adobe Acrobat Reader opens, displaying the actual data in the format you created.
Creating documents
27
MicroStrategy provides predefined document templates, including the Blank Document template and the Blank Dashboard template. Use the Blank Document template to create a traditional document, with multiple sections. The Blank Dashboard template displays only one section, the Detail Header, allowing you to easily design a dashboard using the whole screen. For a detailed description of the Blank Dashboard template, including default properties and an example of a document created with it, see Creating a dashboard: the Blank Dashboard template, page 389; for background information about dashboards in general, see Chapter 5, Designing Dynamic Enterprise Dashboards. Other predefined dashboard templates provide other common structures for dashboards, such as four evenly-spaced panel stacks to place contents in, one panel stack on the left side of the dashboard and two smaller ones on the right, or a text field across the top of the dashboard for a title bar with a panel stack below it. You can create new document templates from scratch; for instructions, see To create a new template for documents, page 28. You can also import and export documents between projects to use as document templates; for instructions, see To export a document template, page 29, and To import a document template, page 29. You can also use portable documents to reuse documents across projects. Unlike a document template imported and exported between projects, a portable document can contain dependencies on schema or application objects, such as a dataset report. After importing a portable document into a project, you reconcile the document to the new project. For more details on portable documents and the reconciliation process, including reasons to use them and instructions, see Portable documents: Reusing documents across projects, page 778.
Do not confuse document templates and Autostyles. Autostyles contain formatting information only, while document templates
contain datasets, controls, and layout as well. Layout templates, available only in the Document Wizard, affect only the position and placement of controls on the document.
To create a new template for documents
If you want a document to be available as a template so that you can format your other documents based on it, save it or copy it to the following folder: Project name\Object Templates\Documents
28 Creating documents
The document will then be available as a template for selection in the New Document dialog box when you create a new document. Object Templates TheTools menu, selectfolder is hidden by default. To display it, from the Desktop Preferences. On the Desktop tab, click Browsing Options. Select the Display Hidden Objects check box and click OK.
To export a document template
A document can be exported from one project and then imported into another project to use as a template to create a new document. The document cannot have any dependencies on schema or application objects, such as a dataset report. 1 In Desktop, select the document to export. 2 From the Tools menu, select Export Document Template. The Browse for Folder dialog box opens. 3 Navigate to the folder to save the file in, then click OK. The document, named document_name.rst, is saved in the selected folder.
To import a document template
After you export a document from one project, you can import it into another project to use it as a template to create new documents. 1 From the Tools menu in Desktop, select Import Document Template. The Open dialog box opens. 2 Navigate to and select the file to import as a document template. 3 Click Open. The document template is saved in the Object Templates\Documents folder in Desktop.
Creating documents
29
1 Within MicroStrategy Desktop, from the File menu, point to New, then choose Document. The New Document dialog box opens. a report dialog are If the Select documents. Youbox opens, object templatesyou can use disabled for must enable them before the Document Wizard. For instructions, see the Desktop Help. 2 Select the template and click OK. templates to To view additionalThe most basiccreate a dashboard, click the Dashboards tab. template here is the Blank Dashboard template, which displays only one section, the Detail Header. This allows you to easily design a dashboard using the whole screen. Other predefined dashboard templates provide a structure for dashboards, such as four evenly-spaced panel stacks to place contents in, one panel stack on the left side of the dashboard and two smaller ones on the right, or a text field across the top of the dashboard for a title bar with a panel stack below it. For information on creating dashboards, the objects that can be used to create dashboards, and dashboard examples, see Chapter 5, Designing Dynamic Enterprise Dashboards. 3 The new document opens in the Document Editor. You can now customize the document to include the following: Add data, shapes, images, and so on (called controls) to the document. See the following for instructions:
Adding text and data to a document, page 51 Displaying document and dataset report information: Auto text codes, page 59 Displaying real-time web and other HTML content: HTML containers, page 121 Adding shapes and lines to a document, page 128 Inserting images in a document, page 130 Adding a Grid/Graph to a document, page 298
Move, size, and align the controls that you added. For instructions, see Arranging controls on a document, page 136.
30 Creating documents
Change the formatting of the document. You can format the various controls and sections, as well as the document as a whole. For descriptions of the various formatting options, and instructions to apply them, see Chapter 2, Formatting Documents. Change the sorting or grouping order. For descriptions of these options, and instructions to apply them, see Chapter 3, Grouping and Sorting Records in a Document.
4 Save the document by selecting Save from the File menu. 5 You can now execute and view the document. To do this, from the View menu, select PDF.
about For background information filters,Grid/Graphs,4,including view modes, formatting, and view see Chapter Displaying Reports in Documents: Grid/Graphs.
Creating documents
31
Any prompt answers that are stored in the report are copied to the document. information on prompts in including For backgroundcreate them, see the Buildingreports,Objects and instructions to Query Queries, for Designers chapter of the MicroStrategy Basic Reporting Guide.
The page-by fields are added as grouping fields on the document. A Group Header and Group Footer for each page-by field are added to the document.
For information on how grouping and sorting works,aincluding examples and instructions, see Grouping records in document,
page 260, and Using page-by on a document, page 286. For background information on page-by in reports, see the Building Query Objects and Queries, for Designers chapter of the Basic Reporting Guide.
To create a document from a report
the report already exists. For instructions This procedure assumes Building Query Objects and Queries, for on creating reports, see the Designers chapter of the Basic Reporting Guide. 1 Do one of the following: To create a document from a saved report in Desktop, right-click the report to convert, and then select Create document. The new document opens in Design View in the Document Editor, with the report displayed as a Grid/Graph in the Detail Header. To create a multi-layout document from multiple saved reports, select the reports in Desktop, right-click the reports, and select Create document. The new document opens in Design View in the Document Editor, with a separate layout for each report. Each report is displayed as a Grid/Graph in its own layout. For background information on layouts, such as lists of the properties that apply to the document as a whole or to individual layouts, and examples of multi-layout documents, see Creating multi-layout documents, page 714.
32 Creating documents
To create a document from a report that is being edited, select Create document from the File menu. If you have made changes to the data definition, such as modifying the report filter or adding new objects to the report, you are prompted to save the report. You should select Yes, because the changes may be lost otherwise. The new document opens in Design View in the Document Editor, with the report displayed as a Grid/Graph in the Detail Header. The current view of the report is used as the definition of the Grid/Graph.
To create a document from a report that is being viewed, select Create document from the File menu. If you have made changes to the data definition, such as modifying the report filter or adding new objects to the report, you are prompted to save the report. You should select Yes, because the changes may be lost otherwise. The new document opens in PDF View in the Document Editor, with the report displayed as a Grid/Graph. The current view of the report is used as the definition of the Grid/Graph. To edit the document, click the Design View icon on the toolbar.
To create a document from a report in MicroStrategy Web, execute the report. Select Convert to Document from the Tools menu. The new document opens in Express Mode, with the report displayed as a Grid/Graph. To edit the document, click the Design Mode icon on the toolbar.
2 Format or edit the Grid/Graph. For instructions to edit and format Grid/Graphs, as well as background information about Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. 3 Format and edit the rest of the document. A few suggestions are listed below: Select additional data for the document. Add data fields, auto text codes, text labels, images, and other controls. See the following for instructions:
Adding text and data to a document, page 51 Displaying document and dataset report information: Auto text codes, page 59 Displaying real-time web and other HTML content: HTML containers, page 121 Adding shapes and lines to a document, page 128
Creating documents
33
Inserting images in a document, page 130 Adding a Grid/Graph to a document, page 298
Move, size, and align the controls that you added. For instructions, see Arranging controls on a document, page 136. Change the formatting of the document. You can format the various controls and sections, as well as the document as a whole. For descriptions of the various formatting options, and instructions to apply them, see Chapter 2, Formatting Documents. Group and sort the data. For instructions, see Chapter 3, Grouping and Sorting Records in a Document. Add totals, if desired. For instructions, see Calculating totals and summary metrics in documents, page 104.
4 Save the document by selecting Save from the File menu. 5 You can execute and view the document. To do this, from the View menu, select PDF.
If the document is grouped, a Group Header section is displayed between the Document Header and the Detail Header, and a Group Footer section between the Detail Footer and the Document Footer. If the document contains multiple layouts: The Page Header and the Page Footer are shared, by default, although you can change that. The Document Header and the Document Footer are replaced by the Layout Header and the Layout Footer.
For instructions to create a multi-layout document, see Creating multi-layout documents, page 714. By default, when you create a new document using the Blank Document template, the Detail Header, Detail section, and Detail Footer are expanded. The other sections are collapsed. If you create a new document using the Blank Dashboard template, only the Details Header is displayed. This allows you to easily design a dashboard using the whole screen. To expand or collapse a document section, click the plus sign or minus sign next to it (as highlighted in the diagram below). In the image above, each section is expanded.
a in it Collapsingaresection does not affect its sizeisor whetheracontrols simply appear or hidden when the document viewed as PDF. It conserves space within the editor as you design the document. All the document sections are described in Document sections overview, page 38, with an explanation of where they appear when the document is generated, and the type of information they typically contain. You can insert additional sections within these predefined document sections. This allows you to customize a section without affecting another section. For examples and instructions, see Inserting additional sections in documents, page 45.
35
If the document contains multiple layouts, you can hide and display different sections for different layouts. Each layout is independent of the others in this regard. For background information on multi-layout documents, including which properties apply to the document as a whole or to individual layouts, see Creating multi-layout documents, page 714.
You can also create your own template that has the sections that you commonly work with expanded by default. For instructions to create a document using a template and to create a template, as well as general information about templates, see Creating a document using another document as a template, page 27.
37
For an expanded example, reasons to use horizontal display, and instructions, see Displaying sections horizontally, page 186. horizontally render the Group Header and Group Youacan alsoFor an example and instructions, see Displaying aFooter group for group. horizontally, page 273.
The only document section not displayed on the first page is the Document Footer, which appears at the end of the document. The following sample shows the last page of the document, with the Document Footer.
39
If the document contained multiple layouts, the Document Header and Document Footer are replaced by the Layout Header and Layout Footer, as shown in the multi-layout document below, displayed in Design View:
For a description of multi-layout documents, see Creating multi-layout documents, page 714.
Each document section is explained in more detail below.
Page Header
The Page Header section and the controls within it print at the top of every page in the document. Any data fields placed in the Page Header are calculated once for the entire document, and then repeated on every page. You can use the Page Header for the types of controls that will not change from page to page, such as a logo, the document title, execution time, and so on. For information about these auto text fields, see Displaying document and dataset report information: Auto text codes, page 59.
Document Header
This section prints once at the beginning of the document immediately below the Page Header section. Any data fields placed in the Document Header are calculated using all of the data in the document. The Document Header can be used for grand totals and document information, such as the name and execution time.
Layout Header
The Layout Header only appears in multi-layout documents. This section prints once at the beginning of the layout, immediately below the Page Header section. Any data fields placed in the Layout Header are calculated using all of the data in the layout. For example, a metric in the Layout Header displays as a grand total. Each layout of a multi-layout document contains a Layout Header and a Layout Footer, so a document can contain several Layout Header sections and several Layout Footer sections. only one layout A document with Layout Headers.has a Document Header, described above, instead of
Group Headers
this type of section is displayed as In Design View,replaced by the name of the group,GroupasHeader, where Group is such Region. If the document is grouped, the Group Headers follow the Document Header. If the document contains multiple layouts, the Group Headers are displayed after the Layout Header. The Group Headers can be used to
41
display information about the group, such as the group element (such as Northeast or Southwest) and group totals. For each field in the Grouping panel at the top of the editor, there is a corresponding header and footer surrounding the Detail sections. For example, if you have Region and Year in the Grouping panel, the layout area of the document has a pair of Region Header/Footer sections and a pair of Year Header/Footer sections as shown in the following example.
farthest to the left in For the attribute that isfollows the Document the Grouping panel, its corresponding header Header or Layout Header section. The rightmost attribute Group Header immediately precedes the Detail Header. All other headers for attributes in the Grouping panel fall in between. You can also display groups horizontally (across the page) instead of vertically. The Group Header, Group Footer, Detail Header, Detail Footer, and the Detail sections will all be displayed horizontally. For an example and instructions, see Displaying a group horizontally, page 273.
Detail Header
This section immediately precedes the Detail section of the document. If the document is not grouped, the Detail Header follows the Document Header, otherwise it follows the Group Headers. Layout Header If the document contains multiple layouts, theHeader follows either replaces the Document Header, so the Detail the Layout Header or the Group Headers. The Detail Header is commonly used to display column headers, above their corresponding data fields in the Detail section. To have the column headers repeat on each page, select the section and then in the Property List panel, set Repeat on Each Page to True. You can also print the Detail Header, Detail, and Detail Footer sections horizontally across the page, instead of vertically. For an example, reasons to use horizontal display, and instructions, see Displaying sections horizontally, page 186.
Detail
This section often contains the main content of the document. One row prints for each row of data in the documents dataset. Typically, this is where you place most of the attributes and metrics. The Detail section provides the most detailed or granular information. You do not always need to use the Detail section of a document. You can place controls in the Group Header, for example, to aggregate data to a higher level. You can also print the Detail section horizontally, across the page, instead of vertically. For an example, reasons to use horizontal display, and instructions, see Displaying sections horizontally, page 186.
43
Detail Footer
Controls in this section print immediately following the Detail section. This is typically a good place for totals. In this document, totals are placed in the Region Group Footer, so there was no need to duplicate them here. You can also display the Detail Header, Detail, and Detail Footer sections horizontally across the page, instead of vertically. For an example, reasons to use horizontal display, and instructions, see Displaying sections horizontally, page 186.
Group Footers
this type of section is displayed as In Design View,replaced by the name of the group,GroupasFooter, where Group is such Region. Group Footers are used to display totals at the group level. The order of the Group Footer sections varies depending on the fields in the Grouping panel, as described in Group Headers, page 41. You can display groups horizontally across the page, instead of vertically. The Group Header, Group Footer, Detail Header, Detail Footer, and the Detail sections will all be displayed horizontally. For an example and instructions, see Displaying a group horizontally, page 273.
Layout Footer
The Layout Footer only appears in multi-layout documents. This section prints only once, at the end of the layout. It can be used to display closing notes, a conclusion, or a summary. Each layout of a multi-layout document contains a Layout Header and a Layout Footer. Therefore, a document can contain several Layout Headers and several Layout Footers, unlike other document sections. layout A document with aonly one Footer.has a Document Footer, described below, instead of Layout
Document Footer
The Document Footer prints only once at the end of the document. It can be used to display information such as closing notes, a conclusion, or a summary.
Page Footer
The Page Footer prints at the bottom of every page in the document. You may want to insert the page number or the date/time in this section.
45
into two sections, and set the properties for each section. As shown in the following figure, the Detail Header of the document has two sections in it.
The first Detail Header section contains an explanation of how the metrics are calculated. It does not repeat on every page in the document because the explanation is needed only once. The second Detail Header section contains
column headers and repeats on each page in the document. The PDF View of the document is shown in the following image.
Tutorial The example above was created in the MicroStrategydataset. project using the Inventory and Unit Sales - TVs report as a The formatting of the new section is copied from the section in which it is added.
47
In PDF View, the Detail section is displayed next to the Detail Header, beneath the Region Header, as shown in the document sample below. The remaining employees in the Detail section, and the Detail Footer that follows, are not shown in the sample, for space reasons.
You can add a section to a horizontally displayed section, as with vertically displayed sections. The only difference is that you insert the section to the left or right of the original section, rather than above or below it. The new section is displayed horizontally as well. For instance, a section has been added to the previous document, to the right of the Detail Header. The new section is shown below, in Design View.
example, reasons to use horizontal display, For an expandedDisplaying sections horizontally, page 186. and instructions, see
However, when you switch to PDF View, the Grid/Graphs overlap because of the amount of information they contain, as shown below:
To resolve this problem, insert a new section into the Detail Header, by selecting the Detail Header and choosing Insert Section Below from the Insert menu. This creates two Detail Headers, named Detail Header 1 and Detail Header 2. Move the Inventory Received from Suppliers by Quarter Grid/Graph into the new section. Select Detail Header 1, and set the Can
49
grow property to True. Now when you generate the PDF, the Grid/Graphs are separated as shown in the following image.
A text field is the type of document control that displays data and text. Text fields can display metrics, attributes, consolidations, and custom groups from a dataset. They can also display page numbers or descriptive labels, such as the words Employee and Region in the sample above. The different types of text fields include: Static text: This text does not change and is commonly used for labels or descriptions. Examples in the sample document are the words Employee and Revenue. For directions to add static text, see Adding static text to a document, page 52.
51
Dynamic text: This text is automatically populated by the document or dataset. Dynamic text is always included within braces { }. There are two types of dynamic text:
Data field: This is automatically populated from a dataset with data that originated in the data warehouse (or an Intelligence Server cache), such as the employee names and revenue amounts in the document sample above. A data field is only a reference to an object on a report. The object can be a metric, attribute, consolidation, or custom group. For an example and instructions, see Adding data fields to a document, page 53. Auto text code: This is automatically populated by the document or dataset. It consists of the documents or datasets properties rather than data from the data warehouse. For example, auto text codes can display the documents name and page numbers, and the dataset reports name and filter information. In the document sample on page 51, auto text codes display the page numbers. For the full list of available codes, as well as instructions to create auto text codes, see Displaying document and dataset report information: Auto text codes, page 59.
A combination of any or all of the types: You can use a combination of different types of text fields in a single text field. For example, the text Central Region in the sample document on page 51 contains the dataset object Region, followed by the static text Region. For an example and instructions, see Combining different types of text fields in a document, page 57.
1 Open a document in Design View. 2 Expand the section where you want to add the text by clicking the plus sign next to the section name.
3 From the Insert menu, select Text. When you move the cursor to the Layout area, the pointer becomes crosshairs. 4 Click in the section of the Layout area where you want to place the text field. If you click and drag in the section, you can size the text field. 5 Type the static text. Press ENTER when you have finished. field is default style The textdefaults.automatically formatted in a defaults, see using the control For information on control Defining default formatting for control types: control defaults, page 196. 6 You can change the formatting of the text field. See Formatting text fields, page 166 for instructions. 7 You can resize the text field. See Sizing controls, page 142 for instructions. 8 To allow users to click the text field and open a Web page, define it as a hyperlink. For instructions, see Defining hyperlinks in documents, page 706.
When the document is executed, all data fields are automatically populated from a dataset with data that originated in the data warehouse (or an Intelligence Server cache).
53
When the data fields shown above are displayed in PDF View, the attribute elements and revenue values are displayed, as shown below:
referenced a data removed dataset If the objectdata field willbybecome field istext when from theis created. report, the static the PDF You can add data fields in any of the following ways: Drag and drop a dataset object onto any section of the Layout area. A text field containing a reference to the dataset object is added to the document. Insert a blank text field in any section of the Layout area, then type the reference to the dataset object in the text field. Create a metric within the document, which creates a text field containing a reference to the metric.
a The value of a metric, whether it is created in the document or is in dataset object, is calculated differently depending on its location the document, as described in Metric calculation in documents, page 110. The following sections describe the first two methods in more detail. For instructions to create metrics using the other methods, see Creating metrics in documents, page 97.
{ }. When the document is executed, the string is replaced by the data it represents.
If an object name contains special characters, the text field is automatically placed within square brackets [ ] when you drop it in the Layout area. This ensures that data fields are resolved correctly when the PDF is displayed in a language other than English. A special character is any character other than a - z, A - Z, 0 - 9, #, _, and . (period). When you add a metric to the document, the dataset name is added to the string if the metric exists in multiple datasets.
For example, to add the Revenue metric to the Detail section, drag it from the Datasets pane to the Detail section. The result is that the revenue data from the Sales by Region dataset report displays in the document, as shown below.
drag a metric to a document automatically If you or aggregates it at header section, thelevel, as described in totals the corresponding Metric calculation in documents, page 110. You can drag attributes to the Detail section to give more meaning to the revenue data. For example, if you drag Year, Category, and Subcategory to the Detail section, near the Revenue metric that you added before, it looks like this:
55
When you view the document as a PDF, the result looks like this:
For information about formatting text fields, see Formatting text fields, page 166. If you want a user to be able to click a piece of text and go to a Web page, you can define it as a link. For details, see Linking to a web page, page 677.
To display a particular attribute form, expand the attribute in the Datasets pane. Drag and drop the desired attribute form into the Layout area. The
format of the data field is attribute@attribute_form. See the following image, which generated the document sample above.
This example is taken from the Inventory by Subcategory document in the MicroStrategy Tutorial.
57
For example, if you type Date/time: in a text field, then insert the Date and Time auto text code into the same field, the final text field looks like Date/time: {&DATETIME}, in Design View. In PDF View, the result is displayed as: Date/time: 11/15/2003 07:15:00 PM When different types of text fields are combined in one text field, the entire text field has the same formatting and properties. For example, if you want to make the label Date/time: bold but keep the actual date and time in plain text, you should place them in separate text fields and format them differently.
To combine different types of text fields
1 Open the Document Editor in Design View. 2 Expand the section where you want to add the text by clicking the plus sign next to the section name. 3 Add a text field, following these directions: a Click the Text icon in the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. b Click in the section of the Layout area where you want to place the text field. If you click and drag in the section, you can size the text field. 4 Combine any of the following methods to enter information into the text field. Each piece of information is added at the position of the text cursor. For example, if you type the word Region, followed by a space, then drag and drop the Region attribute, the text field looks like Region {Region}. To add static text, type it in the text field. To add a data field, drag and drop a dataset object into the text field. To add an auto text code, point to Auto Text on the Insert menu and select the code. To create a new line in the text field, press CTRL+ENTER.
5 When you have finished making all the text entries in the text field, press ENTER or click anywhere outside the text field. 6 You can change the formatting of the text field. See Formatting text fields, page 166 for instructions.
1 Open the document in the Document Editor. 2 Expand the document section where you want the auto text code by clicking the plus sign next to the section name. 3 To add an auto text code to a document, do one of the following: From the Insert menu, select Auto Text, then select the code to insert. The text field that contains the auto text code is added at the top left corner of the selected section, although you can move the text field to any position.
To add auto text code to text field (select itanand press F2) and an existing text field, edit theYou may then add the auto text code. need to resize the text field to view the auto text code.
59
Insert a blank text field and type the code within braces.
fields, if objects name spaces or As with dataenclose it ansquare bracketscontainsthe braces.special characters, in within Refer to the following sections for lists of the available auto text codes: Auto text codes for document information, page 60 Auto text codes for dataset report information, page 63
4 After you add an auto text code, you can configure how it is displayed. For example, if you add an auto text code to display the filter information for a dataset report, you can select whether to include view filter information or to display attribute names. For report details, you can choose whether to include information on prompts, filters, or both. For examples and instructions, see Configuring auto text codes, page 65.
For instructions on formatting the text field that contains the auto text code (such as the font name or background color), see Formatting
text fields, page 166. When you view the document as a PDF, the auto text code is replaced with the information from the document or dataset.
{&DATETIME}
11/15/2003 7:10:55 PM Current date and time, of the client computer, when the PDF was generated You can format this auto text code like any other date and time text field. In the Property List, click ... (the browse button) next to the Number formatting setting. You can use this property to show just the date or the time.
Description Current user Document name Document description Document inbox title
Sample Output Jane User Regional Sales Summary Revenue and profit by region Regional Sales Summary for Tuesday
Comments The full name, not Desktop login, of the user who generates the PDF The name of the document as stored in the project Short description of the document The name of the document instance If you send a document to the History List, you can rename that instance of the document. This auto text code displays that name, rather than the document name stored in the project. Notes added to the document. For background information on notes, see Notes, page 845. The name of the project in which the document is stored User's answers to each prompt in the document, identified by number If n is greater than the number of prompts in the document, the code cannot be replaced with pertinent information. Therefore the code itself is displayed in the PDF. Details for all the prompts in the document You can define how this auto text code is displayed (for example, if the prompt name is shown). For details, see Configuring the prompt details auto text code, page 75.
Document notes
{&NOTES}
User1: 8/15/2010 10:10:10 AM: Reviewed and approved MicroStrategy Tutorial South (for example, if prompt1 is for the attribute Region)
Prompt details
{&PROMPTDETAILS} Prompt 1: Region prompt Northwest, Southwest Prompt 2: Year Year (ID)= 2007
61
Code {&WEBSERVER}
Comments Path to the Web Server being used, if the document is executed in MicroStrategy Web, otherwise the value in project configuration The date and time the document was executed. You can format this auto text code like any other date and time text field. In the Property List, click ... (the browse button) next to the Number formatting setting. You can use this property to show just the date or the time.
{&EXECUTIONTIME}
To differentiate between Date and Time and Document execution time, do the following: 1 Run a document and send it to the History List. 2 Each time you retrieve the document from the History List, the PDF is regenerated. The Date and Time change each time, but the Document execution time does not change.
{&REPORTNAME: REPORTDETAILS}
Report Description: Revenue, profit, & cost by region & employee Report Filter: (2007) Filter for Year = 2007 Year = 2007 Report Limits: Revenue > 2000000 Template: Region Employee Metrics: Revenue Revenue {~+} Cost Sum(Cost){~+} Profit Sum(Profit){~+}
If the filter in the dataset's Filter editor is defined as: A=1 - or AND {&FILTERDETAILS} B=2 OR C=3 {&REPORTNAME: FILTERDETAILS} it prints as: A=1 and (B=2 or C=3) For example, Region=South and (Year=2002 or Year=2003)
The report filter and report limit used in the dataset report. An example is {&[Sales Forecast]: FILTERDETAILS} for the Sales Forecast report. If the dataset report has a report filter and a report limit, the system prints an or between them. If there is no filter, Empty Filter is printed. If there is no limit, Empty Limit is printed. By default, only the report filter and report limit are displayed, but other filters, such as view filters and security filters, can be displayed as well. For details, see Configuring the filter details auto text code, page 81.
63
Sample Output Prompt 1: Region prompt Northwest, Southwest Prompt 2: Year Year (ID)= 2007
Comments The prompt information for all prompts in the specified dataset report. You can configure how this auto text code is displayed (for example, if the prompt name is shown). For details, see Configuring the prompt details auto text code, page 75. The report filter used in the specified dataset report. The report limit used in the specified dataset report. The complete template details, including attribute details and metric details. You can configure how this auto text code is displayed (for example, if the template name is shown). For details, see Configuring the template details auto text code, page 70. The date and time the dataset report was executed. An example is {&[Sales Forecast]: EXECUTIONTIME} for the Sales Forecast report. Note: You can specify an Intelligent Cube as the dataset report.
Dataset report filter details Dataset report limit details Dataset report template details
{&REPORTNAME: Template: TEMPLATEDETAILS} Region Employee Metrics: Revenue Revenue {~+} Cost Sum(Cost){~+} Profit Sum(Profit){~+} {&REPORTNAME: EXECUTIONTIME} 11/15/2003 7:10:55 PM
part of the code, If you do not specify the reports REPORTNAME assorting dataset is the information from the document's grouping and printed. For a document that contains multiple datasets, one dataset must be defined as the grouping and sorting dataset; you can group and sort only by the objects on this dataset.
You can configure different options for different types of auto text codes. For example, you can select whether to include view filter information or the attribute name in a report filter details auto text code. For report details, you can choose whether to include information on prompts or filters. For a complete list of options, see: Configuring the display of object name delimiters for auto text codes, page 66 Configuring the report details auto text code, page 67 Configuring the template details auto text code, page 70 Configuring the prompt details auto text code, page 75 Configuring the filter details auto text code, page 81
For instructions on formatting the text field that contains the auto text code (such as the font name or background color), see Formatting
text fields, page 166.
65
The Report Details in the Report Editor, from the Report Details Formatting option (the report level) All the auto text codes in a project, using the Project Configuration Editor (the project level)
The list above also shows the order of precedence. The configuration of a particular text field in a document overrides the configuration at the document level, which overrides the configuration in the related dataset report, which overrides the project configuration. For example, if a property is set one way for a document and another for the report, the document setting takes precedence.
Configuring the display of object name delimiters for auto text codes
One setting, Use delimiters around metadata object names, is used in all the auto text codes. Metadata objects include attributes and metrics. Delimiters are the characters around these objects which set them off from other text. In the executed document, braces {} are used as delimiters. You can select whether to: Display delimiters for all metadata objects Omit delimiters for all metadata objects Automatically display delimiters only for those objects that contain a special character
You can choose to inherit the setting instead. If you are configuring the auto text codes in a specific text field, the setting is inherited from the document setting. If you are configuring all the auto text codes in the document, the setting is inherited from the report setting. For a list of the levels of inheritance, see Levels of auto text code configuration, page 65.
You can choose to inherit the setting instead. If you are configuring the auto text codes in a specific text field, the setting is inherited from the document setting. If you are configuring all the auto text codes in the document, the setting is inherited from the report setting. For a list of the levels of inheritance, see Levels of auto text code configuration, page 65. The following document sample shows the report details, as well as a portion of the Grid/Graph, as displayed in PDF View. Notice that the report
67
description, report filter, report limits, and template information are displayed.
Based on the information provided by the auto text code in the sample above, you may decide that the template information is not valuable to you, but that you do need to know how the dataset report is filtered, to know how the metrics are calculated, and which employees are included on the Grid/Graph. In addition, the report description is not very informational in
this case. The image below shows the same document, but the Report Details auto text code has been configured to display only the information you need.
The following procedure re-creates the sample shown above, using a dataset report of your choice.
To configure a report details auto text code
1 Create a new document, selecting a report to use as the dataset. 2 Add a Grid/Graph in the Detail Header section. For instructions, see Adding a Grid/Graph to a document, page 298. 3 Click in the Document Header section of the Layout area. 4 On the Insert menu, point to Auto Text, and then select Report Details. A text field containing a report details auto text code is created in the Document Header section. 5 Right-click the text field and select Properties. The Properties dialog box opens. 6 On the General tab, click Format in the Report Details Properties area. The Report Details Properties dialog box opens. 7 Click the General tab. 8 From the Report Description drop-down list, select No to omit it. 9 From the Prompt Details drop-down list, select No to omit it.
69
10 From the Filter Details drop-down list, select Yes to include it. 11 From the Template Details drop-down list, select No to omit it. 12 Click OK to close the Report Details Properties dialog box. 13 Click OK to return to the document. When you view the document as a PDF, the code is replaced with the information, as shown in the document samples above.
The template details auto text code displays the complete template details, including attribute details and metric details, unless the template details have been configured differently at the report or project level. For a list of the different levels and their order of precedence, see Levels of auto text code configuration, page 65. You can: Determine whether the template name of the dataset report is displayed. You can also select how to identify an embedded template. See Displaying the base template name, page 71 for a more detailed description and examples. Determine whether the short description of the template is included. If the template is embedded or does not have a description, the template description line is not displayed. Determine whether dataset objects other than metrics (such as attributes and consolidations) are listed. Determine whether the metrics on the dataset report are listed. If metrics are displayed, select whether or not to display each of the following:
If you choose to inherit whether metrics are displayed, these settings are also inherited.
For the procedure to configure the template details auto text code for a document, see To configure the template details auto text code, page 72.
71
Copy the text field and change Template + Filter to Embedded Template + Filter. If a document contains multiple datasets, you should specify which dataset to use in the template details auto text code. For the document, change the Base Template name setting to Yes (from the Document Properties dialog box), and then execute the document. As shown below, the template name (Regional Revenue Template) is displayed for the Template + Filter dataset, but Local Template is displayed for the Embedded Template + Filter dataset.
The document sample also includes text fields to identify the template details auto text codes.
Return to Design View, change the Base Template name setting to Automatic for the document, and then switch to PDF View. The template name is displayed for the stand-alone template from the Template + Filter dataset, while the template name is blank for the embedded template from the Embedded Template + Filter dataset.
If you do not want the template name to be displayed, regardless of whether the template is embedded or stand alone, set the Base Template name setting to No.
To configure the template details auto text code
2 To add a template details auto text code, add a text field, by following the steps below: a Click the Text icon in the toolbar. b Click in the desired section of the Layout area. 3 Type the following text into the text field: {&TEMPLATEDETAILS}
For more detailed instructions on adding an auto text code, see Displaying document and dataset report information: Auto text
codes, page 59. 4 You can configure either: A specific template details auto text code: a Right-click the text field containing the auto text code and select Properties. The Properties dialog box opens. b On the General tab, click Format in the Report Details Properties area. All the template details auto text codes in the document: a Select Document Properties from the Format menu. The Document Properties dialog box opens. b Click Advanced in the list on the left. c Click Format in the Report Details Properties area.
The Report Details Properties dialog box opens. 5 Click the Template Details tab. each setting on this tab inherits the By default,described in Levels of auto text codedocument or report setting, as configuration, page 65. You can return to this default by selecting Inherit from the drop-down list for the specific setting. 6 To select whether the template name of the dataset report is displayed, choose one of the following from the Base Template name drop-down list: To display the template name for a stand-alone template on a dataset and Local Template for an embedded template, select Yes.
73
To display the template name for a stand-alone template, but leave it blank for an embedded template, select Automatic. To omit the template name, whether or not the template is stand-alone or embedded, choose No.
See Displaying the base template name, page 71 for detailed examples. 7 To determine whether or not the short description of the template is included, select Yes or No from the Template Description drop-down list. or If the template is embeddednotdoes not have a description, the template description line is displayed. 8 To determine whether or not dataset objects other than metrics (such as attributes, consolidations, and custom groups) are listed, select Yes or No from the Non-metric template units drop-down list. 9 To determine whether or not the metrics on the dataset are listed, select Yes or No from the Metrics drop-down list. If metrics are displayed, select whether or not to display each of the following: Only Conditional Metrics Formula Dimensionality Conditionality Transformation
If you choose to inherit whether metrics are displayed, these settings are also inherited.
10 Click OK to close the Report Details Properties dialog box. 11 Click OK to return to the document.
Display nothing Display Prompt Not Answered Display No Selection Display All/None Whether the word All or None displays depends on the type of prompt. For example, an unanswered object prompt displays as None, because no objects are selected. An unanswered filter definition prompt displays as All because the report is not filtered and therefore all the objects appear on the report.
Whether and how to display the attribute name for any attribute element list prompts in the document. The options are:
Display the attribute name (for example, Region) Omit the attribute name Repeat the attribute name for each prompt answer (for example, Region = North, Region = South)
attribute, which is when a The browse form of theused to display the displayedelementsuser answers the prompt, is attribute in the prompt details auto text code. For information on browse forms, see the MicroStrategy Project Design Guide. Whether to include unused prompts. An unused prompt occurs when you drill on a Grid/Graph that contains a prompt. The resulting report, which you can use as a dataset report, can display or omit the prompt details from the original report (the report that you drilled on).
75
For example, a document contains two dataset reports, which are displayed as Grid/Graphs in the document: Customers per Employee contains the Region attribute and the metrics Count of Customers, Employee Headcount, and Customers per Employee. It is prompted for Region. Regional Revenue contains the Year and Region attributes, and the Revenue metric. It is prompted for Region and Year.
The document also contains a prompt details auto text code, which is configured to display the prompt titles and index. The prompt title is specified when the prompt is created (Region prompt and Year in the example below), and the index is a number indicating the order of the prompts in the dataset reports (Prompt 1 and Prompt 2 below).
Notice that although the dataset reports contain three prompts, only two are displayed. Since both datasets contain the same prompt on Region, that prompt is only displayed once.
If you change the prompt details auto text code to omit the prompt titles and index, only the prompt answers are displayed, as shown below:
The Region prompt is an attribute element list prompt, so you can also specify whether and how to display the attribute name. In the example above, the attribute name is not displayed; the auto text code lists the selected attribute elements only. In the following document sample, the remaining options are shown. The prompt details auto text code on the left displays the attribute name, while the one on the right repeats the attribute name for each prompt answer.
The Region and Year prompts were answered in the previous examples, but sometimes users do not answer all the prompts. You can choose what to display when a prompt is not answered. You can select pre-defined text, or you can choose to display nothing at all. The pre-defined text includes: Prompt Not Answered No Selection
77
All/None Whether the word All or None displays depends on the type of prompt. For example, an unanswered object prompt displays as None, because no objects are selected. An unanswered filter definition prompt displays as All because the report is not filtered so all the objects appear on the report.
The following document sample is the same document as before, except that the Region prompt has been answered and the Year prompt has not. The prompt details auto text code on the left was set to display All/None for the Year prompt if the user provided no answer. In this case, the auto text code displays the word All, meaning that all the years are included on the report. The prompt details auto text code on the right was set to display nothing for the Year prompt if the user provided no answer, so the auto text code displays a blank.
The following procedure re-creates the example shown on page 77. This example contains two prompt auto text codes: one displays the attribute name once and the other repeats it for each prompt answer. The steps to create prompts and reports are minimal as the focus here is on configuring the auto text codes; for background information and basic instructions on creating prompts and reports, see the MicroStrategy Basic Reporting Guide.
1 Create the following prompts: An attribute element list prompt on Region, with a title of Region prompt An attribute qualification prompt on Year, with a title of Year
2 Create the Customers per Employee report containing the following: Region attribute Count of Customers metric Employee Headcount metric A derived metric called Customers per Employee (Count of Customers metric/Employee Headcount metric) Region prompt as the filter
3 Create the Regional Revenue report containing the following: Year attribute Region attribute Revenue metric Region prompt and Year prompt as the filter
4 Create a document using the Customers per Employee report as the dataset. 5 Add the Regional Revenue report as another dataset. 6 Add a Grid/Graph for each dataset report to the Detail Header. 7 In the Document Header, add a prompt details auto text code. To do this, from the Insert menu, point to Auto Text, and then select Prompt Details. 8 Copy and paste the data field to create two prompt details auto text codes. 9 Select Document Properties from the Format menu. The Document Properties dialog box opens.
79
10 Click Advanced in the list on the left. 11 Click Format in the Report Details Properties area. The Report Details Properties dialog box opens. 12 On the General tab, select Title and Index from the Include Prompt Titles drop-down list. This ensures that both auto text codes include prompt titles. 13 Click OK to return to the Document Properties dialog box. 14 Click OK to return to the document. 15 Right-click the text field on the left and select Properties. The Properties dialog box opens. 16 On the General tab, click Format in the Report Details Properties area. The Report Details Properties dialog box opens. 17 Select Yes in the Show attribute name for Attribute Element Prompts drop-down list. This auto text code will now display the attribute name. 18 Click OK to return to the Properties dialog box. 19 Click OK to return to the document. 20 Right-click the text field on the right and select Properties. The Properties dialog box opens. 21 On the General tab, click Format in the Report Details Properties area. The Report Details Properties dialog box opens. 22 Select Repeated in the Show attribute name for Attribute Element Prompts drop-down list. This auto text code will now display the attribute name for each prompt answer. 23 Click OK to return to the Properties dialog box. 24 Click OK to return to the document. 25 Save the document. To view the results, switch to PDF View. The document should display as shown in the example on page 77.
This section assumes that you are familiar with filters, especially the different types of filters, stand-alone vs. embedded filters, and the
components of filters. For background information, see the MicroStrategy Basic Reporting Guide. The filter details auto text code displays information about the report filter and report limit used in the specified dataset report by default, although other types of filters can be displayed. This auto text code has many configuration settings, which can be grouped into the following categories. This list does not describe all the settings; it is only a summary. You can configure the content of the filter details auto text code, by selecting which filter types to include (report filter, view filter (for view reports based on Cubes only), report limits, and so on) and how the filters are displayed. For example, you can select whether to include the name of the filter type and whether to display the report limits before or after view filters. See Configuring the content of the filter details auto text code, page 82 for descriptions of all these options. For filters that contain attribute element list qualifications, you can configure how those lists are displayed. For example, you can specify whether to show the attribute name (such as Region or Year) and the separator between attribute names. See Configuring how attribute element list qualifications are displayed, page 88 for descriptions of all these options. You can configure how attribute form and set qualifications in filters are displayed. For example, you can select whether to use names or symbols for the operators. See Configuring how attribute form and set qualifications are displayed, page 90 for descriptions of all these options. You can configure how logical operators, which join multiple qualifications or filters, are displayed. For example, you can choose whether or not to display operators. You can select to display only the AND operator or only the OR operator. See Configuring how logical operators are displayed, page 92 for descriptions of all these options. You can configure whether aliases replace object names in the filter details. See Configuring whether to use aliases in the filter details auto text code, page 94 for a detailed description of this option.
81
Report Filter Name. You can also select another option, Automatic. If Automatic is chosen, the report filter name is displayed for a stand-alone filter, but is omitted for an embedded filter. Report Filter Description.
Report Limits View Filter - only for View Reports This applies to view reports based on Cubes only. If the view filter is displayed, you can select whether or not to display the following:
Drill Filter When a Grid/Graph is drilled on, determines whether or not the attribute element(s) drilled on are displayed in the report details of the drilled-to report.
Security Filter
The following document sample contains a filter details auto text code that displays some of the different filter types:
Unlike the other filter types, the drill filter is not displayed on the document. It is displayed on the report that is created by drilling on a Grid/Graph. For detailed examples of how the drill filter can be displayed in the filter details auto text code, see Configuring how the drill filter is displayed in the filter details auto text code, page 85. You can configure how the filters are displayed in the filter details auto text code by specifying the following settings: Whether to include the names of the filter types (Report Filter, View Filter, and so on). In the document sample above, the filter type names are displayed. If the filter type names are omitted, the auto text code displays as: (Local Filter): Year=2006, 2007 Region=Northeast, Mid-Atlantic, Southeast
83
If the filter type name is included, specify whether to include empty expressions. An empty expression is a filter type that is not included on the dataset report. For example, the document sample above lists the report limits, even though the dataset report does not contain one. The auto text code could instead display only those filter types that the dataset report contains, such as: Report Filter (Local Filter): Year = 2006, 2007 Security Filter: Region=Northeast, Mid-Atlantic, Southeast
Whether to add a new line after each filter type name, before the actual definition of the filter. For example, the document sample above includes a new line after each filter type name. If the line is omitted, the auto text code displays as: Report Filter (Local Filter): Year=2006, 2007 Security Filter: Region= Northeast, Mid-Atlantic, Southeast
Whether to add a new line between the different filter types to help differentiate between them. For example, the document sample above includes the new line. If the line is omitted, the results are: Report Filter (Local Filter): Year=2006, 2007 Security Filter: Region= Northeast, Mid-Atlantic, Southeast
Whether to show the report limits before or after the view filter. Whether to display details about shortcut filters, which are stand-alone filters used in the report filter. The options are:
Show filter name Show filter definition Show name and definition
For example, Filter 1 is created as a stand-alone filter in the Filter Editor. The filter is defined as Region = Northeast. A report contains the Year and Region attributes, as well as the Revenue metric. A local filter (a filter
defined in the Report Editor, not the Filter Editor) is created in the report, filtering on 2005. Then Filter 1 is added to the report filter, so Filter 1 becomes a shortcut filter in the report. This report is used to create the document shown below, which contains three filter details auto text codes, one for each of the shortcut filter options. The definition of the local filter (Year = 2005) is displayed in each auto text code.
The first auto text code shows just the filter name, Filter 1. The second auto text code shows the filter definition, Region = Northeast, instead. The third auto text code shows both the name and filter.
Configuring how the drill filter is displayed in the filter details auto text code
Unlike the other filter types, the drill filter is not displayed on the document. It is displayed on the report that is created by drilling on a Grid/Graph. The drill filter is the attribute element(s) that you selected when you drilled on the Grid/Graph.
For information about drilling in Grid/Graphs, see Drilling in Grid/Graphs, page 348.
For example, a Grid/Graph in a document contains the Year and Region attributes, as well as the Revenue and Profit metrics. The document uses a filter details auto text code which is configured to display only the drill filter. A portion of the document is shown below in Interactive Mode in MicroStrategy Web, since you must use either Interactive Mode or Editable Mode in MicroStrategy Web to drill on a Grid/Graph. Notice that the filter
85
details auto text code displays as Empty Filter, since the only filter displayed is a drill filter, and no drilling has occurred.
Drill on the Grid/Graph from 2006 Central down to Call Center, as shown above. The following report is displayed, with a Report Details pane that displays the drill filter information, that 2006 and Central were selected when the drill was performed.
If the drill filter was turned off, the Report Details pane would be blank in the drilled-to report. If you drill from an attribute (as opposed to drilling from attribute elements), a drill filter is not created. The resulting report is not filtered; it is just displayed at a different level from the Grid/Graph in the document. For
instance, right-click the Region attribute instead of the Central region (an element of the Region attribute) in the Grid/Graph, as shown below.
The resulting report is displayed below. The report displays the same data as the Grid/Graph, but at the Call Center level rather than Region. All regions and all years are still displayed, unlike the first drilled-to report that was filtered for 2006 and Central. Because an attribute was drilled on, the report is not filtered, so the drill filter details are not displayed and the Report
87
Details pane indicates that the filter is empty, because a drill filter was not created.
The name can also be repeated for each attribute element (for example, Region = Northeast, Region = Mid-Atlantic). Separator after attribute name: Specifies the characters that separate the attribute name from the attribute element. To specify a separator, you must clear the Inherit check box before you can type in the Separator after attribute name field. New line after attribute name: Determines whether or not the attribute name and its element display on separate lines. Separator between last two elements: Specifies the text that separates the last two attribute elements in the list. The choices are:
or and comma (the character is used, not the text) custom (in the Custom separator field, type the characters to use as the separator)
New line between elements: Determines whether or not each attribute element displays on a separate line. Trim elements: Determines whether extra spaces in the attribute elements are deleted. For example, an element of an account attribute is PSI2415 : 10 : COMMERCIAL. If Trim elements is enabled, the attribute is displayed as PSI2415:10:COMMERCIAL, omitting the extra spaces.
You can choose to inherit the setting instead. If you are configuring the auto text codes in a specific text field, the setting is inherited from the document setting. If you are configuring all the auto text codes in the document, the setting is inherited from the report setting. For a list of the levels of inheritance, see Levels of auto text code configuration, page 65. In the document sample below, the following settings were applied: Show attribute name for In List conditions = Yes New line after attribute name = Yes Separator between last two elements = custom Custom separator = , and (note that a space is included after the word and)
89
In the document sample below, the following settings were applied: Show attribute name for In List conditions = Yes New line after attribute name = No (the attribute list wraps within the text field; each attribute element does not display on its own line) Separator between last two elements = custom Custom separator =, and (note that a space is included after the word and) New line between elements = No
For background information on these types of filter qualifications, and instructions to create them, see the MicroStrategy Basic Reporting Guide. For these types of filters, you can configure how the qualifications are displayed using the following properties: Use names or symbols for operators: Determines whether names (such as Equals or Greater Than) or symbols (such as = or >) are displayed. The following document sample shows two filter details auto text codes. The one on the left uses a symbol to indicate the operator, while the one on the right uses a name.
Include attribute form names in qualification conditions: For conditions in attribute qualification filters, determines whether or not to display attribute form names (such as DESC or ID). The following document sample shows two filter details auto text codes. The first one includes the attribute form name (DESC), while the second does not.
Dynamic dates: Determines whether dynamic dates are shown as the date or as the expression that calculates the date.
91
The following document sample shows two filter details auto text codes. The top one displays the dynamic date as a date, while the bottom one shows the expression.
You can choose to inherit the setting instead. If you are configuring the auto text codes in a specific text field, the setting is inherited from the document setting. If you are configuring all the auto text codes in the document, the setting is inherited from the report setting. For a list of the levels of inheritance, see Levels of auto text code configuration, page 65.
code, the text wraps within the text field. In the second filter details, a new line is started at the logical operator AND, and again before the second condition. Using the new lines helps to distinguish between the conditions.
If you select Yes or Automatic, you can specify whether to Single space or Double space the conditions.
Parentheses around conditions: Determines whether or not parentheses are placed around each condition, such as (Region = Northeast). If a new line is inserted between conditions, you can often omit the parentheses since the conditions are already differentiated from each other. You can also select Automatic, which displays parentheses only when they resolve ambiguity in the expression. Parentheses are not included around conditions that are joined by the same logical operator. When conditions are joined by different operators, the parentheses are necessary to ensure that the conditions are grouped correctly. For example, the same reports from the previous example are used in the following document sample as well. A filter details auto text code is displayed for each dataset report; both use the Automatic option for parentheses. Parentheses are displayed only in the filter that needs them, to ensure that any ambiguity about the order is resolved.
Logical operator between conditions: Specifies whether or not to display the logical operator between conditions. The options are:
Yes to display all operators No to omit all operators AND only to display only the AND operator
93
The first filter details auto text code in the following document sample displays all the logical operators. The second one displays and only; notice that the or before the Region condition is replaced by a comma.
You can choose to inherit the setting instead. If you are configuring the auto text codes in a specific text field, the setting is inherited from the document setting. If you are configuring all the auto text codes in the document, the setting is inherited from the report setting. For a list of the levels of inheritance, see Levels of auto text code configuration, page 65.
Configuring whether to use aliases in the filter details auto text code
You can rename an object on a report, to display a more meaningful description in the context of that particular report, for example. An alias does not change the name of the object, only the name displayed on the report. A filter still uses the name of the object, not the alias. You can determine whether aliases replace object names in a filter details auto text code. see For instructions to create aliases,Help.the MicroStrategy Basic Reporting Guide or the Desktop For example, the Revenue metric has been aliased as Sales in the dataset report used in the following document. The filter details auto text code on the left uses the alias, while the one on the right does not.
You can choose to inherit the setting instead. If you are configuring the auto text codes in a specific text field, the setting is inherited from the document setting. If you are configuring all the auto text codes in the document, the setting is inherited from the report setting. For a list of the levels of inheritance, see Levels of auto text code configuration, page 65.
Additional calculations on the metrics from the dataset reports (such as multiplying by a constant or using a function) Calculations that combine metrics from different dataset reports Totals using specific functions
For descriptions of the types of metrics that you can create within a document and instructions on creating each type, see Creating metrics in documents, page 97. The level of calculation for both metrics from dataset reports and metrics created within the document depends on their location in the document, as described in Metric calculation in documents, page 110. This allows you to create metric totals in documents, such as a grand total or a group total. When a metric is placed in a document section other than the Detail section, the metric is calculated using the dynamic aggregation specified in the metric definition. For details on how metrics are aggregated in documents, see Dynamic aggregation in documents, page 120. the metrics dynamic If you want to use a function other thansummary metric. A summary aggregation function, you can create a metric allows you to specify the desired function for the total. For instructions, see Creating summary metrics in documents, page 107.
95
metrics are calculated For more detailed description of howdocuments, page 110. in a document, see Metric calculation in
To add a metric from a dataset report to a document
1 In the Document Editor, open the document in Design View. 2 Expand the document section where you want to place the metric by clicking the plus sign next to the section name. metric is calculated level of the section that TheFor example, a metricatintheRegion Group Header is you place it in. a calculated at the regional level. A metric in the Document Footer section is calculated as a grand total for the entire document. For more details, see Metric calculation in documents, page 110. 3 Select the metric from the objects displayed in the Datasets pane, then drag and drop the metric into the Layout area. The metric is added to the document in a text field. The dataset name is added to the metric name if the metric exists in multiple datasets. is displayed, Datasets at the bottom If the Datasets paneleft.notthe panel isclickdisplayed at all, select of the panel on the If not Datasets from the View menu. 4 The metric is automatically formatted in a default style using the control defaults. You can change the formatting of the text field using the
Property List. For instructions on formatting text fields, see Formatting text fields, page 166. 5 You can also resize the text field, if needed. See Sizing controls, page 142 for instructions.
Can use in conditional formatting No Can reuse within the document Can be created on the fly in a text field without creating a new object and adding it to the layout No Yes
97
document. Calculated expressions allow you to combine metrics from different datasets in the document using: Constants Simple arithmetic operators (+, -, *, /) Certain advanced functions including many financial, statistical, and mathematical functions must type the function To use an advanced function, you for supported functionssyntax in the calculated expression. Syntax is included in Appendix E, Advanced Functions for Calculated Expressions. For details on the individual functions, see the MicroStrategy Functions Reference. The logical operator IF Parentheses to set the order of arithmetic operations
For example, your grouping and sorting dataset contains the Revenue by Region metric and a second dataset contains Cost by Region. (For details on the grouping and sorting dataset, see Working with multiple dataset reports, page 731.) You need the profit, which is calculated from the revenue less the cost, so you create a calculated expression with a definition of Revenue - Cost. Calculated expressions are created directly in text fields on the document, which makes them quicker to create than derived metrics. However, unlike derived metrics, calculated expressions cannot be reused within the document because they are not added to the document as dataset objects. They appear as text fields only. To create the calculated expression for profit, drag the Revenue metric from the Datasets pane to the Layout area, which automatically creates a new text field. Right-click the new text field and select Edit Text. Type - Cost inside the braces, then press ENTER. The final text field looks like {Revenue Cost}, as shown on the right side of the image below.
An example of an advanced function is Banding, which maps metric values that fall within a certain range to a particular band value. The function returns a number indicating the band. The syntax of this function is Banding(ValueList, StartAt, StopAt, Size). For example, create bands on the Revenue metric in the document above. Bands are created in $250,000 increments, starting at $1,000,000 and ending at $4,000,000. Band 1 is $1,000,000 to $1,250,000; Band 2 is $1,250,001 to $1,500,000, which includes the Regions South and Northwest; and so on. To create these bands in a calculated expression, create a text field and type the following in it: {Banding(Revenue, 1000000, 4000000, 250000)} Remember to use braces { } if you type the expression.
99
Because no Revenue value falls between $1,000,000 and $1,250,000, there is no Band 1. Because two regions have revenue between $1,250,001 and $1,500,000, there are two lines for Band 2.
To create a calculated expression
1 In the Document Editor, open the document in Design View. 2 Expand the section where you want to place the calculated expression by clicking the plus sign next to the section name. 3 To enter the expression, do one of the following: Drag and drop data fields from the Datasets pane. Add a text field and type the expression in it. Combine the above methods.
Join data fields with an arithmetic operator (+, -, *, /) or use an advanced function. You can use constants and parentheses within the calculation. Parentheses indicate the order of arithmetic operations.
For more detailed instructions to use these methods, see Adding data fields to a document, page 53. For a list of supported functions and their syntax, see Appendix E, Advanced Functions for Calculated Expressions.
If you type the expression, use braces { } around the entire calculated expression. If the name contains spaces or special characters, type it in brackets [ ] within the braces. Special characters are characters other than a - z, A - Z, 0 - 9, #, _, and . (period). If the object exists in multiple datasets, use the format {[dataset name]:[object name]}. This format also allows you to create calculated expressions across datasets.
only use You canmetric. Ifmetrics alreadyofexisting in a single dataset to create a derived the definition the derived metric demands metric data not readily available, the information cannot be obtained dynamically, because the dataset must first be re-executed.
101
For example, if your dataset contains the dollar sales for a particular region, and you want to view the same data in millions, you could create a derived metric with a definition of [Dollar Sales]/1000000. When you create a derived metric, it is added to the Datasets pane but is not placed on the document. However, if you select a Grid/Graph object before creating the derived metric, the metric is automatically added to the Grid/Graph as well as placed in the Datasets pane for future use. After you create the derived metric, you can add it to the document just as you would any other dataset object. You can also use it in conditional formatting expressions. To demonstrate the difference between a calculated expression and a derived metric, create a derived metric similar to the calculated expression used in the example in the Creating calculated expressions section above. The first distinction is that a derived metric cannot use metrics from different datasets. So for this example, the grouping and sorting dataset contains both Revenue and Cost by Region. The profit is calculated from the revenue less the cost. You can create a derived metric with a definition of Revenue - Cost. Derived metrics are created using the Input Metric Formula dialog box, which is accessed by selecting New Metric from the Insert menu. Double-click Revenue, type - (the minus sign), and then double-click Cost. The calculation is displayed as (Revenue - Cost). Name the derived metric Profit and return to the document. Note that the metric is added to the Datasets pane, but is not placed on the document itself. Drag the new Profit metric from the Datasets pane to the Layout area. Note that the mathematical expression is not displayed, as is the case with a calculated expression. The name of the metric is shown instead, as with metrics from dataset reports. The following image shows the metric name in both the Layout area and in the Datasets pane.
1 In the Document Editor, open the document in Design View. 2 Do one of the following: To create a metric in a Grid/Graph, select the Grid/Graph in the Layout area. Next, double-click the Grid/Graph to enable edit mode. A red hashed border displays around the Grid/Graph, and the menu options and toolbar change. Otherwise, select the dataset in the Datasets pane that contains the metrics to be used in the derived metric.
The metrics used in a derived metric must be from the same dataset.
3 From the Insert menu, select New Metric. The Input Metric Formula dialog box opens. 4 The window on the left displays the objects in the selected dataset. Double-click or drag and drop the first object to use to define the derived
103
metric. This moves the object to the window on the right, which is called the derived metric definition window. 5 Add a function or operator in one of the following ways: From the operator bar above the definition window, select an operator. Click the Insert Function icon to use the Insert Function Wizard to guide you through the process of creating a function. For more details on each page of the wizard, refer to the Desktop Help.
6 Repeat step 4 to select the second object used to define the metric, or enter a constant. existing in a More than twoadditionalmetrics can be used and derived metric's formula. Add metrics, functions, operators by repeating steps 5 and 6. 7 Once you have created the expression, click Validate. If the expression is not valid, click Clear to delete the entire expression and start again, or modify the expression until it is valid. 8 In the Metric Name text box on the upper right, type a name for the new metric. 9 Click OK to apply the new metric to your document. The Input Metric Formula dialog box closes. The new metric is added to the appropriate dataset in the Datasets pane. If you selected a Grid/Graph before creating the metric, it is also added to that Grid/Graph. 10 If you need to, you can edit the derived metric. To do this, right-click the derived metric in the Datasets pane and select Edit. The Input Metric Formula dialog box opens. You can now use the derived metric as you would any other dataset object. For example, you can drag and drop it from the Datasets pane to the Layout area to place it into the document.
When the PDF is generated, the same metric returns different values in the different positions. The metric in the Detail section is revenue by employee;
105
the metric in the Region Header is regional revenue; and the Document Footer calculates a revenue grand total for the entire document.
by The metric calculation for the totals is determinedcase,the default subtotal specified in the metric definition. In this the Revenue metric uses SUM. The following list describes where to place a metric in the document to calculate the metric at a specific level. To calculate a metric at the level: Of the dataset report, place the metric in a text field in the Detail section. Of a total for a specific group, place the metric in a text field in the Group Header or Group Footer section. Defined by the attributes, consolidations, and custom groups on the Grid/Graph, place the metric in a Grid/Graph that is in the Document Header, Document Footer, Page Header, or Page Footer section.
Defined by the attributes, consolidations, and custom groups on a Grid/Graph, and at the level of a specific group, place the metric in a Grid/Graph that is in the Group Header or Group Footer section. Of a grand total across the entire dataset, place the metric in a text field in the Document Header, Document Footer, Page Header, or Page Footer section.
can also display and For You instructions, seetotals for groupsfor a for selectors. 264 examples and Showing totals group, page and Showing totals for selectors, page 471. The list above summarizes metric calculation; for more in-depth information on metric calculation, see Metric calculation in documents, page 110. does not contain other the the If a Grid/Graphthe same value as ifanythingplacedthantext metric, that metric returns it were in a field in document section. This rule applies regardless of the document section the Grid/Graph is located in. For background information on Grid/Graphs and instructions to create them, see Chapter 4, Displaying Reports in Documents: Grid/Graphs.
107
For example, you need to add a count of employees to the document example used in Calculating totals and summary metrics in documents above. The count must be calculated at the regional and document levels. The Revenue metric uses SUM as the default subtotal, but the COUNT function is needed in this case. Create a summary metric for Revenue that uses COUNT. To do this, right-click Revenue in the Datasets pane, point to New Summary Metric, then select Count. The new summary metric is added to the Datasets pane with the name Count of Revenue. Drag the metric from the Datasets pane to the Region Header and to the Document Footer. The result is shown in the following sample.
When the PDF is generated, the same summary metric returns different values in the different positions. The metric in the Region Header calculates
a regional count, and the Document Footer calculates a count for the entire document.
109
1 Open the document using the Document Editor in Design View. 2 Right-click the metric in the Datasets pane, point to New Summary Metric, then select the function to use. The new summary metric is added to the appropriate dataset in the Datasets pane. 3 If you need to, rename the summary metric, as described below: a Right-click the summary metric in the Datasets pane and select Edit. The Input Metric Formula dialog box opens. b Change the metric name and click OK. You can now use the summary metric as you would any other dataset object, by dragging and dropping it from the Datasets pane to the Layout area to place it into the document.
Calculating metrics at the level of a Grid/Graph and a group: Group Headers and Group Footers, page 118 Dynamic aggregation in documents, page 120
descriptions of metrics and procedures Forcreate them, see Creatingcreated ininthe document,page 97. to metrics documents,
Use this report as the dataset for a document. Place the Revenue metric in a text field in the Detail section of the document. Do not add anything else (no attributes or labels) to the document. When you execute the document, the
111
Revenue metric is calculated at the level of the dataset report, which is Employee. A portion of the document is shown below:
Notice that the numbers match those calculated in the report. Of course, a document would include information to give perspective to the numbers, but this example shows that the numbers are calculated regardless of what, if anything, is placed on the document.
Calculating metrics at the group level: Group Headers and Group Footers
A metric placed in a text field in a Group Header section or Group Footer section is calculated at the level of the group. For example, a report contains the Region and Employee attributes, as well as the Revenue metric. A portion of the report is displayed below. The report is subtotaled by Region for this
example to help you compare metric values between the report and the document.
Use this report as the dataset for a document. Group the document by Region. Place the Revenue metric in two text fields, one in the Group Header and the other in the Detail section. Include the region name in the Group Header, to differentiate between the groups. Execute the document. In the Group Header, the Revenue metric is calculated at the level of the group (Region). The groups elements are the elements of the Region attribute. This provides regional totals. In the Detail section, the Revenue metric is calculated at the level of the dataset report, which is Employee. A portion of the document is shown below:
113
Notice that the metric values match those calculated in the report. The preceding in a text field. Metric values in Grid/Graph in example uses a metricGroup Footer are calculated at a the Group Header or the level of both the group and the Grid/Graph. For details and an example, see Calculating metrics at the level of a Grid/Graph and a group: Group Headers and Group Footers, page 118. The calculation of the group total is determined by the metrics definition, specifically by the dynamic aggregation function. For a description of how dynamic aggregation works in documents, see Dynamic aggregation in documents, page 120. Summary metrics explicitly set the aggregation function; this is their primary role. For other user-defined metrics, the function specified in the definition is also used as the aggregation function, if the function is SUM, MIN, or MAX. For instructions on creating metrics in documents, see Creating metrics in documents, page 97.
Layout Headers and Layout Footers are only displayed inof these multi-layout documents. For descriptions and examples
document sections, see Layout Header, page 41 and Layout Footer, page 44. For background information about layouts in documents, including examples and instructions, see Creating multi-layout documents, page 714. Page Header Page Footer
For example, a report contains the Region and Call Center attributes, as well as the Revenue metric. A portion of this report is shown below. The report contains a grand total to help you compare metric values between the report and the document.
This report is used as a dataset for a document. The Revenue metric is placed in text fields in the Page Header, Document Header, and Detail Header. Note that it is not placed in the Detail section, so the Call Center revenue values are not displayed. Labels are included in each document section, to indicate the different groups.
Notice that the metric values are the same for all the document sections, and they match the grand total calculated in the report. Which document section you place the metric in depends on where you want the information to appear, for instance, the top or bottom of each page (Page Header or Page
115
Footer) or at the beginning or end of the document (Document Header or Document Footer). values in a The preceding example uses metrics in text fields. Metric the level of Grid/Graph in these document sections are calculated at the Grid/Graph. For details and an example, see Calculating metrics at the level of a Grid/Graph and a group: Group Headers and Group Footers, page 118. The calculation of grand totals is determined by the metrics definition, specifically by the dynamic aggregation function. For a description of how dynamic aggregation works in documents, see Dynamic aggregation in documents, page 120. Summary metrics explicitly set the aggregation function; this is their primary role. For other user-defined metrics, the function specified in the definition is also used as the aggregation function, if the function is SUM, MIN, or MAX. For instructions on creating metrics in documents, see Creating metrics in documents, page 97.
If the Grid/Graph is placed in a Group Header or Group Footer, the level of the group is also included in the metric calculation, as described in more detail in Calculating metrics at the level of a Grid/Graph and a group: Group Headers and Group Footers, page 118. A Grid/Graph cannot be placed in the Detail section. This is because the Grid/Graph would be repeated on each row since controls in the Detail section are repeated once per row of the dataset.
For example, a dataset contains the Region and Employee attributes, as well as the Revenue metric. A Grid/Graph containing all these objects is placed in the Detail Header section of the document. A second Grid/Graph, which contains only Region and Revenue, is placed in the Document Header. In the sample below, all of the Grid/Graph containing Region only is shown, but
only a portion of the Grid/Graph with both Region and Employee is included.
The metrics in the Grid/Graphs are calculated at the level of the attributes in the Grid/GraphsRegion only in the top Grid/Graph, Region and Employee in the bottom one. If a Grid/Graph contained only Employee and Revenue, and an employee generates revenue in two regions, the metric value displayed in each region would reflect the total revenue of the employee, for both regions. If the Grid/Graph does not contain any objects other than the metric, the metric behaves as though it were in a text field in that document section. A metric in a text field in any header or footer section other than a Group Header or Group Footer is calculated as a grand total, totaled across the entire dataset. For example, if Region and Employee were removed from the Grid/Graphs in the previous example, both Grid/Graphs calculate a revenue grand total, as shown below:
117
The calculation of these grand totals is determined by the metrics definition, specifically by the dynamic aggregation function. For a description of how dynamic aggregation works in documents, see Dynamic aggregation in documents, page 120.
Calculating metrics at the level of a Grid/Graph and a group: Group Headers and Group Footers
A metric placed in a Grid/Graph is calculated at the level defined by the attributes, consolidations, and custom groups on the Grid/Graph, as described in Calculating metrics at the level of a Grid/Graph, page 116. When the Grid/Graph is placed in a Group Header or Group Footer, the level of the group is also included in the metric calculation, but only for those grouping fields that exist on the dataset to which the Grid/Graph belongs. For example, a report contains the Region and Category attributes, as well as the Revenue metric. A portion of this report is shown below:
This report is used as the dataset for a document. The document is grouped by Region, and its Group Header contains a Grid/Graph with Category and Revenue. The Group Header also contains the Region name, to indicate the different groups. A portion of the document is shown below:
The revenue values are calculated at the level defined by the Grid/Graph (Category) but also at the group level (Region). Each Grid/Graph contains the revenue for its specific region and no others. The group (Region) exists on the dataset of the Grid/Graph. Consider another document, which contains two datasets: Dataset 1 contains Region, Category, and Revenue. It is the grouping and sorting dataset. (For a description of the role of the grouping and sorting dataset in a document, see Changing the grouping and sorting dataset for a document, page 748.) Dataset 2 contains Region, Call Center, and Revenue.
The document is grouped by Category (from Dataset 1). A Grid/Graph containing Call Center and Revenue (from Dataset 2) is placed on the Group Header. The Group Header also contains the Category name, to indicate the different groups. The Group Header is displayed horizontally, so that the Grid/Graphs are easier to compare. A portion of the document is shown below.
Notice that the revenue values are the same for each Call Center, regardless of which Category is displayed. The revenue values are calculated at the level defined by the Grid/Graph (Call Center) but not at the group level (Category). Each Grid/Graph contains the revenue for all categories. The group (Category) does not exist on the dataset of the Grid/Graph. If the Grid/Graph does not contain any objects other than the metric, the metric behaves as though it were in a text field in the same document section.
119
As with metrics in text fields in Group Headers and Group Footers, the calculation is determined by the metrics definition, specifically by the dynamic aggregation function. For a description of how dynamic aggregation works in documents, see Dynamic aggregation in documents, page 120.
Compound metrics follow the same rules for aggregation. If a compound metric does not use a SUM, MIN, or MAX function, and the dynamic aggregation function is set to default, a null value is generated when the compound metric is placed in any section other than the Detail section. To trigger dynamic aggregation, specify the function to use for calculation. In the case of user-defined metrics (calculated expressions and derived metrics), the function specified in their definition is used as the aggregation function if the function is SUM, MIN, or MAX. For details on user-defined metrics, see Creating metrics in documents, page 97. For instructions on changing the dynamic aggregation function, refer to the Desktop Help. For background information on dynamic aggregation in metrics, see the MicroStrategy OLAP Services Guide.
document The interactive graphs shown on the bottom of the sampledisplays of above are displayed using widgets, which are Flash-based the results of a dataset report. For a more detailed description of widgets and how to create them, including examples, see Chapter 6, Providing Flash Analysis and Interactivity: Widgets. You can interact with the web from the document, such as changing the stock that is being tracked in the stock ticker or clicking links on the web page. You can achieve this real-time display by adding an HTML container to your document and entering the URL of the website. You can also use an HTML container to display formatted HTML, by entering HTML tags into the HTML container. For an example, see Displaying formatted HTML in an HTML container, page 122.
121
The real-time information from the web or the formatted HTML is displayed within the HTML container, in the following modes in MicroStrategy Web: Express Editable Flash Interactive
You can create HTML containers using either of the following methods: You can display a website by typing a URL in the HTML container. The HTML is retrieved dynamically when the document is executed. For examples, see Displaying a website using a URL (iFrame), page 125. You can display formatted HTML by entering HTML tags in the HTML container. The HTML is interpreted by the users browser when the document is executed. For an example, see Displaying formatted HTML in an HTML container, page 122.
is document Fully formatted HTML or not displayed when theexported to is displayed in PDF View when the document is Excel. You can format the HTML container itself, with borders and drop shadows, for instance. For examples and instructions, see Formatting HTML containers, page 173. The formatting of actual content inside the HTML container, however, is determined by either the HTML tags (as shown in the example below) or the website displayed by the URL. You can also arrange and resize HTML containers, as you do other controls. For instructions and examples, see Arranging controls on a document, page 136 and Sizing controls, page 142.
122 Displaying real-time web and other HTML content: HTML containers
In Express Mode, Interactive Mode, and Editable Mode in MicroStrategy Web, all valid HTML is supported. The HTML tags are interpreted by the users browser.
123
For a fullatdescription of the HTML that Flash supports, see the Adobe website livedocs.adobe.com/flex/201/langref/flash/
text/TextField.html#htmlText.
In PDF and Excel, anything within the following tags is removed, and does not display: <HEAD> <STYLE> <SCRIPT>
124 Displaying real-time web and other HTML content: HTML containers
Notice that the text within the head, style, and script tags is not displayed, and the word fence is not bolded. container The HTMLtotags in the HTML concept. are not complete; they are used only demonstrate the
To insert a HTML container that uses HTML tags
1 Open the document using the Document Editor in Design View. 2 Click the HTML Container icon on the toolbar.
3 On the Layout area, click and drag in the position in which to insert the HTML container. 4 By default, an HTML container uses HTML tags rather than a URL to generate the display (see Displaying a website using a URL (iFrame), page 125). In the Property List, HTML type should be set to HTML text. 5 Right-click the HTML container and select Edit Text. 6 Enter the HTML tags in the HTML container. To create a new line, press CTRL+ENTER. When you have finished typing, press ENTER or click anywhere outside the HTML container. The HTML tags are displayed in the HTML container in Design View. The HTML tags are not rendered until you view the document in MicroStrategy Web.
125
The website is not displayed in Flash Mode. Instead, the websites URL is displayed within the HTML container. the same MicroStrategy Web Server as the one that URLs that point tonot supported. This prevents you from opening the you are using are same URL to avoid an infinite loop.
126 Displaying real-time web and other HTML content: HTML containers
For example, the URL www.example.org displays this web page in Interactive Mode in MicroStrategy Web:
In PDF View in Desktop, the website from the same URL displays as:
1 Open the document using the Document Editor in Design View. 2 Do one of the following: Click the HTML Container icon on the toolbar.
3 On the Layout area, click and drag in the position in which to insert the HTML container. 4 From the Format menu, select Properties. The Properties dialog box opens.
127
5 On the General tab, select iFrame for the HTML type. 6 In the iFrame Source field, type the URL of the website. http:// The textremove it. is already automatically filled in, but you can edit or 7 Click OK to return to the document. The URL is displayed in the HTML container in Design View. To view the URLs website, you must view the document in Express Mode, Editable Mode, or Interactive Mode in MicroStrategy Web.
You can add any of the following to a document: Rectangle Rounded rectangle Horizontal line Vertical line
A regular rectangle is shown on the left in the image below, in contrast to the rounded rectangle on the right.
in the sample above does The rounded rectangle to rounded rectangles, butnot have a border. You can apply borders the borders only appear in Flash Mode in MicroStrategy Web. For a description of Flash Mode and instructions to access it, see Display modes in MicroStrategy Web, page 9. For instructions to change line and rectangle formatting, see Formatting shapes, page 177.
To add a rectangle to a document
1 Open the document using the Document Editor in Design View. 2 Expand the document section where you want to add the rectangle by clicking the plus sign next to the section name. 3 Click the arrow next to the Rectangle icon in the toolbar and select either Rectangle (for a rectangle with square corners) or Rounded Rectangle. When you move the mouse to the Layout area, the pointer becomes crosshairs. 4 Click in the section of the Layout area where you want to place the rectangle. If you click and drag in the section, you can size the rectangle. 5 You can format the rectangle, such as adding a border or color to the rectangle. For a list of the various formatting properties, see Formatting shapes, page 177. For detailed directions, see the Desktop Help.
2011 MicroStrategy, Inc. Adding shapes and lines to a document
129
6 For rounded rectangles, you can adjust how the rounded corners are displayed in Flash Mode in MicroStrategy Web. For instructions and examples, see Controlling the display of rounded corners in Flash Mode, page 178.
To insert a line into a document
1 Open the document using the Document Editor in Design View. 2 Expand the section where you want the line by clicking the plus sign next to the section name. 3 Select Line from the Insert menu, or click the Line icon in the toolbar. When you move the mouse to the Layout area, the pointer becomes crosshairs. 4 Click in the section of the Layout area where you want to place the line. Click and drag to size the line and draw either a vertical or horizontal line. 5 You can format the line, such as changing the color and whether the line is solid or dashed. For a list of the various formatting properties, see Formatting shapes, page 177. For detailed directions, see the Desktop Help.
Mode. For a description of Flash Mode and instructions to access it, see Display modes in MicroStrategy Web, page 9. the URL. On Avoid using spaces incannot displayUNIX machines, images with spaces in their URLs in PDFs. You can remove the space from the image name or replace the space with %20. A full path to the image on a shared network drive, such as \\my_computer\shared\myimage.jpg. All users, the Intelligence Server, the Desktop, and the Web server must be able to access the drive. A partial path, such as Images\myimage.jpg. A partial path is relative to the working directory of the user or application, so that a full absolute path does not need to be provided. If you use a partial path, the image must be copied in all of the following folders:
Desktop (for a document viewed in Desktop) Documents and Settings\Username\Local Settings\Temp (for a document exported to Excel 2000 from Desktop or a document in MicroStrategy Office) Excel 2003 or later, embed images To export a document toin Excel, page 256, for instructions (see Displaying images and more details) to ensure that the images are displayed correctly in Excel.
Intelligence Server (for a document exported to PDF from MicroStrategy Web) Web ASPx\asp (for documents in MicroStrategy Web) or jsp (for documents in MicroStrategy Web Universal)
The Web directory is the physical location whereisthe Web product is installed (for MicroStrategy Web) or where it deployed (for
MicroStrategy Web Universal). For example, if the image is on a Web server machine, you can specify the URL (an http reference) for the file as long as the Intelligence Server and users who design the documents can access that location. Once the location is established and the image file that you want to insert is available in that location, you can insert the image into a document. instances, the path In mostviewing the you canoffindWeb page.and file name of images to use by source a
131
The advantages of using partial or relative paths are: Desktop, Intelligence Server, and Web Server must be able to access the same shared file location. The path of the image is not part of the document definition. If the path changes, you do not have to manually change the image path in the document.
The advantage of using absolute paths (an http or full path) is: The images do not need to be duplicated onto each machine, as described above.
1 Open the document in Design View in the Document Editor. 2 Click Image on the toolbar.
3 On the Layout area, click and drag in the position in which to insert the image. The Image Source dialog box opens. 4 Navigate to and select the image file to insert in the document. Click Open. The image appears in the document. If you want users to be able to click the image and open a Web page, you can define the image as a link. For details, see Linking to a web page, page 677. For information about changing image formatting, such as borders, see Formatting images, page 180.
133
To do this, save the graphic files as the names of the Region (for example, Northeast.jpg and Mid-Atlantic.jpg). Insert an image in the Region Header. Use the attribute name, within braces, as the name of the image file, for example, \\my_computer\shared\{Region}.jpg. Be sure to specify the directory path and follow the guidelines outlined above to ensure that the image is available to users and designers. (See To insert a dynamic image, page 135 for detailed instructions.) When the PDF is displayed, {Region} in the filename is replaced with the attribute element used in the page-by field. For example, on the Northeast page, the image displayed is Northeast.jpg.
In the same way, you can use a metric to return the name of the image file. For example, a document must display an icon for the daily revenue trend. For revenue growth, the icon is an arrow pointing up; for revenue decline the arrow points down; and for stable revenue the arrow is replaced by a bar. To do this, create a metric that returns a 1 for growth, 2 for no change, and 3 for decline. Create and name the images accordingly. In the document, point the image to {MetricName}.jpg in the correct directory. When the PDF is displayed, the image path is resolved and the correct file is displayed on each line. Fixed zero decimal In the Metric Editor, format the metric asensuresType,the metric value places, and no thousands separator. This that is returned as 1, 2, or 3, not as $1.00, for example.
1 Open the document in Design View in the Document Editor. 2 Click Image on the toolbar. 3 On the Layout area, click and drag in the position in which to insert the image. The Image Source dialog box opens. 4 Type the directory path to the image files, then the attribute or metric name in braces { }, followed by the file extension. For example, the following image source points to the Revenue Trend metric described in the example. \\my_computer\shared\{[Revenue Trend]}.jpg
If the attribute or metric name contains a space, enclose the name in square brackets [ ].
2011 MicroStrategy, Inc. Inserting images in a document
135
5 Click OK. The image control appears in the document. No image is displayed, since multiple files are possible.
To perform the operations described in this section, you should know how to select multiple controls in the Document Editor, as described in the following procedure.
To select multiple controls in the Document Editor
1 From the Document Editor in Design View, do one of the following: CTRL+click: Hold down the CTRL key while you click each control. Drag a selection box: Click in an empty area of a document section and drag a box that touches the controls that you want to select, then release the mouse button. (The box automatically appears when you start dragging.) The selection box can span multiple document sections.
selection You can specify whether theyou select box needs to partially or set fully enclose controls when them. This preference is in the My Preferences dialog box. For instructions, see the Desktop Help.
2 The selected controls are displayed with red sizing handles. If you accidentally selected a control that you do not want to select, point to the control and use CTRL+CLICK again. An example of selecting multiple controls using a selection box is shown in the following figure:
When the mouse button is released, the controls are selected as shown in the following figure:
Moving controls
You can modify the look of your PDF document by specifying the positions of the controls in the Design View of the document. Use one of the following methods to move controls within the Layout area: Drag the controls to a new location: Select the controls, then drag and drop them at the location that you want. move, it be locked. A If a selected control does notmoved onmay Layout area. locked control cannot be resized or the For instructions to unlock it, see Locking and unlocking controls, page 144. Nudge the controls slightly: Select the controls. From the Format menu, point to Nudge, then select the option for the direction you want to move them (Up, Down, Left, or Right). Specify the left and top position of a control: Select the control. In the Property List, type the Left and Top positions, then press ENTER.
137
Align controls with each other: See Aligning controls, page 138 for directions. Distribute controls evenly: See Distributing controls evenly, page 140 for instructions.
You can even move controls across document sections. If multiple controls are selected and moved, they move as a block.
Aligning controls
If you have several controls that you want to align with each other, you can have the Document Editor align them for you. The selected controls can be aligned in relation to the position of a single control, as described in the following alignment options: Left horizontally aligns all selected controls with the leftmost control. Right horizontally aligns all selected controls with the rightmost control. Top vertically aligns all selected controls with the topmost control. Bottom vertically aligns all selected controls with the lowest control.
The selected controls can be aligned in relation to all the controls as a group, as described in the following alignment options: Center horizontally centers all selected controls. Middle vertically centers all selected controls.
selected not have The can selectcontrols dothat are into be in the same document section; you controls different document sections. For example, you can align a heading in the Detail Header above its data column in the Detail section. This is shown in the following image in which two Month controls, in different document sections, are aligned.
139
To align controls
1 Open the document in Design View in the Document Editor. 2 Select two or more controls and do one of the following: Right-click the controls, select Align, then choose an alignment option. From the Format menu, select Align, then choose an alignment option.
Alignment options are listed and described on page 138. You can also align objects by selecting them and setting their Left or Top property in the Position section of the Property List.
The result after the vertical distribution is shown in the following image:
In this case, the controls are distributed relative to each other. However, if you select the Relative to Layout setting on the same menu, and then distribute the controls, the controls are distributed relative to the layout and not with respect to each other. If you distribute the controls vertically, relative to the layout, the height of the layout is used. If you distribute the controls horizontally, relative to the layout, the width of the layout is used.
The result after the vertical distribution relative to layout is shown in the following image. In this case, the controls are more spaced out, since they use the entire height of the document section for distribution, rather than just the space between the controls.
1 Open the document in Design View in the Document Editor. 2 Select the controls to be distributed.
141
3 Right-click the selected controls, select Distribute, and then select either Vertical or Horizontal.
Sizing controls
You can size text fields, images, rectangles, and other controls, using any of the following methods: Size the control on the Layout area: Select the control, and drag any of its red sizing handles to its new size. If you hold down the CTRL key while resizing, snap to grid is temporarily disabled. Snap to grid means that controls are automatically aligned to grid points, as described in Snapping to the alignment grid, page 138. resize, it be locked. A locked If a selected control does notmoved onmayLayout area. For control cannot be resized or the instructions to unlock it, see Locking and unlocking controls, page 144. Resize several controls to the same size: Right-click the controls, point to Size, and choose an option from the following list:
To resize and move the selected controls so that all corners touch a grid point, select To Grid.
To change the height of the selected controls to that of the tallest one, select To Tallest. To change the height of the selected controls to that of the shortest one, select To Shortest. To change the width of the selected controls to that of the widest one, select To Widest. To change the width of the selected controls to that of the narrowest one, select To Narrowest.
Specify the height and width of the controls: In the Property List or Properties dialog box, type the Height and Width. Specify the length of a line: In the Property List or Properties dialog box, type the Length.
Set whether the height of the control is dynamic or static: In the Property List or Properties dialog box, select one of the following Height mode options:
To keep the height from changing from the size set in the Height property, select Fixed.
a Grid/Graph, the If you chooseisFixed for(displaying onlyyou can specify thatthe size Grid/Graph clipped what can fit within dimensions) when it is exported to PDF and Excel. This is the Grid overflow (PDF and Excel) property.
To set the height of a line or rectangle to the height of the document section, select 100%. To expand the height of a text field, a Grid/Graph displayed as a grid, or a selector to the height of the control, select Fit to contents. This mode is ignored in Design View.
Set whether the width of the control is dynamic or static: In the Property List or Properties dialog box, select one of the following Width mode options:
To keep the width from changing from the size set in the Width property, select Fixed.
a Grid/Graph, the If you chooseisFixed for(displaying onlyyou can specify thatthe size Grid/Graph clipped what can fit within dimensions) when it is exported to PDF and Excel. This is the Grid overflow (PDF and Excel) property.
To expand the width of a Grid/Graph displayed as a grid to the width of the control, select Fit to contents. This mode is ignored in Design View.
is available Width modegrids. only for rectangles and for Grid/Graphs displayed as Set whether the length of a line is dynamic or static: In the Property List or Properties dialog box, select one of the following Length mode options:
To keep the length from changing from the size set in the Length property, select Fixed. To set the length of a line to the length of the document section, select 100%.
143
1 Open a document in the Document Editor. 2 Select the control to be locked. 3 Set Property List: Position: Locked to True.
To unlock a locked control
1 Open a document in the Document Editor. 2 Select the control to be unlocked. 3 Set Property List: Position: Locked to False.
Ordering controls
You may have controls that you want to overlap, with one control on top of the another that is in the background. You can change the order of a control and display it in front of or behind another control. To do this using the Format menu, pointing to Order, then choosing one of the options: Bring to Front, Send to Back, Bring Forward, or Send Backward. The last two options are useful if you have three or more controls on the same position and want to incrementally bring one control forward or send it behind but not all the way to the front or back.
For example, if you have a rectangle that you want to place behind the Document Title (to create a drop shadow), select the title text field, then right-click it, point to Order, and then choose Bring to Front.
The result, with the title in front, is shown in the following figure:
Alternatively, you can select the rectangle and choose Send to Back.
145
2
2.
FORMATTING DOCUMENTS
Introduction
When you add a new control to a document, its initial formatting is determined by the control default for that type of control. Each control type (text field, image, rectangle, and so on) has a control default, which contains a full set of formatting properties to specify the default format. For information on control defaults, including how to apply them and how to change them, see Defining default formatting for control types: control defaults, page 196. Of course, you can change the formatting of each new control as desired. You can determine a documents appearance by formatting either its controls (text fields, lines, sections, and so on) or the entire document. For formatting ideas, see Useful formatting suggestions, page 149. For information on the types of formatting that are available for each type of control, see the following sections: Formatting text fields, page 166 Formatting HTML containers, page 173 Formatting shapes, page 177 Formatting images, page 180
147
Formatting Documents
For information on formatting Grid/Graphs, see Formatting Grid/Graphs, page 319 in Chapter 4, Displaying Reports in Documents: Grid/Graphs. For information on formatting the types of controls that are commonly used on dashboards (panels, panel stacks, and selectors), see Formatting panels and panel stacks, page 410 and Formatting selectors, page 476 in Chapter 5, Designing Dynamic Enterprise Dashboards. For information on formatting widgets, see Formatting widgets in Desktop, page 609 in Chapter 6, Providing Flash Analysis and Interactivity: Widgets.
Individual controls can be automatically formatted differently than the data in the rest of the document. Data that is formatted differently calls attention to itself, and makes that data easier to locate for analysis. Conditional formatting allows certain properties of controls, including sections, to be controlled by data-driven conditions. This provides the flexibility to personalize documents based on the data returned by the dataset reports. For instructions and examples of conditional formatting, see Formatting conditional data in documents, page 200. You can also format the entire document, as described below: Formatting the border or background of a document or layout, page 213.
document multiple layouts, If thebackground containslayout separately. you can format the border and of each Formatting a document using predefined formats (Autostyles), page 215, which allows you to copy formatting information from one document to another. An Autostyle is a collection of formatting properties saved for various control types, and is applied to a document to change its formatting or appearance. Adding watermarks to documents, page 217. Watermarks are faint designs or text appearing in the background of the document, typically to identify or decorate pages.
148
Formatting Documents
Formatting a document for printing, page 227. These settings control how the document will look when it is printed. These settings include:
Pagination (see Adding page breaks and numbering pages, page 229) Font embedding (see Font embedding in PDFs, page 237) Graph resolution (see Changing graph resolution in PDFs, page 239) Bookmarks (see Including or hiding bookmarks in PDFs, page 240) Tables of contents (see Including interactive tables of contents in PDFs, page 243) Common page setup options such as margins, paper size, orientation (landscape or portrait), and scaling (see Modifying page setup options, page 231) Horizontal overflow, which determines whether controls that extend beyond the width of a single page are printed on the next page or on the same page (see Controlling horizontal overflow, page 235)
Formatting a document for MicroStrategy Web, page 248. Before you can preview a document as it will look in MicroStrategy Web, you must enable Flash View and/or HTML View. Before you can view it in MicroStrategy Web, you must select the modes that it can be displayed in. Fonts must be embedded if the document uses anti-aliasing, vertical text, or rotated graph labels. Formatting a document for export, page 250. Before you export a document to Microsoft Excel, a PDF file, a Flash file, or a separate browser window, you must select the formats that the document can be exported to and specify default exporting options.
149
Formatting Documents
Borders, including 3D effect and drop shadows, set off or define a control. Use a 3D effect to make a control appear three-dimensional, like a button. Use a drop shadow to float a control on top of the background. For examples and instructions, see Applying a 3D effect, page 155 and Applying a drop shadow, page 157.
Gradient colors allow you to blend two colors in a gradual color change in the background of a control. For examples and instructions, see Using gradient colors, page 159.
Tooltips display pop-up text when a user positions the cursor over a control in MicroStrategy Web. Tooltips can provide extra information, such as the full company name in the tooltip of the company logo. For examples and instructions, see Creating a pop-up tooltip, page 162.
You can display text in a text field vertically (up and down the page) rather than horizontally. Vertical text is displayed in PDF View, in all MicroStrategy Web display modes, and when the document is exported to Excel. For examples and instructions, see Displaying text vertically, page 171.
You can hide a control in PDF View. This allows you to display information to other document designers in Design View but not to users viewing the document in PDF View (Desktop) and Interactive Mode, Editable Mode, and Express Mode in MicroStrategy Web. For instance, you could include a note in a hidden text field about the source of data. For examples and instructions, see Hiding a control, page 164.
Formatting Documents
The Property List is the easiest method to use, as it contains all the options of the other interfaces on the same screen as the Layout area, where you design the document. All formatting interfaces are listed in the table below.
Interface Property List panel Available Options Contains all the options of the other formatting interfaces: All formatting options General properties, such as name, that define the control Layout properties such as position and size How to Access Select the control in the Layout area. The Property List pane, on the right side of the interface, displays the properties for the selected control.
Formatting toolbar
Easy access to basic formatting options such as: Select the control, and then click the appropriate button on Font the Formatting toolbar. Colors Standard borders Font Alignment Number format Borders, including 3D borders and drop shadows Color options, including gradients Borders Background fill Font color No formatting properties General properties, such as name, that define the control Layout properties, such as position and size Right-click the control and choose Format.
Right-click options
Right-click the control and select the appropriate option. Right-click the control and choose Properties.
For descriptions of each option on a particular interface, see the Desktop Help for that interface.
151
Formatting Documents
same formatting to all of them. For instructions to create and use Autostyles, see Formatting a document using predefined formats (Autostyles), page 215.
To copy and paste formatting
1 Open the document using the Document Editor in Design View. 2 Right-click a control and select Copy. 3 Select the controls to copy the format to.
The selected controls must be the same type as the control that you copied the formatting from.
4 Right-click the selected controls and choose Paste Formatting.
In the document sample below, the text field labeled Transparent has the backstyle set to transparent, while the other two text fields use the opaque backstyle. As described above, the transparent backstyle allows the gray background to show through, while opaque covers up the background with the fill color of the text field.
The difference between the two text fields that use the opaque backstyle lies in the way the backstyle property is changed. For the text field labeled Opaque, the backstyle property was set to opaque, so the default background color (white) displays. For the Fill text field, the background color was changed from the default of white. This automatically changes the backstyle
Formatting Documents
to opaque. The following procedure, which creates the sample shown above, helps to show that difference. You can set the backstyle on the following types of controls: Grid/Graphs The backstyle applies to any part of the Grid/Graph that the grid or graph that is displayed inside the Grid/Graph does not cover. For example, the grid can be smaller than the Grid/Graph container (as shown in the example in Formatting Grid/Graphs, page 319). For background information about Grid/Graphs in general, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. HTML containers using HTML tags For an HTML container using a URL (iFrame), the backstyle is overwritten by the website displayed by the URL. Panel stacks For general information about panel stacks, see Layering data on dashboards: panels and panel stacks, page 392. Rectangles and rounded rectangles Selector containers and title bars For general information about selectors, see Providing interactivity to users: selectors, page 418. Text fields
The steps in the following procedure create the sample shown above. You can adapt these steps to change the backstyle of most control types. In addition, the Desktop Help contains instructions for changing the backstyle for each control type, as well as by using a specific interface.
To change the backstyle of a text field
153
Formatting Documents
2 Add the text field shown as the background in the sample above. To add a text field: a Click the Text icon in the toolbar. b Click and drag in the desired section of the Layout area to create the text field. c Type the desired text, then press the Enter key.
3 Select the text field and follow the steps below to format it: Set Backcolor to light gray. The Backstyle automatically changes from Transparent (the default) to Opaque. This allows the fill color (the Backcolor) to be seen. Set Forecolor to white, to allow the text to be seen against the gray background. Use the Formatting toolbar to increase the size of the font to 24.
4 Create the text field containing the word Transparent as shown in the sample above. The Backstyle is set to Transparent, allowing the light gray of the background to show through the text field. 5 Add a border around the Transparent text field.
The border is not required for the backstyle. In this example, it serves to delineate the different text fields.
6 Create the text field containing the word Opaque as shown in the sample above. The light gray of the background shows through this text field and the Backstyle is set to Transparent by default. Also check the Backcolor property, which is set to white. 7 Change Backstyle to Opaque. Now the text field is white, the default backcolor. 8 Add a border around the Opaque text field. 9 Create the text field containing the word Fill as shown in the sample above. 10 Set Backcolor to red. The Backstyle automatically changes to Opaque, allowing the Backcolor of this text field to display, rather than that of the Background text field.
Formatting Documents
11 Set Forecolor to white, to allow the text to be seen against the red background. 12 Add a border around the Fill text field.
Applying a 3D effect
You can make most types of controls appear three-dimensional, with a raised or sunken border around the control. For example, you can make a text field look like a button. In the document sample below, the text field at the top has a regular border around it, without a 3D effect. The text field on the lower left is outset, and looks like a button. This is the raised 3D effect. In contrast, the text field on the lower right is inset, and looks like a pushed button. This is the sunken 3D effect.
In addition to determining whether the control is raised or sunken, you can set the thickness of the 3D border around the control. In the sample above, the 3D border is set to 4 points for the text field on the left. The one on the right is set to 2 points. over any existing The 3D effect border settings take precedenceoriginal border settings border. If you later disable the 3D effect, the are restored. You can use the 3D effect on the following types of controls: Grid/Graphs For general information about Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. HTML containers Images
Applying a 3D effect
155
Formatting Documents
Panel stacks For general information about panel stacks, see Chapter 5, Designing Dynamic Enterprise Dashboards.
Rectangles (for rounded rectangles, they appear only in Flash Mode in MicroStrategy Web) Selectors For general information about selectors, see Chapter 5, Designing Dynamic Enterprise Dashboards.
Text fields
The steps in the following procedure create the sample shown above. You can adapt these steps to apply a 3D effect to most control types. In addition, the Desktop Help contains instructions for applying a 3D effect to each control type, as well as by using a specific interface.
To apply a 3D effect to text
1 Open a document using the Document Editor in Design View. 2 Add three text fields, as shown in the sample above. To add a text field: a Click the Text icon in the toolbar. b Click and drag in the desired section of the Layout area to create the text field. c Type the desired text, then press the Enter key.
3 Select the text field on the top. 4 Click the Border icon in the toolbar, and then select All. 5 Select the text field on the right. 6 In the Property List: Appearance section, set the 3D Effect to Sunken. This insets the text like a pushed button. 7 By default, the 3D Weight property is set to 2. This is the thickness of the 3D line, measured in points. 8 Select the text field on the left.
Formatting Documents
9 In the Property List: Appearance section, set the 3D Effect to Raised. This outsets the text like a button that has not been pressed. 10 Set the 3D Weight property to 4. This is the thickness of the 3D line, measured in points.
You can adjust the offset of the drop shadow to make the rectangle appear deeper. For example, the rectangle on the top left has a depth of two points, while the top right rectangle is set to five points. Acceptable values for the offset range from 1 to 20. The rectangles in the sample are transparent, so the content behind the rectangles shows through. The lines of the drop shadows are behind the rectangles, so they show through the rectangle. The drop shadows are displayed as rings, because only the border of a rectangle can cast a shadow; the body of a rectangle is see-through and does not cast shadows. In contrast, the grey rectangle shown below is opaque; the drop shadow does not show through the rectangle itself. It is displayed below and to the right of
157
Formatting Documents
the rectangle. Also, the drop shadow is a solid rectangle, not a ring as displayed above. Since the rectangle itself is opaque, it casts a full shadow.
You can use drop shadows on the following types of controls: Grid/Graph containers For general information about Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. HTML containers Images Lines Panel stacks (all panels in the stack use the same drop shadow settings) For general information about panel stacks, see Chapter 5, Designing Dynamic Enterprise Dashboards. Rectangles and rounded rectangles Selectors For general information about selectors, see Chapter 5, Designing Dynamic Enterprise Dashboards. Text fields
The steps in the following procedure create the sample shown above. You can adapt these steps to apply a drop shadow to most control types. In addition, the Desktop Help contains instructions for applying a drop shadow to each control type, as well as by using a specific interface.
To apply a drop shadow to a rectangle
Formatting Documents
2 Add three rectangles, as shown in the sample above. To add a rectangle: a Click the Rectangle icon in the toolbar. b Click and drag in the desired section of the Layout area to create the rectangle. 3 Select the rectangle on the top left. 4 In the Property List: Appearance section, set Drop Shadow to True. This floats the rectangle above the background. 5 Set the Drop shadow depth property to 2. This is the offset of the drop shadow, in points. 6 Select the rectangle on the top right. 7 In the Property List: Appearance section, set Drop Shadow to True. 8 Set the Drop shadow depth property to 5. To view the results, click PDF View on the toolbar.
Notice that the direction of the color change is different in the two rectangles with gradient colors. The left rectangle blends grey into white from top to bottom, while the right rectangle blends left to right (the default). This
159
Formatting Documents
property is called the Gradient Variant, and you can choose from the following directions: Left to Right Right to Left Top to Bottom Bottom to Top
Three-way gradients are displayed only in Flash Mode in Web. They are displayed as non-mirrored gradients in other Web display modes and in Desktop. For example, in Desktop the three-way gradients shown above are displayed as follows:
A horizontally centered gradient is displayed as a Left to Right variant and a vertically centered gradient as a Top to Bottom variant.
Formatting Documents
The steps in the following procedure create the sample shown on page 159. You can adapt these steps to apply gradient colors to most control types. In addition, the Desktop Help contains instructions for applying gradient colors to each control type, as well as by using a specific interface.
To apply gradient colors to a rectangle
1 Open a document using the Document Editor in Design View. 2 Add three rectangles, as shown in the sample above. To add a rectangle: a Click the Rectangle icon in the toolbar. b Click and drag in the desired section of the Layout area to create the rectangle. 3 Select the rectangle on the top.
161
Formatting Documents
4 In the Property List: Appearance section, set Backcolor to dark gray. This sets the background color of the rectangle. 5 Select the rectangle on the bottom left. 6 In the Property List: Appearance section, set Backcolor to dark gray. This is the first color to apply to the rectangle. 7 In the Property List: Appearance section, set Backstyle to Gradient. This indicates that the background should blend two colors. By default, the Gradient Color is set to white. The Backcolor and Gradient Color are blended together. 8 Set the Gradient Variant to Top to Bottom. This is the direction of the shading between the Backcolor and Gradient Color. 9 Select the rectangle on the bottom right. 10 In the Property List: Appearance section, set Backcolor to dark gray. This is the first color to apply to the rectangle. 11 In the Property List: Appearance section, set Backstyle to Gradient. This indicates that the background should blend two colors. By default, the Gradient Color is white. The Backcolor and Gradient Color are blended together. By default, the Gradient Variant is Left to Right. This is the direction of the shading between the Backcolor and Gradient Color.
Formatting Documents
In the document sample below, the columns are narrow to save horizontal space on the document. This does not allow for a full description of the metrics. A tooltip can provide that extra level of detail.
Tooltips are not displayed in PDF View in Desktop. You can use tooltips on the following types of controls: Grid/Graphs For general information about Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. HTML containers Images Lines Panel stacks For general information about panel stacks, see Chapter 5, Designing Dynamic Enterprise Dashboards. Rectangles and rounded rectangles Selectors For general information about selectors, see Chapter 5, Designing Dynamic Enterprise Dashboards. Text fields
A tooltip can include any of the following text types, and you can combine the different types of text in the same tooltip: Static text, such as The Company, Inc. Data fields from the dataset reports, such as the Region attribute. Be sure to type the object name inside braces { } to indicate that it is a data field rather than static text.
163
Formatting Documents
Auto text codes, such as the document name or the dataset report name. Be sure to type the auto text code within braces { }. For lists of the auto text codes, see Auto text codes for document information, page 60 and Auto text codes for dataset report information, page 63.
The following procedure describes how to add a tooltip to a text field; it does not re-create the sample described above since the sample contains many controls. You can adapt these steps to add a tooltip to most control types. In addition, the Desktop Help contains instructions for adding tooltips to each control type, as well as by using a specific interface.
To add a tooltip to a text field
1 Open a document using the Document Editor in Design View. 2 Add a text field. To add a text field: a Click the Text icon in the toolbar. b Click and drag in the desired section of the Layout area to create the text field. c Type the desired text, then press the Enter key.
3 In the Property List: Appearance section, type the pop-up text in the Tooltip property. To view the tooltip, open the document in MicroStrategy Web and position the cursor over the text.
Hiding a control
You can display information to other document designers in Design View (Desktop) and Design Mode (MicroStrategy Web), while hiding it from users viewing the document in all other views and modes. For instance, you could include a note in a text field about the source of data. You then hide the text field. You achieve this by placing the content that you want to hide into a control, and then hiding that control.
Formatting Documents
The image below is a document shown in Design View. The text field selected in the Layout area on the right will not display in the PDF because its Visible property (seen in the Property List on the left) is set to False. Other text fields, such as the Revenue heading and metrics, will display.
The next image shows the same document in PDF View. The text field containing the note is not displayed, nor is there extra space between the heading and the data rows where the note is placed.
You can hide the following types of controls, as well as entire sections of a document: Grid/Graphs For general information about Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. Images Lines Panel stacks For general information about panel stacks, see Layering data on dashboards: panels and panel stacks, page 392.
2011 MicroStrategy, Inc. Hiding a control
165
Formatting Documents
Rectangles and rounded rectangles Selectors For general information about selectors, see Providing interactivity to users: selectors, page 418.
Text fields
The steps in the following procedure create the sample shown above. You can adapt these steps to hide other control types. In addition, Desktop Help contains instructions for hiding each control type, as well as by using a specific interface.
To hide a text field in PDF View
1 Open the document in Design View in the Document Editor. 2 Add text fields, as shown in the sample above. To add a text field: a Click the Text icon in the toolbar. b Click and drag in the desired section of the Layout area to create the text field. c Type the desired text, then press the Enter key.
3 Select the text field that you want to hide. 4 In the Property List: Appearance section, set Visible to False. This control will not be displayed in PDF View, although it will continue to show in Design View. To view the results, click PDF View on the toolbar.
Formatting Documents
suggestions. For information on basic options such as formatting fonts and borders, and changing other text field properties, see the Desktop Help. Make the text field appear three-dimensional, like a button, with the 3D effect. For an example, see Applying a 3D effect, page 155. Let the content behind the text field show through by setting the backstyle to transparent. You can also allow a fill color to cover what is behind the text field by setting the backstyle to opaque. For an example, see Using a transparent or opaque backstyle, page 152. Float the text field above the background by using a drop shadow. For an example, see Applying a drop shadow, page 157. Create a gradual color change by blending two colors using gradient colors. For an example, see Using gradient colors, page 159. Display pop-up text when a user positions the cursor over the control in MicroStrategy Web with a tooltip. The tooltip can provide extra information, such as an expanded description of a metric. For an example, see Creating a pop-up tooltip, page 162. You can display text vertically (up and down the page) rather than horizontally. Vertical text is displayed in PDF View, in all MicroStrategy Web display modes, and when the document is exported to Excel. For an example of vertical text, see Displaying text vertically, page 171. Display information to other document designers in Design View while hiding it from users viewing the document in PDF View (Desktop) and Interactive Mode, Editable Mode, and Express Mode in MicroStrategy Web. To do this, you hide the control that contains the information by using the Visible property. For instance, you could include a note in a text field about the source of data. For an example, see Hiding a control, page 164. Determine how to display the text when it is larger than the dimensions of the text field. The text can be clipped, or a scroll bar can be provided. Scroll bars are displayed in Express Mode and Interactive Mode in MicroStrategy Web, and when a document is exported to HTML. For examples and instructions, see Clipping text or displaying scroll bars in text fields, page 168. Set Number formatting options such as decimal spaces, currency symbols, time formats, zip code formats, and so on, as described in Formatting numbers, page 169. Change Text layout options such as word wrap and padding, control how the text is displayed within the borders of the text field. They are
167
Formatting Documents
found in the Text section of the Property List. For a list of the available options, see Formatting text position in a text field, page 173. Complete instructions for formatting text fields using various interfaces are provided in the Desktop Help.
Alternatively, a scroll bar can be displayed, so that a user can scroll through all of the text. This option is shown in the text field at the bottom of the document sample above. Notice that the scroll bar has been moved to the left, to show the end of the text. Scroll bars are displayed in Express Mode and Interactive Mode in MicroStrategy Web, and when the document is exported to HTML. Use the Text overflow (HTML) setting to determine how to display the text when it is larger than the dimensions of the text field, as described below.
To clip text or display scroll bars in text fields
1 Open a document using the Document Editor in Design View. 2 Right-click the text field to display scroll bars for, and select Properties. The Properties dialog box opens. 3 Click the Layout tab.
Formatting Documents
4 Select one of the following from the Text overflow (HTML) drop-down list: To display only the text that can fit within the size of the text field, select Clip. To display a scroll bar to allow a user to view all of the text, select Scroll.
The scroll bar is most useful when the Height mode is set to Fixed.
5 Click OK to return to the document.
Formatting numbers
Number formatting options include decimal spaces, currency symbols, time formats, zip code formats, and so on. For example, the text fields in the following document sample have different number formats applied to them. The one on the left is a date in the MM/DD/YYYY format, while the one in the middle, another date, is in the Month Date, Year format. The text field on the right is a number formatted as currency, with no decimal.
Text fields are the only control type to allow number formatting.
The following procedure guides you through creating the sample shown above. See the Desktop Help for procedures to perform all types of number formatting.
169
Formatting Documents
1 Open a document using the Document Editor in Design View. Use a document with a dataset that contains dates and numbers. 2 Add two date text fields and a numeric text field, as shown in the sample above. To add a text field: a Click the Text icon in the toolbar. b Click and drag in the desired section of the Layout area to create the text field. c Type the desired text, then press the Enter key.
3 Select the text field on the left. 4 In the Property List: Data section, click the button in the Number formatting property. The Number tab of the Format Objects dialog box opens. 5 Select Date in the Category list. 6 Select 07/19/2000 in the Formatting area. 7 Click OK to return to the document. 8 Select the middle text field. 9 Repeat steps 4-7 above, except select July 19, 2000 in the Formatting area. 10 Select the text field on the right. 11 In the Property List: Data section, click the button in the Number formatting property. The Number tab of the Format Objects dialog box opens. 12 Select Currency in the Category list. 13 Set Decimal Places to 0 (zero). 14 Select $ as the Currency Symbol. 15 Click OK to return to the document.
Formatting Documents
A text field can be turned: 90 degrees, which displays the text from bottom to top, as shown above by the text Vertical: 90 degrees -90 degrees, which displays the text from top to bottom, as shown above by the text Vertical: -90 degrees
Vertical text is displayed in PDF View, in all MicroStrategy Web display modes, and when the document is exported to Excel. It is not displayed in Design View in Desktop, and the Firefox browser does not display vertical text.
To display vertical text in Flash Mode in MicroStrategy Web, the fonts must be embedded and swf files must be included in the document, as
described in Embedding fonts for Flash Mode, page 249.
To display text vertically
1 Open the document using the Document Editor in Design View. 2 Select the text field to be formatted. 3 From the Format menu, select Format. The Format Objects dialog box opens. 4 Click the Alignment tab.
171
Formatting Documents
5 Set Text direction to either: 90 degrees, to print the text from bottom to top -90 degrees, to print the text from top to bottom
specify padding The Alignment tab also allows youoftothe text field) and(the space between the text and the borders alignment within the text field. For examples of padding, see Vertical text and padding, page 172; for a description of the text display properties, see Formatting text position in a text field, page 173. 6 Click OK to return to the document. To view the vertical text, click PDF View on the toolbar.
You can set padding using either the Property List or the Alignment tab of the Format Objects dialog box. For detailed instructions, see the Desktop Help.
Formatting Documents
fields are control that specify word wrap and Textdirection. the onlytitle barstypepanellet you and Grid/Graphs, you text For the of stacks can specify padding and both horizontal and vertical alignment. For instructions, see Formatting panels and panel stacks, page 410 and Formatting Grid/Graphs, page 319.
For examples and information about creating HTML containers, see Displaying real-time web and other HTML content: HTML containers, page 121.
173
Formatting Documents
When you insert an HTML container into a document, its formatting is initially determined by the control defaults. However, you can then change any of the formatting options for the new HTML container. Formatting options, such as borders and background colors, apply to the HTML container itself, not to anything placed inside the container. Examples for formatting the HTML container include 3D borders and background colors, as shown in the first sample below, and drop shadows, as shown in the second sample.
HTML container formatting options do not affect what the HTML container displays (either the text or the website). The following list provides some useful formatting suggestions for all HTML containers. Create a border around the HTML container. To create a basic border, click the Border icon in the Formatting toolbar, and select the border type. For details on all border formatting options, see the Desktop Help. Make an HTML container appear three-dimensional, like a button, with the 3D effect. For instructions, see Applying a 3D effect, page 155. Float the HTML container above the background by using a drop shadow. For instructions, see Applying a drop shadow, page 157. Display pop-up text when a user positions the cursor over the HTML container in MicroStrategy Web. The pop-up text is called a tooltip, and can provide extra information, such as a description of a website. For an example of a tooltip, and instructions to create them, see Creating a pop-up tooltip, page 162.
Formatting Documents
For an HTML container that displays formatted text using HTML tags, you can also format the HTML container in the following ways: Allow the content behind the HTML container to show through by setting the backstyle of the HTML container to transparent. You can also allow a fill color to cover what is behind the HTML container by setting the backstyle to opaque. For an example and instructions, see Using a transparent or opaque backstyle, page 152. Select the background color of the HTML container by setting the backcolor. To set the background color, click the Fill icon in the Formatting toolbar, and select the color from the drop-down menu. For details on all background formatting options, see the Desktop Help. Create a gradual color change by blending two colors using gradient colors. For an example and instructions, see Using gradient colors, page 159. Format the font of the text displayed by the HTML container. Font format options include the font type, size, and color, as well as whether it is bolded or italicized. You can use the Formatting toolbar to format the text. For more detailed instructions, see the Desktop Help. font ThisHTMLformatting is overwritten by font formatting provided in the tags, as explained below. The formatting of the content inside the HTML container is determined by either the HTML tags or the website displayed by the URL. For an HTML container that contains HTML tags, any font formatting not specified in the HTML tags is provided by the MicroStrategy formatting options. For example, the following HTML container, shown in Design View, contains HTML tags. The HTML tags do not apply to the text until the document is displayed in MicroStrategy Web. The HTML tags format the first line as a heading 2. The second line is displayed in a blue Courier font by the HTML tags. The third line does not use any HTML tags. Notice that the Property
175
Formatting Documents
List for the HTML container indicates that the object uses a black Tahoma font (the Forecolor property is the color of the font).
The same HTML container is shown below in Express Mode in MicroStrategy Web. Notice that the second line is displayed in a blue Courier font (as defined by the HTML tag), unlike the black Tahoma font of the other lines (which use the font properties defined for the HTML container). The first line is bolded and displayed in a larger font than the other lines because of the h2 HTML tag. The other lines display in the font size indicated for the HTML container.
The font formatting for an HTML container applies only to HTML containers that use HTML tags. For example, the following HTML container is an iFrame, using a URL to display a website. The font is defined to display as an italicized gray.
Formatting Documents
The same HTML container is displayed below in Express Mode in MicroStrategy Web. The website determines how the text is displayed. In this case, it is black and not italicized.
Complete instructions for formatting HTML containers using various interfaces are provided in the Desktop Help.
Formatting shapes
When you insert a shape into a document, its formatting is determined by the control defaults. However, you can change any of the formatting options. There are some differences between rectangles and rounded rectangles: The borders, including 3D effects, on rounded rectangles are rendered only in Flash Mode in MicroStrategy Web. For information on Flash Mode, see Display modes in MicroStrategy Web, page 9. Rounded rectangles have additional properties to define the radius of the rounded corners and whether rounded corners are displayed for the top corners only or all four corners. For examples and instructions, see Controlling the display of rounded corners in Flash Mode, page 178.
The following list provides some useful formatting suggestions. For information on basic options such as formatting borders, see the Desktop Help. Make a rectangle appear three-dimensional, like a button, with the 3D effect. You cannot use 3D effects on lines. For rounded rectangles, 3D effects appear only in Flash Mode in MicroStrategy Web. For an example, see Applying a 3D effect, page 155. Allow the content behind the rectangle to show through by setting the backstyle to transparent. You can also allow a fill color to cover what is behind the rectangle by setting the backstyle to opaque. For an example, see Using a transparent or opaque backstyle, page 152.
Formatting shapes
177
Formatting Documents
Float the rectangle or rounded rectangle above the background by using a drop shadow. Lines do not use drop shadows. For an example, see Applying a drop shadow, page 157. Create a gradual color change by blending two colors using gradient colors. You can apply gradient colors to rectangles and rounded rectangles, but not to lines. For an example, see Using gradient colors, page 159. Display pop-up text when a user positions the cursor over the shape in MicroStrategy Web with a tooltip. The tooltip can provide extra information, such as an expanded description of a metric. You can use tooltips on rectangles, rounded rectangles, and lines. For an example, see Creating a pop-up tooltip, page 162. Display a shape to other document designers in Design View while hiding it from users viewing the document in PDF View (Desktop) and Interactive Mode, Editable Mode, and Express Mode on MicroStrategy Web. Rectangles, rounded rectangles, and lines can all be displayed in Design View only. For an example, see Hiding a control, page 164. Control how rounded corners are displayed for rounded rectangles in Flash Mode. You can define the radius and select whether rounded corners are displayed for the top corners or all four corners. For an example, see Controlling the display of rounded corners in Flash Mode, page 178.
Complete instructions for formatting lines and rectangles using various interfaces are provided in the Desktop Help.
Formatting Documents
The rounded corners properties apply to Flash Mode only. In PDF View or other Web display modes, rounded corners display as square, right-angle corners. That is, rounded rectangles and rectangles look the same in PDF View and in all Web display modes except Flash Mode. You can control how rounded corners are displayed for rounded rectangles in Flash Mode by: Defining the radius, which sets how round the corners are. A larger radius produces a more rounded corner. The range is 1-20. Selecting whether rounded corners are displayed for the top corners only or all four corners.
In the document sample above, the corners of the left rectangle are more rounded than those on the right rectangle. The corner radius of the left rectangle is set to 10, while the right rectangle has a corner radius of four (the default). Notice also that the right rectangle has rounded corners on the top only, while all four corners of the left rectangle are rounded. The following procedure re-creates the sample. See the Desktop Help for steps to perform all types of formatting for rectangles and rounded rectangles.
To control the display of rounded corners in Flash Mode
1 Open a document using the Document Editor in Design View. 2 Add two rounded rectangles, as shown in the sample above. To add a rectangle: a Click the arrow next to the Rectangle icon in the toolbar, and select Rounded Rectangle. b Click and drag in the desired section of the Layout area to create the rectangle. 3 Select the rectangle on the left. 4 In the Property List: Appearance section, set Rounded corner radius to 10. The range for the corner radius is 1 to 20. Higher numbers produce a more rounded corner, while lower numbers produce a straighter corner. 5 Select the rectangle on the right.
2011 MicroStrategy, Inc. Formatting shapes
179
Formatting Documents
6 In the Property List: Appearance section, set Top corners only to True. To view the effect, open the document in Flash Mode in MicroStrategy Web.
Formatting images
When you insert an image into a document, its formatting is determined by the control default. However, you can change any of the formatting options. The following list provides some useful formatting suggestions. For information on basic options such as formatting borders, see the Desktop Help. Make an image appear three-dimensional, like a button, with the 3D effect. For an example, see Applying a 3D effect, page 155. Float the image above the background by using a drop shadow. For an example, see Applying a drop shadow, page 157. Display pop-up text when a user positions the cursor over the image in MicroStrategy Web with a tooltip. The tooltip can provide extra information, such as an expanded description of a metric. For an example, see Creating a pop-up tooltip, page 162. Display an image to other document designers in Design View while hiding it from users viewing the document in PDF View (Desktop and Web) and Interactive Mode, Editable Mode, and Express Mode on MicroStrategy Web. For an example, see Hiding a control, page 164.
Complete instructions for formatting images using various interfaces are provided in the Desktop Help.
Formatting sections
You can format each document section individually. Your formatting choices include: Whether to hide or display document sections. For examples and instructions, see Hiding or displaying sections for a finished document, page 181.
Formatting Documents
Defining the background color of each document section. For instructions, see Formatting the background color of document sections, page 186. Displaying the detail sections horizontally across the page. Detail sections include the Detail Header, Detail Footer, and Detail. You can display all three sections horizontally or just the Detail section horizontally. For examples and instructions, see Displaying sections horizontally, page 186. Changing the size of document sections. You can define a document section as a set size that does not vary, or as a variable size that grows or shrinks within set limits. For examples and instructions, see Changing the size of a section, page 188. Specifying whether the entire contents of a document section are repeated on the next horizontal page when a section spans multiple pages. This is generally used with Grid/Graphs, particularly those with uncertain widths, so that the Grid/Graph is labeled on every page that it stretches to. For examples and instructions, see Repeating information horizontally, page 194. Specifying how page breaks within document sections are handled. If a document section begins in the middle of a page and spans multiple pages, the remainder of the section can be printed on the same page, or the section can start on the next page. This can help keep column labels with the data they identify. For examples and instructions, see Keeping the contents of a section together, page 195. Specifying how row heights are determined when the document is exported to Excel. You can choose to have all the rows be the same height or to allow Excel to automatically adjust the row height to fit the data. For instructions and an example, see Allowing Excel to automatically change row height, page 257.
Formatting sections
181
Formatting Documents
In certain scenarios, you do not want an end user, or a certain group of end users, to be able to view particular document sections. For example: As a designer, you want to work only in a single large section, such as in a dashboard, thus using all the available space in the Document Editor. This one section is displayed to all users in all views. For more details and instructions, see Hiding a section from users and designers, page 182. You create a number of documents that should have specific sections hidden. To simplify and standardize the documents, you can create a template that hides those sections. You can then use the template to create the documents, and by default only the selected sections are displayed. For more details and instructions, see Hiding a section from users and designers, page 182. A section contains information that makes sense in a printed document but not in one displayed in MicroStrategy Web. For example, the Page Footer section in a document contains page numbers. You can hide the Page Footer in all MicroStrategy Web modes but display it in PDF View. The section is still displayed in Design View in both Desktop and MicroStrategy Web. For more details and instructions, see Displaying a section in the PDF only, page 184. A section contains data that is displayed only when a specific condition is met. This scenario uses conditional formatting, which is described in Using prompts in documents, page 766, and the Visible property, which is described in Hiding a control, page 164. A section contains internal notes about the source of the data and when to run the document. You do not want users to see this information; only document designers should be able to view it. The section must be hidden in PDF View in Desktop and in all MicroStrategy Web modes except Design Mode. For an example and a procedure, see Hiding a control, page 164. Although the example discusses controls specifically, hiding a section works the same way.
Formatting Documents
that summarizes key business indicators for a quick status check), since dashboards are typically only one page long. A quick way to create a document with only one section displayed is to use the Blank Dashboard template as the starting point for your dashboard. The single section on the template is defined as being 6.5 inches high. For a more detailed description of the Blank Dashboard template, see Creating a dashboard: the Blank Dashboard template, page 389; for information on dashboards in general, see Chapter 5, Designing Dynamic Enterprise Dashboards. You are not limited to displaying only a single section; you can select which sections to display and which to hide. For example, you need to create a number of documents that should have specific sections hidden. To simplify and standardize the documents, create a template that hides those sections. You can then use the template to create the documents, and by default only the selected sections are displayed. For instructions on creating and using templates, see Creating a document using another document as a template, page 27.
You cannot hide all the sections; at least one section must be displayed.
For a multi-layout document, a section that is hidden in all views in one layout is not automatically hidden in the other layouts. You can hide and display different sections for different layouts. You can use the steps below to hide or display sections in different layouts. For background information on multi-layout documents, see Creating multi-layout documents, page 714.
As a designer, you may want to temporarily display only the specific sections that you are editing right now. Rather than hide sections from users, you should expand and collapse sections as described in Collapsing or expanding document sections as you design, page 37.
To hide or display sections to users and designers
1 Open the document using the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to change.
Formatting sections
183
Formatting Documents
3 Select Sections from the View menu. The Sections category of the Layout Properties dialog box opens. 4 Clear the check box for any section that you want to hide.
You cannot hide all the sections; at least one section must be displayed.
5 If a section is hidden but should be displayed, select its check box. 6 Click OK to return to the document. Only the selected sections are displayed.
Formatting Documents
The next image shows the same document in Express Mode on Web. Notice that the page numbers are not displayed.
in Web The Visible availableView Mode property, which controls thisLayout behavior, is only for the Document Header/Footer, Header/Footer, and Page Header/Footer sections. The following procedure guides you through creating the sample shown above.
To display a section in the PDF only
1 Open the document in the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to change. 3 If the Property List is not displayed, from the View menu, select Property List. 4 Use one of the following methods to select the section to be hidden: Click the top boundary of the section to select it. Select the section from the drop-down list at the top of the Property List.
5 In the Property List: Appearance section, set Visible in Web View mode to False. To view the document as a PDF, click PDF View in the toolbar. To view the document in a Web display mode, you must open it in MicroStrategy Web.
Formatting sections
185
Formatting Documents
Gradients blend two colors to create a gradual color change in the background of the section. For an example and instructions to apply gradient colors, see Using gradient colors, page 159.
Formatting Documents
the right side of the paper. The title Monthly Revenue is displayed in the Detail Header, while Month and Revenue are placed in the Detail section.
Displaying the Detail section horizontally displays the monthly revenue across the page, as shown in the document sample below. The Revenue metric was moved below Month, to present a half year of data across a single sheet of paper.
Formatting sections
187
Formatting Documents
The following image shows the same document in Design View. The Detail Header contains the title, while the Detail section contains Month and Revenue. The Detail section is displayed horizontally.
Horizontally displayed sections have additional properties to control the horizontal width. For a list of these properties, and a width sizing example, see Changing the horizontal width of a section, page 191.
To display and print detail sections horizontally
1 Right-click in the Detail Header, Detail, or Detail Footer section and select Detail Properties. The Detail Properties dialog box opens. 2 To horizontally display only the Detail section, select the Render Detail horizontally check box. 3 To horizontally display all the detail sections, select the Render Detail header and footer horizontally check box. The Render Detail horizontally check box is automatically selected as well. 4 Click OK.
Formatting Documents
shrink when the controls are smaller than the section size. You can change this behavior by setting the Height can shrink property to True. Then the section is only as big as necessary to display all the information in the section. You can define a section as a set size that does not vary, or as a variable size that grows or shrinks within set limits. To do this, set the Size properties of the section, as described below.
Snap to Grid (see Snapping to the alignment grid, page 138) does not apply to section sizing.
You can use these properties in combination with each other to create the following size designs: Fit to contents: The size of the section adjusts automatically to the contents, without any waste of space.
Maximum height: set to zero Height can grow: True Height can shrink: True
Fixed height: The height of the section remains the same, regardless of its contents.
Height: desired size of the section Height can grow: False Height can shrink: False
Grow to a maximum height: The height of the section adjusts automatically to its contents but it will not exceed the set maximum.
Maximum height: maximum size of the section Height can grow: True Height can shrink: True
Shrink to a minimum height: The height of the section adjusts automatically to its contents but will not contract below the set minimum.
Height: minimum size of the section Maximum height: set to zero Height can grow: True
Formatting sections
189
Formatting Documents
Vary within a set range: The height of the section adjusts automatically to its contents but will not exceed the set maximum nor contract below the set minimum.
Height: minimum size of the section Maximum height: maximum size of the section Height can grow: True Height can shrink: False
Maximum is less than Iffixed heightHeightto the size setHeight, the section is displayed with a equal in Height. When exported to HTML or viewed in HTML, a document section uses the Height setting, regardless of the Height can grow or Maximum height settings. For example, the height of a document section is defined as 1.5 inches, the maximum height as 10, and Height can grow is selected. The data in the document section is longer than 1.5 inches. In HTML View or when exported to HTML, the document section is only 1.5 inches high, and the data is cut off. This occurs because the exact height cannot be determined during HTML rendering. To allow all the data to be displayed, specify a more accurate Height setting. The Hide if empty property can also be used with any of these size designs. If it is set to True, the section does not display if it contains no data. If it is set to False, the section displays according to the size properties, even if the section does not contain any data.
Formatting Documents
Notice that the labels are less than half an inch from the top of the Detail Header. If the Height can shrink property was set to True, the labels would print right above the Detail. Instead, there is a buffer of white space between the labels and the data of the document:
For instructions, see To change the size of a section in a document, page 193.
You can define a horizontally displayed section as a set width that does not vary, or as a variable width that grows or shrinks within set limits according to the size of its content.
Formatting sections
191
Formatting Documents
For example, to use a specific width, type the size in the Width property. Set the Width can grow and Width can shrink properties to False. smaller than the right-most The width should not beThis ensures that controls areedge of the controls in the section. displayed regardless of their position. To adjust the width to the contents automatically, without wasting space, set Maximum width to zero. Set the Width can grow and Width can shrink properties to True. For general information on horizontally displayed sections, including examples and instructions, see Displaying sections horizontally, page 186.
Formatting Documents
1 Open the document using the Document Editor in Design View. 2 Select the section to resize. 3 Do one of the following: Use the Properties dialog box: From the Format menu, select Properties. Then click the Layout tab. Use the Property List: Locate the Size section of properties.
4 Specify the height, as described below: Height can grow: determines whether the section height can expand to fit its contents. The section height does not change in Design View. Height can shrink: determines whether the section height can shrink to fit its contents. The section height does not change in Design View. Height: sets the height of the section. Maximum height: sets the maximum height for the section. Zero (0) indicates that there is no height limit.
5 If the section is displayed horizontally (that is, across the page), you can specify the width of the section: Width can grow: determines whether the section width can expand to fit its contents. The section width does not change in Design View. Width can shrink: determines whether the section width can shrink to fit its contents. The section width does not change in Design View. Width: sets the width of the section. Maximum width: sets the maximum width for the section. Zero (0) indicates that there is no width limit.
6 By default, the section displays only if it contains content. To display the section whether or not it has content, clear Hide if empty. 7 If you are working in the Properties dialog box, click OK to return to the document.
Formatting sections
193
Formatting Documents
Formatting Documents
1 Open the document using the Document Editor in Design View. 2 Select the section to repeat. 3 In the Property List, locate the Page Break section. Select True from the drop-down list in the Repeat horizontally property.
Formatting sections
195
Formatting Documents
You can use this option to, for example, keep column labels in text fields with the data fields that they identify. If the column labels of a section are stranded at the bottom of a page, with the corresponding data at the top of the next page, apply the Keep together setting to that section. data for a together in a similar manner. You can also keepKeeping thegroup in a group together on a page,For instructions, see data page 283.
To keep the contents of a section together on a page
1 Open the document using the Document Editor in Design View. 2 Select the section to keep together. 3 Do one of the following: Use the Properties dialog box: From the Format menu, select Properties. Then click the Layout tab. Use the Property List: Locate the Page Break section of properties.
4 Select the Keep together property check box, or from the drop-down list in the Property List, select True. 5 Click OK. more details the settings on the For Desktop Help.aboutview this, press F1 orProperties dialog box, see the To click Help.
Formatting Documents
that object to suit your needs. You can also change the default formatting for a control type by changing the control default. document sections, but is applied A control default exists foror group footer is created, not whenonly when a new group header additional sections are added. For details, see Control defaults for document sections, page 198. For example, the control default for text fields specifies that the font of all new text fields is Arial size 10 and black. Create two new text fields, Text1 and Text2, as shown below:
The text in both controls is displayed according to the control default. That is, both are Arial size 10 and black. Format Text1 as Courier New size 14 and light blue. Set the control default to use Text1s format. Create a third text field, Text3. It is automatically formatted like Text1 (Courier New size 14 and light blue), as shown below:
Notice that the format of Text2 did not change. When you change the control default, existing controls are not affected, because the control default is not linked to any existing controls in the document. Only controls created after the control default formatting is changed will reflect the new default formatting. If you want an existing control to be formatted in the same way as the control default, you can manually apply the control default to an existing control. For example, select Text2 and apply the control default. It is now formatted like Text1 and Text3, with Courier New size 14 and light blue. you copy paste a control Control defaults areanot used whenformattingandthe copied or or when you duplicate control. The of duplicated control is copied or duplicated along with the control itself.
2011 MicroStrategy, Inc. Defining default formatting for control types: control defaults
197
Formatting Documents
Control defaults can include any formatting property, such as font color, background color, borders, and so on, that applies to the control type. For example, you cannot format the font of a line since it does not have a font. Therefore, the control default for lines does not include font formatting settings. For Grid/Graphs, the control default affects only the report Autostyle. (A report Autostyle is a set of predefined formats used for reports and for Grid/Graphs in documents; a report Autostyle is different than a document Autostyle, discussed in Formatting a document using predefined formats (Autostyles), page 215. For information on report Autostyles, see Editing a Grid/Graph displayed as a grid: Formatting options, page 313 and the MicroStrategy Basic Reporting Guide.) Autostyles, available in List for a document, Default gridway to define the controlthe PropertyGrid/Graphs. To set are another default for the default grid Autostyle, select Document Properties from the Format menu. On the Document tab, select the report Autostyle from the Default Grid Autostyle drop-down list. A default grid Autostyle applies to all layouts of a multi-layout document.
To define the default formatting for a control type
1 Format a control as you want the default formatting for this control type to look. 2 Right-click it and select Set Control Defaults. All new controls of that control type are formatted using the control default formatting. the existing You can also apply For control default toApplyingcontrols of the default same control type. instructions, see formatting to a control or document section, page 199.
Formatting Documents
automatically applied to new group sections, but not when you insert additional sections, as described below: When you create a new group, a Group Header section and a Group Footer section are created. These sections are formatted according to the control default for document sections. When you insert a new document section, the new section is formatted the same as the section to which it is added. For example, if you add a section below the Detail Header, the new section is formatted like the Detail Header.
For instructions on grouping a document, see Grouping records in a document, page 260. For instructions to add sections, see Inserting additional sections in documents, page 45.
1 Open the document in the Document Editor in Design View. 2 Right-click the control or document section to be formatted and select Apply Control Defaults.
199
Formatting Documents
Conditional formatting allows you to format specified data in your document depending on predefined criteria. The criteria are defined in attribute or metric qualifications (also known as conditions), such as Customer Order Amount >100 or City = Miami. Conditional formatting allows the data in controls and document sections to be formatted by data-driven conditions. Like thresholds in reports, conditional formatting allows you to alert document recipients to data that is likely to be important for making business decisions. Conditional formatting provides the flexibility to personalize documents based on the data returned by the dataset reports. For example, a document contains customer order information. Any customers with an order over $100 in the past three months can be displayed in italicized blue font, to ensure that they receive special promotions. Any customers who live in a particular city can be displayed in a bold red font, so that they can receive a notice about a new store opening there. A conditional format is the combination of a control, a condition, and formatting properties which are applied to the controls data that meets the condition. Objects of all control types except Grid/Graph can use conditional
Formatting Documents
formatting. The following table lists the control types and the types of conditional formatting available for each.
Control Type Image Line Rectangle Text field Conditional Formatting Hide object Formatting: Borders Hide object Formatting: Line style, color, and weight Hide object Formatting: Background color; Line style, color, and weight Hide object Replacement text and symbols Formatting: All formatting properties Hide object Formatting: Background color Replacement text, symbols, and images Formatting: All formatting properties You can apply conditional formatting (or thresholds) to an object in a Grid/Graph, but the method is slightly different. For information on creating thresholds in reports, see the MicroStrategy Basic Reporting Guide.
Section Grid/Graph
Derived metrics and summary metrics can be used to create conditional formatting; calculated expressions cannot.
201
Formatting Documents
For example, the following document contains cost, profit, and revenue by region and employee, and is grouped by region.
The document needs to provide a quick summary of the profit information, so the profit data must be replaced with a green diamond if the profit is
Formatting Documents
$100,000 or greater, and a red stop sign (that is, a hexagon) if it is less. The final document looks like the following:
While this example uses a metric from the dataset report in the condition, you can also use derived metrics, summary metrics, and attributes in the condition. For examples, see Derived metrics, summary metrics, and attributes in conditional formatting, page 205.
203
Formatting Documents
2 From the Format menu, choose Conditional Formatting. The Conditional Formatting dialog box opens. 3 In the drop-down list at the far left of the toolbar, select the control or section to apply conditional formatting to. For this example, select the Profit metric text field.
4 In the toolbar, click the Add a new threshold icon to add a new conditional format definition. The new conditional format appears below the toolbar, labeled New Threshold. 5 Rename the new conditional format by selecting New Threshold and typing the new name. For this example, type Profit => $100K.
6 In the conditional format box that you just created, click the text Click here to start a new qualification. A qualification is the actual condition that must be met for the conditional formatting to be applied. 7 Click Field, then select the attribute or metric to qualify on. The list includes all the attributes and metrics in all of the datasets on the document. For this example, select Profit.
8 Click Operator to choose an operator, such as Exactly or In List. The operators available for selection depend on whether you selected an attribute or a metric as the Field. For this example, select Greater than or equal to.
9 Click Value to select a value. Depending on the Field and Operator chosen, Value can be a box to enter numbers or text, a list of attribute elements, or another field drop-down list. For this example, click Type a value, type 100000, then press ENTER.
Now that you have set the condition that triggers the formatting, you must specify the formatting.
Formatting Documents
By default, the control or section is formatted. You can instead hide the control or section, replace the text on the document with new text, or replace the text on the document with a symbol. For this example, the text is replaced with a symbol; only those instructions are included below. Instructions for the other options are provided in the Desktop Help. 10 Click Format in the middle of the conditional format box and select Quick Symbol. 11 Click the diamond symbol in the box next to the drop-down list. 12 To color the diamond green, click the Edit the threshold formatting icon on the toolbar. 13 On the Font tab, select a shade of green from the drop-down list in Color. 14 Click OK to return to the Conditional Formatting dialog box. Repeat the steps above to replace the Profit metric with a red hexagon if the value is below $100,000. The differences are listed below: In step 5, name the conditional format Profit < $100K. In step 8, select Less than. In step 11, select the hexagon. In step 13, select a shade of red.
After you have created both conditional formats, click OK to return to the document. When you create the PDF, the document should look like the sample shown on page 203.
205
Formatting Documents
regions with an average profit less than $100,000, the region name appears in a box.
You do not have to use a metric as the condition; you can also use attributes. For example, you want to quickly identify employees who work in the North (that is, either the Northeast or Northwest region). Therefore, the condition definition is Region In list {Northeast, Northwest}.
Formatting Documents
In the following sample, the Northeast employees are highlighted, but not the Mid-Atlantic employees. If any Northwest employees were displayed in the sample, their names would be highlighted as well.
207
Formatting Documents
totals. (See the MicroStrategy Web Help for instructions.) When you create a conditional format in Desktop, if the target is a text field, the conditional format is not applied to the total, but rather to the metric values only. For example, a document contains the Region attribute and the Revenue metric on a panel stack. The panel stack is targeted by a selector, which allows a user to choose the region to display in the panel stack. The selector includes the option to display the total, which is calculated for all the regions. The conditional formatting on the Revenue metric displays low revenue in red and high revenue in green. The conditional formatting can be applied to the regional revenue values only (that is, the metric only), or to both the regional revenue values and the total value.
Formatting Documents
profits above $100,000, but the red hexagon is still shown instead of the profit data if it is smaller, as shown below:
1 Open the document in the Document Editor. 2 From the Format menu, choose Conditional Formatting. The Conditional Formatting dialog box opens. 3 In the Object drop-down list, select the control or section for which to disable conditional formatting. For this example, select the Profit metric text field.
4 In the Conditional format list, clear the check box in front of the conditional format to disable. For this example, clear the check box in front of Profit => $100K.
209
Formatting Documents
Formatting Documents
2 From the Format menu, choose Conditional Formatting. The Conditional Formatting dialog box opens. 3 In the Object drop-down list, select the control or section for which to enable conditional formatting. For this example, select the Profit metric text field.
4 In the Conditional format list, select the check box in front of the conditional format to enable. For this example, select Profit => $100K.
1 From the Format menu, choose Conditional Formatting. The Conditional Formatting dialog box opens.
You can also right-click an object in the layout area and select Conditional Formatting.
2 Select the Allow user to display and hide conditional formatting check box. 3 Click OK to return to the document.
211
Formatting Documents
This procedure assumes that users are allowed to show and hide conditional formatting, as described in Allowing users to display and hide conditional formatting, page 211. Do one of the following: In Design View or PDF View, click the Conditional Formatting icon in the toolbar. In Design View only, select Document Properties from the Format menu. In the Document section, clear the Show conditional formatting check box.
This hides all the conditional formatting on the entire document, including all layouts of a multi-layout document, regardless of whether the conditional format was enabled or disabled in the Conditional Formatting dialog box. You can easily switch between showing conditional formats and showing the underlying values.
Formatting Documents
While the sample document border shown above is a thin black line around the entire border, other border line options include thick, hairline, dotted, dashed, and double. You can change the color of the border. You can also apply the border to one or more sides of the document. document multiple If thebackground containslayout. layouts, you can format the border and of each
To format the border and background of a document or layout
213
Formatting Documents
2 If the document contains multiple layouts, click the tab of the layout to format. 3 Select Document Properties from the Format menu. The Document Properties dialog box opens. 4 Click Colors and Lines. 5 Select the color for the background of the entire document or for the selected layout, using the Backcolor drop-down list. over the The section color takes precedencecolor of a document/layout see color. For instruction to define the document section, Formatting the background color of document sections, page 186. 6 To define how to display the document/layout borders, click Format next to Border. The Border tab of the Format Cells dialog box opens. 7 You can remove the entire border, by clicking None in the Presets area. You do not have to select a Style, Color, and so on. 8 To format the border, complete the following steps: a Select the Style, which is the style of line to use as the border. Your choices are No Line, Dashed, Dotted, Hair, Thin, Double, and Thick.
The Hair line style cannot be displayed in reports viewed in MicroStrategy Web.
b Select the color to use for the border by clicking the arrow next to Color. c Select where to apply the Style and Color: To apply the formatting to the entire border, click the Outline button in the Presets area. To apply the formatting to specific sections of the border, click the Top Border, Bottom Border, Left Border, and/or Right Border buttons. 9 Click OK to return to the Document Properties dialog box. 10 Click OK to return to the document.
Formatting Documents
215
Formatting Documents
Creating an Autostyle
To create an Autostyle, apply the formatting that you want to a documents controls and sections, then save the document in the AutoStyles folder whose path is as follows: project name\Public Objects\AutoStyles
Documents saved in the AutoStyles folder are still documents, and not Autostyle objects.
Saving the Autostyle document in the AutoStyles folder allows you to select the Autostyle document when you create a document using the Document Wizard. An Autostyle document saved elsewhere is not available to the Document Wizard. If you save documents in any other location, such as the My Objects folder, for example, you can still apply them as Autostyles to other documents through the Document Editor.
1 Open the target document using the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 From the Format menu, select Apply Autostyle. The Select Autostyle dialog box opens.
Formatting Documents
4 Locate and select the Autostyle to apply to the document. documents created by MicroStrategy are available AutostyleObjects\AutoStyles directory.User-created in the Public Autostyle documents may be located in this folder as well, but could have been saved in another folder as well. 5 Click OK. The formatting is applied to the document.
217
Formatting Documents
must be stored so that it is available to both the Intelligence Server and to the designers of the document. For details, see Inserting images in a document, page 130. You can wash out a text watermark in MicroStrategy, which fades the text to ensure that the document information is legible through the watermark. To achieve the same result with an image watermark, create the image using faded or dim colors. The Human Resources Analytic Module contains a report on salaries above the industry range. The following document uses that report as its dataset, and includes the word Confidential as a watermark across the page. Notice that the watermark text is washed out so that the rest of the text on the document is legible. Notice too that the watermark text is displayed behind the other text.
Formatting Documents
The following document contains more than one page, and the image watermark is shown on all the pages. The image watermark is centered on the page.
By default, document watermarks are enabled and overwrite the project watermark. However, until you create a document watermark, the project watermark, if any, is used on the document. If document watermarks are disabled, then the project watermark, if it is defined, is always displayed. This flexibility allows you to create a variety of different watermarks for different purposes. For example, most documents display your business logo; however, internal documents need to be marked Confidential. Since a project watermark is overwritten by a document watermark by default, create a project watermark that uses the logo. By default, document watermarks overwrite project watermarks, so do not change that setting. Next, for each internal document, create a document watermark with the text
2011 MicroStrategy, Inc. Adding watermarks to documents
219
Formatting Documents
Confidential. For instructions, see Creating the project watermark, page 221 and Creating document watermarks, page 224. In a different scenario, all documents from a particular project must be marked Confidential. To do this, create a project watermark with the text Confidential. Since you do not ever want this project watermark to be overwritten, disable document watermarks. (By default, document watermarks are enabled and overwrite the project watermark.) For instructions, see Creating the project watermark, page 221 and Disabling document watermarks, page 226. If the project has a watermark but you do not want to display any watermark on a specific document, allow document watermarks to overwrite the project watermark and set that specific document's watermark to no watermark. For instructions, see Hiding a project watermark for a specific document, page 223. If you do not want to allow any watermarks on any documents, disable watermarks. To do this, set the project watermark to no watermark and disable document watermarks. For instructions, see Disabling all watermarks, page 226. You can create project watermarks and allow the use of document watermarks only from MicroStrategy Desktop, not in MicroStrategy Web. The settings are applied to documents displayed in both Desktop and MicroStrategy Web, however. You can create and display document watermarks in MicroStrategy Web as well as in Desktop. The following table describes how to achieve various results.
Document Results All documents in the project display the same watermark Project-Level Settings Document-Level Settings
Define the project watermark Unavailable Clear the Allow documents to overwrite this watermark check box Define the project watermark For documents that display a watermark, select Use Select the Allow project watermark documents to overwrite this watermark check box For documents without watermarks, select No watermark Define the project watermark For the specific documents, define the document Select the Allow watermark documents to overwrite this watermark check box For other documents, select Use project watermark
Most documents display the same watermark All other documents do not display a watermark
Specific documents have individual watermarks All other documents display the same watermark
Formatting Documents
Document Results Specific documents have individual watermarks All other documents do not display a watermark Each document has an individual watermark
Project-Level Settings Select No watermark Select the Allow documents to overwrite this watermark check box Select No watermark Select the Allow documents to overwrite this watermark check box Select No watermark Clear the Allow documents to overwrite this watermark check box
Document-Level Settings For the specific documents, define the document watermark For other documents, select Use project watermark Define a document watermark for each document
Unavailable
1 In Desktop, right-click your project and select Project Configuration. The Project Configuration Editor opens. 2 Expand the Project Definition category, then select Document and Reports. 3 Click Watermark. The Watermark dialog box opens. A watermark can display either text or an image but not both; complete only the appropriate step below.
221
Formatting Documents
4 To create a text watermark: a Select Text watermark. b In the Text field, type the text to display as the watermark, up to 255 characters. c To change the appearance of the text, click Format, which opens the Font tab of the Format Cells dialog box. You can select the font, size, color, and so on. For details on any of the options, click Help. Click OK when you have made your selections.
d By default, the watermark uses the font size defined in the Format Cells dialog box. To allow the font size to automatically adjust to fill the layout, select the Size font automatically check box. This can be useful if the document contains both portrait and landscape pages. e To fade the watermark to ensure that the document/report information is legible through the watermark, select the Washout check box.
has a fill a white fill, Any object thatyou want acolor, includingshow throughcovers the watermark. If watermark to a Grid/Graph, set the background of the Grid/Graphs cells to transparent. Similarly, the background of a text field, rectangle, and so on must be transparent to allow the watermark to show through these objects. f By default, the text is printed diagonally across the page. To print it horizontally instead, select Horizontal in the Orientation area.
5 To create an image watermark: the As with images placed elsewhere on a document,and image file must be available to both the Intelligence Server to the designers of the document. For details, see Inserting images in a document, page 130. a Select Image watermark. b Click (the Browse button) next to the Source field. The Image Source dialog box opens. c Do one of the following to select and preview the image file:
Type the path and file name of the image in the text field. Click Preview. Click (the Browse button) and select the image file. The preview area automatically displays the image.
2011 MicroStrategy, Inc.
Formatting Documents
Once you have selected the image to use as the watermark, click OK. d By default, the image is automatically resized to fit within the document/report margins while retaining the images aspect ratio. To scale the image manually, select a percentage from the Scale drop-down list. The image is scaled to the selected percentage of its original size. 6 Click OK to return to the Project Configuration Editor. 7 To have all documents display this project watermark, clear the Allow documents to overwrite this watermark check box. If it remains selected, documents in this project can have their own watermarks, which overwrite the project watermark. 8 Click OK to return to Desktop.
1 In Desktop, right-click your project and select Project Configuration. The Project Configuration Editor opens. 2 Expand the Project Definition category, then select Document and Reports. 3 Ensure that the Allow documents to overwrite this watermark check box is selected. This allows you to define document watermarks that overwrite the project watermark.
223
Formatting Documents
4 Open the document in Design View in Desktop. 5 Select Document Properties from the Format menu. The Document Properties dialog box opens. 6 Select Document. 7 Click Format in the Watermark area. The Watermark dialog box opens. 8 Select No watermark. 9 Click OK to return to the document.
all layouts of a This procedure affects the entire document, includingon multi-layout multi-layout document. For background information documents, including examples and instructions, see Creating multi-layout documents, page 714. 1 Open a document in Design View in Desktop. 2 Select Document Properties from the Format menu. The Document Properties dialog box opens. 3 Select Document. 4 Click Format in the Watermark area. The Watermark dialog box opens. The watermark can display either text or an image but not both; complete only the appropriate step below.
Formatting Documents
5 To create a text watermark: a Select Text watermark. b In the Text field, type the text to display as the watermark, up to 255 characters. c To change the appearance of the text, click Format, which opens the Font tab of the Format Cells dialog box. You can select the font, size, color, and so on. For details on any of the options, click Help. Click OK when you have made your selections.
d By default, the watermark uses the font size defined in the Format Cells dialog box. To allow the font size to automatically adjust to fill the layout, select the Size font automatically check box. This can be useful if the document contains both portrait and landscape pages. e To fade the watermark to ensure that the document information is legible through the watermark, select the Washout check box.
has a fill a white fill, Any object thatyou want acolor, includingshow throughcovers the watermark. If watermark to a Grid/Graph, set the background of the Grid/Graphs cells to transparent. Similarly, the background of a text field, rectangle, and so on must be transparent to allow the watermark to show through these objects. f By default, the text is printed diagonally across the page. To print it horizontally instead, select Horizontal in the Orientation area.
6 To create an image watermark: the As with images placed elsewhere on a document,and image file must be available to both the Intelligence Server to the designers of the document. For details, see Inserting images in a document, page 130. a Select Image watermark. b Click (the Browse button) next to the Source field. The Image Source dialog box opens. c Do one of the following to select and preview the image file:
Type the path and file name of the image in the text field. Click Preview. Click (the Browse button) and select the image file. The preview area automatically displays the image.
225
Formatting Documents
Once you have selected the image to use as the watermark, click OK. d By default, the image is automatically resized to fit within the document margins while retaining the images aspect ratio. To scale the image manually, select a percentage from the Scale drop-down list. The image is scaled to the selected percentage of its original size. 7 Click OK to return to the document.
1 In Desktop, right-click your project and select Project Configuration. The Project Configuration Editor opens. 2 Expand the Project Definition category, then select Document and Reports. 3 Clear the Allow documents to overwrite this watermark check box. 4 Click OK to return to Desktop.
Formatting Documents
1 In Desktop, right-click your project and select Project Configuration. The Project Configuration Editor opens. 2 Expand the Project Definition category, then select Document and Reports. 3 Click Watermark. The Watermark dialog box opens. 4 Select No watermark. 5 Click OK to return to the Project Configuration Editor. 6 Clear the Allow documents to overwrite this watermark check box. 7 Click OK to return to Desktop.
227
Formatting Documents
information, including instructions, see Font embedding in PDFs, page 237. Graph resolution: You can use bitmaps instead of vector graphs. Vector graphs are smaller than bitmaps and therefore reduce the size of the PDF, while still providing good quality printed graphs. Bitmaps allow background patterns, rectangular gradients, texture backgrounds, and picture backgrounds. If the PDF uses bitmaps, you can also select whether to use draft quality, which uses a lower resolution to reduce the size of the PDF. For more information, including instructions, see Changing graph resolution in PDFs, page 239. Bookmarks: You can create bookmarks in the PDF, to allow quick access to specific areas of the file. You can specify that the bookmarks are hidden when the PDF opens, to maximize the amount of space for the document. The user can then display and use the bookmarks. For more information on bookmarks, including examples and instructions, see Including or hiding bookmarks in PDFs, page 240. grouped. Bookmarks cannot be created if the document is not records inFor a information on grouping a document, see Grouping document, page 260. Table of contents: You can create an interactive table of contents as the first page of the PDF. For more information on tables of contents, including examples and instructions, see Including interactive tables of contents in PDFs, page 243. has multiple A table of contents can be created only if a documentmulti-layout layouts and/or is grouped. For more information on documents, see Creating multi-layout documents, page 714. For information on grouping a document, see Grouping records in a document, page 260. After you switch to PDF View (for instructions, see To open a document in PDF View, page 4), you can then refine the document to ensure that it looks exactly the way that you want it. For example, you can resize or move controls as needed. For instructions, see Arranging controls on a document, page 136. For instructions to print a document, see the MicroStrategy Document Analysis Guide or the Desktop Help. the PDF which You can openedit document as a whilein a separateawindow, it will allows you to the document referring to copy as display as a PDF. For instructions, see Opening a PDF in a separate window: Exporting a document as a PDF, page 4.
Formatting Documents
1 Open the document using the Document Editor in Design View. 2 Select the section to print on a new page. To do this, click the section or select it from the drop-down list on the top of the Property List panel. 3 In the Property List panel, locate the Page Break section and from the Force New Page drop-down list, select how you want the page break to occur: Before section causes the page break to occur before the section begins. After section causes the page break to occur at the end of the section.
229
Formatting Documents
Before and after section inserts a page break both before the section and after it.
a page Selecting None does not insert section.break. The section continues immediately after the previous
For more information on these codes, see Displaying document and dataset report information: Auto text codes, page 59.
To add page numbers to a document
1 Open the document using the Document Editor in Design View. 2 Expand the section where you want the page number, if it is not already expanded. For example, to expand the Page Footer section, click the plus sign next to it. 3 Click in the section to specify the location of the page number. 4 Select Auto Text from the Insert menu, and then choose Page Number (or Total Pages).
Formatting Documents
Type a space, then of, then another space. Select Auto Text from the Insert menu, and then choose Total Pages. Press the Enter key.
1 Open the document in Design View in the Document Editor. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 From the File menu, select Page Setup. The Page Setup dialog box opens. 4 Click Page. 5 To change the paper size, select the new size, such as Letter or Legal, from the Paper Size drop-down list.
Changing this property alters the values for both Page Width and Page Height.
231
Formatting Documents
If you select Legal and then export this document to PDF, it will not print out at the legal paper size. When you print the document from the PDF, select Choose paper source by PDF page size in the Print dialog box.
6 You can change the Width or Height of the page. over The Width and Height settings take priority Widththe Paper Size setting. Therefore, if you increase either the and Height beyond the Paper Size setting, Paper Size automatically adjusts accordingly. 7 You can change the paper Orientation from Portrait (the default) to Landscape.
Changing the Orientation alters the values for both Width and Height.
8 By default, the document is scaled to 100% (full size). You can change this by doing one of the following: To increase or decrease the scale of the document, select Adjust to and then enter the scale percentage. To scale the document to a specific number of pages, select Fit to, and then set the number of pages wide, for horizontal scaling, and tall, for vertical scaling. Fit to ensures that the document fits within the parameters, but does not increase the size of the document. If the document is already smaller than the set width and height, it will not become expanded. If the document is grouped, you can combine scaling with the Page break between groups option in the Grouping Properties dialog box. This fits each group onto a single page, and helps when the document is too big to fit on a single page. For examples of this setting in use, see Printing a document on a single page, page 233. 9 To apply the scaling to the Page Header and Footer sections, select the Scale page header/footer check box. If the check box is cleared (the default), the contents of the Page Header and Footer sections are printed at the size specified in the Property List, regardless of the scaling percentage applied to the rest of the document.
Formatting Documents
10 Horizontal fit specifies how to handle content that does not fit on a single horizontal page. This is also known as overflow. The overflow controls can be displayed and printed either left to right on multiple pages, or immediately below each other on the same page. By default, the overflow is printed on the next page. To print the overflow on the same page, select Below from the Overflow drop-down list. For more information on horizontal fit, including examples, see Controlling horizontal overflow, page 235. 11 To define the page margins, click Margins, then do any number of the following: To change the distance between the top of the page and the top of the document or the top of the border, type the new measurement in Top. To change the distance between the bottom of the page and the bottom of the document or the bottom of the border, type the new measurement in Bottom. To change the distance between the left side of the page and the left side of the document or the left edge of the border, type the new measurement in Left. To change the distance between the right side of the page and the right side of the document or the right edge of the border, type the new measurement in Right.
233
Formatting Documents
dialog box. This option fits each group onto a single page, and helps when the document is too big to fit on a single page. For example, a document contains nine columns of data and is grouped by Country. Printed at full size, the document is two pages across and two pages long, for a total of four pages. The document can be scaled to fit on a single page, as shown below:
You can also use the Page break between groups option to apply Fit to Page scaling to separate groups instead of applying it to the whole document. For example, a document grouped by region contains nine columns. Each region is two pages in width and two pages in length, but should print on a single page. The Page break between groups option forces a page break between each region. Since the document cannot then be
Formatting Documents
fit on a single page, the page scaling is applied to each group. Shown below are the first two pages of the document.
235
Formatting Documents
For example, the following document is wider than the page size, so by default it is split onto two pages, as shown below:
Formatting Documents
If you want to see the figures for each row on the same page, change the overflow setting to Below. The part of the section that would have printed on page two is now printed on page one, directly beneath the first part:
1 Open the document using the Document Editor in Design View. 2 Select Page Setup from the File menu. The Page Setup dialog box opens. 3 Select Page. 4 In the Horizontal fit area, select an Overflow setting from the drop-down list: Next page: horizontal overflow is printed on the next page Below: horizontal overflow is printed on the same page
237
Formatting Documents
Embedding fonts allows you to: Use language fonts other than Simplified Chinese, Traditional Chinese, English, Japanese, Korean, and Western European in PDFs Provide a true Unicode environment, where one document contains different languages if the only languages Font embedding is not requiredChinese, Japanese, orused are and Simplified Chinese, Traditional Korean, the matching language fonts are used instead of a Unicode font. Create PDFs containing Simplified Chinese, Traditional Chinese, Japanese, or Korean characters for any machine, even one without the corresponding Acrobat Reader language pack cannot display bookmarks in the correct language Acrobat Readercorresponding language pack is installed on the font unless the users machine. The remainder of the PDF will display and print the languages correctly. This Acrobat Reader requirement applies to all languages other than English and Western European. Create truly portable PDFs to email and to publish on the Web, even if you do not have control over the machines that will display and print the PDFs MicroStrategy Web to view the For a must be installed onuser Intelligenceembedded fonts, the a fonts the Server machine. For Desktop user to be able to view the embedded fonts, the fonts must be installed on the Desktop machine as well as the Intelligence Server machine. The disadvantages of embedding fonts include: A larger PDF, because the file now includes extra font data and encoding tables. Additionally, even single-byte languages use two bytes. A longer generation time for the PDF, since the file is larger and extra processing is needed to embed the fonts. A larger memory footprint related to the number of fonts, the number of embedded characters, and the size of the PDF output.
Fonts must be installed on the Desktop machine to ensure that the document is rendered correctly when creating and editing the document. The Embed fonts in PDF setting ensures that if the fonts used in the document are available on the machine that generates the PDF, the fonts are embedded in the PDF. When you execute a document in Desktop, the PDF is generated by
Formatting Documents
that client machine. When you execute a document in MicroStrategy Web, the PDF is generated by the Intelligence Server machine. If you edit a document containing embedded fonts on a machine that does not have those fonts installed, a Windows default font is displayed instead. For example, this scenario can occur when you create a document and embed fonts for Japanese. In this case, the Japanese fonts are installed on that machine and the Intelligence Server used for the project. Another user views the document on a different machine that does not have Japanese fonts. The document displays correctly because you embedded the fonts. If that user edits the document, the Japanese characters are displayed in the font that Windows selects as the closest match to the missing font. If this occurs, do not change the font selections, which are set to blank automatically, so that they will continue to display correctly in the PDF. The solution is to install the font on any machine that is used to edit the document.
To embed fonts in a PDF
This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout
documents, see Creating multi-layout documents, page 714. 1 From the Format menu, select Document Properties. The Document Properties dialog box opens. 2 Click Export. 3 In the PDF area, select the Embed fonts in PDF check box. 4 Click OK to return to the document. When the PDF is generated (see Printing a document, page 4), the fonts are embedded in the PDF.
239
Formatting Documents
However, vector graphs do not support: Background patterns (only the background color of the pattern is used) Rectangular gradients (linear and circular gradients are supported; rectangular gradients are converted to circular gradients) Texture and picture backgrounds (a solid white background is applied)
To allow graphs to use these options, change the graph resolution to bitmaps. This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout documents, see Creating multi-layout documents, page 714.
To change the graph resolution in PDFs
1 From the Format menu, select Document Properties. The Document Properties dialog box opens. 2 Click Export. 3 In the PDF area, select the Use bitmaps for graphs check box. 4 If you want to use a lower resolution for the bitmap graphs, select the Use draft quality check box. Draft quality: Lowers the graph resolution, thus reducing the size of the PDF Impacts the quality of printed graphs Generally does not affect the quality of on-screen graph images
Formatting Documents
of contents as a navigation aid. Bookmarks are created only when a document is grouped or contains multiple layouts. In PDF View, a link is included for each element of each grouping field in the document. A user can navigate between layouts using the layout tabs. When the document is exported to a PDF, the grouping bookmarks are displayed, as well as a bookmark for each layout.
If a document is not grouped or does not have multiple layouts, bookmarks cannot be created. For instructions to group a document, see Grouping records in a document, page 260. For instructions on creating multiple layouts, see Creating multi-layout documents, page 714. For example, a document is grouped by Region and then Employee. The PDF is created with bookmarks, as shown in the following sample.
By default, bookmarks are created for all grouped documents and all multi-layout documents, and the bookmark panel is automatically shown when the PDF is viewed. You can choose to hide the bookmark panel initially (it is still available by clicking the Bookmarks icon in PDF View) to
241
Formatting Documents
maximize the amount of space for the document. You can also choose to not generate the bookmarks if, for example, the PDF includes an interactive table of contents, which is different from bookmarks. For more information on creating a table of contents, see Including interactive tables of contents in PDFs, page 243. For information on how bookmarks and tables of contents work together, see Bookmarks and tables of contents, page 247. information on using bookmarks For moredocumentation for Acrobat Reader.in PDFs, consult the product
To not generate bookmarks in a PDF
This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout documents, see Creating multi-layout documents, page 714. 1 From the Format menu, select Document Properties. The Document Properties dialog box opens. 2 Click Export. 3 In the PDF area, clear the Include bookmarks in PDF check box. 4 Click OK to return to the document. When the PDF is viewed (see Formatting a document for MicroStrategy Web, page 248), bookmarks are not displayed.
To hide bookmarks in a PDF
This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout documents, see Creating multi-layout documents, page 714. 1 From the Format menu, select Document Properties. The Document Properties dialog box opens. 1 Click Export. 2 In the PDF area, clear the Show bookmarks in PDF check box. 3 Click OK to return to the document. When the PDF is viewed (see Formatting a document for MicroStrategy Web, page 248), the bookmark panel is not automatically displayed.
242 Formatting a document for printing
Formatting Documents
interact with a the document a To fully either Desktop table of contents, exportFor instructionstoand PDF, in or MicroStrategy Web. more information on exporting to PDF, see Opening a PDF in a separate window: Exporting a document as a PDF, page 4.
243
Formatting Documents
below. A user can click either a region (such as Central) or a page number to jump to that region in the PDF.
Notice that the page number is displayed as the Roman numeral i (in the toolbar at the top of the image), while the data begins on page 1. The table of contents is inserted at the beginning of the document and is not included in the page numbering of the document itself. The table of contents shown in the above example has been formatted. The text Table of Contents was added as the title. If you do not add a title, the table of contents starts at the top of the page, without a title, as shown below:
Although this is the same document as shown in the previous sample, the font size, color, and type are different. This is because the font in the first sample was formatted, while the default formatting settings were used for the second sample.
Formatting Documents
This document contains a table of contents. By default, it is displayed on the first page of the PDF, as shown below:
Each of the three layouts is listed in the table of contents. Change the table of contents to display before the second layout, Regional Revenue (2). Now the PDF displays the Revenue by Category (1) layout, followed by the table of contents shown below, which contains information for the last two layouts only:
Changing the location of the table of contents is useful when you want to include a cover page before the table of contents.
245
Formatting Documents
Formatting Documents
If a PDF includes a table of contents, the bookmarks may be redundant. You can prevent bookmarks from being generated for the PDF. For instructions, see To not generate bookmarks in a PDF, page 242.
This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout documents, see Creating multi-layout documents, page 714. 1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Click Table of Contents. 4 Select the Include Table of Contents check box.
247
Formatting Documents
5 If the document contains multiple layouts, the Before layout drop-down list is available. By default, the table of contents is displayed before the first layout, but you can select a different layout from the list. setting is useful Thistable of contents.when you want to include a cover page before the 6 To display a title for the table of contents, type the text in the Title field. If the Title field is blank, the table of contents starts at the top of the page. 7 To format the font, click Format. The Font dialog box opens. You can select the font, size, color, and so on. Click OK when you have made your selections. Your selected font formatting is shown in the preview area below the Format button, and is applied to the entire table of contents. For details on any option, click Help. 8 By default, tab leaders are shown. Tab leaders are a series of dots connecting the entry with the page number. To remove tab leaders, clear the Show tab leader check box. 9 Click OK to return to the document. 10 To view the PDF, do the following: a Click PDF View on the toolbar. b From the File menu, select Export to PDF. The PDF opens in another instance of the Acrobat Reader.
Formatting Documents
HTML View, Flash View, and PDF View all preview the results of the document. However, you cannot print the document in HTML View or Flash View. To print the document, use PDF View. For instructions, see Printing a document, page 4. For instructions to switch to Flash View or HTML View, see Switching to HTML View or Flash View, page 7. For instructions to resize and move controls, see Arranging controls on a document, page 136.
1 Open the document in Design View in the Document Editor in Desktop. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 In the Available display modes list on the Document tab, select the check boxes for each mode that this document should display in. Clear the check box for any mode that should not available. 4 Select the mode in which the document initially opens from the Run by default as drop-down list. If you did not select the check box for this display mode in the step above, the check box is automatically selected. 5 Click OK to return to the document.
249
Formatting Documents
If the font used for one of these features is not embedded, anti-alias is not used or the text is displayed horizontally. The font definitions, such as Tahoma and ComicSans, are contained in SWF files. For example, these files can include the font types that support vertical text and font anti-aliasing in Flash Mode. For examples of vertical text, see Displaying text vertically, page 171.
To embed fonts for Flash Mode
in C:\Program Before you begin, save the SWF filesor the directory in Files\ MicroStrategy\Web ASPx\swf which the dashboardviewer.swf file is located. 1 Open the document in Design View in the Document Editor in Desktop. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Flash from the list of categories on the left. 4 In the Embed the following fonts field, enter the relative path and the name of the SWF file, such as ../swf/Tahoma.swf. Separate multiple files with a comma. 5 Click OK to return to the document.
Formatting Documents
Export a dashboard to a Flash file, so that users can view the Flash content and interact with it off-line, without using MicroStrategy. The Flash file is a fully interactive, stand-alone Flash dashboard. For more information and instructions to export documents to Flash files, see the MicroStrategy Document Analysis Guide.
Export the document to a PDF file, and keep the file open in a separate window outside of the Document Editor. You can then return to the Document Editor, switch to Design View, and edit the document, while keeping a copy of the PDF open to refer to. For instructions to open the PDF in a separate window, see Opening a PDF in a separate window: Exporting a document as a PDF, page 4.
Open the current document in a separate browser window outside of the Document Editor. You can then return to the Document Editor, switch to Design View, and edit the document, while referring to a copy of the document as it looks in a browser. For instructions to export documents to HTML, see Opening a document in a separate browser window: Exporting a document to HTML, page 7.
Before you can export a document, you must select the formats that the document can be exported to. For instructions, see Selecting available export formats, page 252. For export to Excel, HTML, and PDF, you can specify default exporting options, or you can allow users to be prompted to make these choices. These options are described below: If your document is grouped, you can choose to export the entire document or only the selected group element. Page-by allows you to view the document by a selected group element. For information on grouping, including examples, see Grouping records in a document, page 260; for more information on page-by, including examples, see Using page-by on a document, page 286. If your document contains multiple layouts, you can choose to export the entire document or only the current layout. For more information on how layouts are exported to Excel, see Exporting multi-layout documents, page 727.
For detailed instructions, see Specifying default export options, page 253. a that contains multi-code Before you export asdocumentand Japanese, to PDF, the page for translations, such English fonts labels, Grid/Graph objects, and so on should be set to a Unicode font
251
Formatting Documents
such as Arial Unicode MS. This allows all characters to be shown by default when a user changes the metadata language.
This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout
documents, see Creating multi-layout documents, page 714. 1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Document. 4 In the Available Export Formats list, select the check box for each export format to enable: PDF Excel HTML Flash
Formatting Documents
This procedure affects the entire document, including all layouts of a multi-layout document. For more information on multi-layout
documents, see Creating multi-layout documents, page 714. 1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Export. 4 For a multi-layout document, select whether to Export: All layouts, which exports all the layouts in the document (If the document will be viewed on a Kindle or Nook, select All layouts so that the Kindle or Nook user can see all the data.) Current layout, which exports only the layout being viewed
Formatting a document for export
253
Formatting Documents
5 For a grouped document, select whether to export the entire document or only the selected group element: To export the entire document, select the Expand page-by check box. (If the document will be viewed on a Kindle, select Expand page-by so that the Kindle user can see all the data.) To export only the selected group element, clear the Expand page-by check box.
6 Select whether to prompt the user to choose what to export. To prompt the user, select the Prompt user on export check box. The prompts allow the user to select whether to export all layouts or just the current layout of a multi-layout document, and whether to export the entire document or only the selected group element of a grouped document.
user of If Promptuser is on export is selected, but eitherandthe following is true, the not prompted, and the Export Expand page-by properties set above are used: The document has one layout and no grouping. The document has one layout, is grouped, and the page-by selections are set to all. To disable prompting, clear the Prompt user on export check box. The Export and Expand page-by properties set above are used when the document is exported. To prompt the user, select the Prompt user on export check box.
The following steps apply to documents exported to Excel only. 7 To embed images so that a user can see the image when he opens the Excel file on another computer that does not have a network connection, select the Embed images check box.
Formatting Documents
The following steps apply to documents exported to PDF only. 9 Select whether to Include bookmarks in the PDF. Bookmarks are generated for each element of each grouping field in the document, creating a table of contents for the PDF. If the document is not grouped, no bookmarks are generated. For more information on bookmarks, including examples, see Including or hiding bookmarks in PDFs, page 240. 10 If you include bookmarks, select the Show bookmarks in PDF check box, so that the bookmarks are displayed when the PDF is viewed. If the check box is cleared, the bookmarks can still be generated but they are not displayed automatically when the PDF opens. 11 Select whether to Embed fonts in the PDF, which determines whether the original fonts chosen in the Document Editor are used to display and print the PDF, even on machines that do not have those fonts installed. This ensures the portability of the PDF. For more information on this setting, including advantages and disadvantages, Font embedding in PDFs, page 237. fonts must on the machine to ensure Thedocument isbe installedcorrectlyDesktopcreating and editing that the rendered when the document. The setting above ensures that if the fonts used in the document are available on the machine that generates the PDF, the fonts are embedded in the PDF. When you execute a document on Desktop, the PDF is generated by that client machine. When you execute a document in MicroStrategy Web, the PDF is generated by the Intelligence Server machine. 12 By default, graphs are generated using vector graphs, which are smaller than bitmaps and reduce the size of the PDF. They also improve the quality of printed graphs. Select the Use bitmaps for graphs check box to generate graphs using bitmaps instead. For more information, including when to use bitmaps or vector graphs, see Changing graph resolution in PDFs, page 239. 13 If you use bitmaps, you can select whether to Use draft quality, which determines whether bitmap graphs are generated using a lower resolution, thus reducing the size of the PDF. The quality of the graph images on the screen is generally not affected, but the quality of the printed graphs is impacted.
255
Formatting Documents
14 Click OK to save your selections and return to the document. specify how break between If the document is grouped, you caneach page in atoseparate Excel groups. For example, you can place worksheet in the same Excel workbook. For instructions and samples, see Specifying that groups are exported to separate Excel worksheets, page 283.
Use live Excel charts or Use embedded bitmaps for the graph format. Live Excel charts ensure a smaller export size and integrate fully with Excel. However, they support fewer graph properties than MicroStrategy does. The following graphs appear differently in Excel than in MicroStrategy:
All 3D graphs Box Plot Bubble Funnel Gantt Gauge Hi Low Histogram Horizontal Area Horizontal Bar Horizontal Line
Formatting Documents
These settings work together to determine how images are displayed in Excel. To display embedded graphs:
Set Graph format to Use embedded bitmaps. The Embed images check box does not affect whether embedded graphs are displayed.
Set Graph format to Use live Excel charts and clear the Embed images check box.
257
Formatting Documents
If this occurs, you can allow Excel to dynamically and automatically resize. The result is shown below, where the two rows are now tall enough to display the full text.
By default, the height of all rows are the same, to conserve the same layout that you created in the document. To modify the behavior, change the Automatically fit rows property to True. This property applies to a single document section.
To allow Excel to automatically change row height for a section
1 Open a document in the Document Editor. 2 In the Layout area, select the document section to modify. 3 From the Format menu, select Properties. The Properties dialog box opens. 4 Click the Layout tab. 5 Select the Automatically fit rows check box. 6 Click OK to return to the document.
3
3.
Introduction
This section describes procedures for grouping and sorting records in a MicroStrategy Report Services document. When you group records in a document, you set up the documents hierarchy and therefore its inherent sort order. You can then choose to sort a group in either ascending or descending order. You can also choose how to sort the detail records of the document. You can use page-by to interactively display groups on separate pages in PDF View. This chapter explains all of these concepts with suitable examples. Grouping records in a document, page 260 Using page-by on a document, page 286 Sorting records in a document, page 290
259
To display the Grouping panel, select Grouping from the View menu.
You can select attributes, consolidations, and custom groups as grouping fields.
Each element of each grouping field automatically becomes a bookmark in the PDF. You can turn off automatic generation of bookmarks. For more information, see Including or hiding bookmarks in PDFs, page 240. You group each layout of a multi-layout document independently of other layouts. For more information on multi-layout documents, including which properties apply to the document as a whole or to individual layouts, see Creating multi-layout documents, page 714.
If you just drag and drop all the dataset objects to the Layout area, in the order they appear and add headings to label the controls, the document looks like the following:
If you want the document to be grouped first by Region, and then by Year within Region, first ensure that the Grouping panel is displayed. Then drag Region from the Datasets pane onto the Grouping panel. Next, drag and drop Year onto the Grouping panel.
261
With these changes, the document groups first by Region, and then by Year, as shown in the following figure:
The ascending sort order of both Region and Year come from the default sort order of these attributes. You can change the sort order using the Sorting dialog box. For details on this, see Sorting records in a document, page 290.
For more information on the default sort of attributes, see the MicroStrategy Advanced Reporting Guide.
Changing the grouping order in a document
If you want the grouping order in the document to be different, you can change it by moving a field to the left or the right in the Grouping panel. Moving a grouping field can also affect whether the group is displayed vertically (Detail sections are displayed below the Group Header) or horizontally (Detail sections are displayed next to the Group Header, running horizontally across the page). All groups to the right of a horizontally displayed group must be horizontal; a document cannot contain a horizontally displayed group followed by a vertically displayed group. For the rules that govern this behavior, see Changing the grouping order of horizontally displayed groups, page 277.
You can change the order only when the document is grouped by more than one field.
1 Open a document from the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 If the Grouping panel is not displayed, from the View menu, select Grouping. It displays above the Layout area. 4 In the Grouping panel, do one of the following: Right-click the grouping field to move. Select Move Right or Move Left. Drag the field right or left. A placeholder indicates where it will be placed as you drag it. Drop the field where you want it.
When you change the grouping order, the header and footer sections of the corresponding attribute also change positions. For example, in the following figure, the document is grouped by Category, and then Region. The Category Header precedes the Region Header.
Now, when the grouping fields are switched, the Region Header precedes the Category Header, as shown below:
263
The document above shows the end result of group totals. Other types of totals can also be displayed for users, including grand totals. For example, a document displays a Grid/Graph containing the Year attribute and Revenue metric. The document is grouped by Year. In PDF View a user can select a year and display a Grid/Graph with the data for that year, as shown below:
Alternatively, the user can display a single Grid/Graph for all the years, by selecting All, as shown below:
for more Page-by allows you to display the various yearsaor all years; page 286. information on page-by, see Using page-by on document, However, the user needs the total of all the years in the Grid/Graph. To do this, allow the Year group to show a Total option in the PDF View. You do not need to edit the report or the Grid/Graph. In PDF View, a Total option is added to the page-by. When a user selects it, the total revenue of all the years is displayed, as shown below:
Now when a user selects All in PDF View, all the years and the total are displayed, as shown below:
If you disable page-by, the user cannot change the page-by from the All option in PDF View. Therefore the document always displays as shown above, with all the years and the group total. For instructions on disabling page-by, see Disabling page-by, page 289.
265
To disable page-by, define the Page-by Mode as No Page-by (All Only), which explicitly indicates that the only page-by option in PDF View is All. For instructions on disabling page-by, see Disabling page-by, page 289.
To show totals for a group
1 Open a document in the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 If the Grouping panel is not displayed, from the View menu, select Grouping. It displays above the Layout area. 4 In the Grouping panel, right-click the grouping field to total, and select Grouping Properties. The Grouping Properties dialog box opens. 5 Select the Show option for Total check box. 6 Click OK.
of the document The middle portionby the dotted line.has been removed to conserve space, as indicated
267
If you sort region in descending order, Web appears at the top but Total remains at the end of the document, as shown below:
For information on sorting a group, including instructions, see Sorting records in a document, page 290.
Higher-level groups are those groups to the left of the current group. If any of the higher-level groups is set to Total, then that object is excluded from the calculations on the Grid/Graph. For example, a document is grouped by: Year
Region Category
A Grid/Graph containing the Income Bracket attribute and the Revenue metric is placed in the Category Group Header section. All the groups have group totals enabled. In PDF View, set: Year = 2006 Region = South Category = Books
The revenue values in the Grid/Graph are calculated for the various income brackets in the South region in 2006 for books, as shown below.
Change Category to Total. Notice in the document sample below that the revenue amounts have increased. This is because all categories, not just books, are now included in the revenue calculation.
269
Add Category to the Grid/Graph and re-execute the document. The revenue values are the same as in the previous example, and Category displays as Total in the Grid/Graph, as shown below.
Remove Category from the Grid/Graph. In PDF View, set Year to Total. Now the revenue values in the Grid/Graph are calculated for the various income brackets in the South region, as shown below. All years and all categories are included in the calculations. If the Grid/Graph displayed Year or Category, their page-by selections would show as Total.
If the Grid/Graph is moved from the Category Group Header to the Region Header, the metric values are calculated differently. When Region is set to All, you cannot change Category. The revenue values are calculated for the
various income brackets in 2006, as shown below. All regions and all categories are included in the calculations.
The Region has been added to help identify the different Grid/Graphs.
How group totals impact metric calculation in text fields
Metric values in a Group Header or Group Footer are calculated at the level of all higher-level groups. Higher-level groups are those groups to the left of the current group (the group creating the grouping section). The document in this example contains text fields and metrics, and is grouped by: Year Region Category
All the groups have group totals enabled. The Year Header section displays the year selected in the page-by, the Region Header section displays the
271
region, and the Category Header displays the category and the Revenue metric. The image below shows the document in Design View.
The document, as shown below, now displays the revenue for each category, as well as a total (because group totals are enabled). For the group total, the dynamic text field for Category is replaced by the word Total. For each category, the revenue is calculated for the selected year and selected region. For the category total, the revenue is calculated at the region level, for the selected year (that is, all categories for South in 2006).
Switch Category to Total. Now only one line item, the category total, is displayed. The revenue includes all categories for only the South region and
2006. The total shown below is the same as the total in the previous document sample.
Now, change Year to Total and Category to All. The revenue calculated is for the South, for all years, and for each category. Notice that the revenue amount for category total is much higher than the previous sample, because it contains all years, not just 2006.
These examples demonstrate that metric values in a Group Header or Group Footer are calculated at the level of all higher-level groups. Higher-level groups are those groups to the left of the current group (the group creating the grouping section).
273
grouped by Year. The Detail section includes revenue and profit information by region. Displaying the group vertically yields the following document:
However, for certain documents, displaying and printing the group horizontally is desired. That is, the detail sections are displayed next to the Group Header, running horizontally across the page. The example given above, if displayed horizontally, shows a row containing the year, and then, for each region, the Region, Revenue, and Profit. While this is a simple example, it quickly demonstrates the concept. In PDF View, the document displays as shown below:
In Design View, the document with horizontal display looks like the following:
Notice that the sections within the group are turned sideways and listed horizontally, across the page. These horizontally rendered sections are the Group Header and Footer (in this case, Year), the Detail Header, the Detail, and the Detail Footer. They are displayed in the same order as when shown vertically. The other sections are still listed vertically (Page and Document sections). You can also change the orientation of only the lower level sections (that is, the detail sections). In the following sample, the Detail Header, Detail, and
Detail Footer are displayed horizontally while the Group Header and Group Footer are displayed vertically:
You can also display the Detail Header and Detail Footer vertically while keeping the Detail section horizontal. In fact, a document does not have to be grouped to allow these sections to be displayed horizontally. For information on displaying sections horizontally without groups, see Displaying sections horizontally, page 186. have additional Horizontally displayed sectionsinformation, seeproperties to control the horizontal width. For more Changing the horizontal width of a section, page 191.
To display a group horizontally
This procedure assumes that the document is already grouped. 1 Open a document in the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 If the Grouping panel is not displayed, from the View menu, select Grouping. It displays above the Layout area. 4 In the Grouping panel, right-click the grouping field to display and print horizontally, and select Grouping Properties. The Grouping Properties dialog box opens. 5 Do one of the following: To display the Group Header, Group Footer, Detail Header, Detail, and Detail Footer sections horizontally, select the Render group horizontally check box. To display only the Detail Header, Detail, and Detail Footer sections horizontally, select the Render Lower Level Sections Horizontally check box.
6 Click OK.
275
For example, continuing with the previous example, add Region to the right of Year in the Grouping panel. The Region Header and Region Footer sections are displayed horizontally, as shown below:
If you add Region to the left of Year instead, the Region Header and Region Footer are displayed vertically, as shown below:
If you then add Category between Region and Year in the Grouping panel, Category is displayed vertically. This occurs because Category is to the left of the horizontally displayed group.
277
If you move a horizontally displayed group, its orientation depends on the orientation of the groups to its right. The following rules determine whether it remains horizontal or changes to vertical: If you move a horizontally displayed group to the left,
And if all groups to the right are horizontal, Then the moved group remains horizontal
And if at least one group to the right is vertical, Then the moved group is rendered vertically
All groups to the right must be horizontal by definition, So the moved group remains horizontal
If you move a vertically displayed group, its orientation depends on the orientation of the groups to its left. The following rules determine whether it remains vertical or changes to horizontal: If you move a vertically displayed group to the right,
And if all groups to the left are vertical, Then the moved group remains vertical
And if at least one group to the left is horizontal, Then the moved group is displayed horizontally
All groups to the left must be vertical by definition, So the moved group is displayed vertically
For example, a document is grouped by Year, Region, and Category, left to right. Year is displayed vertically; Region and Category are displayed horizontally, as depicted in the following table:
Year Year Region Category Region Category
You move Category all the way to the left, past Year. Category becomes vertical, because a group to the right (Year) is vertical. The result is shown below.
Category Category Year Region Year Region
You move Year to the right, after Region. Year becomes horizontal, because all groups to the right of a horizontal group must be horizontal.
Category Category Region Year Region Year
You move Region to the left, before Category. Region becomes vertical, because a group to the right (Category) is vertical.
Region Region Category Year Category Year
more information changing For grouping order in ondocument, the grouping order, see Changing the a page 262.
279
By default, a Group Header section and a Group Footer section are displayed for each grouping item.
To hide a Group Header or Group Footer section
1 Open a document from the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to group. 3 In the Grouping panel, right-click the grouping field to modify, and select Grouping Properties. The Grouping Properties dialog box opens. 4 To hide the Group Header section, clear the Show Header check box. 5 To hide the Group Footer section, clear the Show Footer check box. 6 Select the Keep group together check box. 7 Click OK.
Properties related to pagination apply only to PDF View. You can also add page breaks between sections. For more information, see Adding a page break to a document, page 229.
1 Open a document from the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 In the Grouping panel, right-click the grouping field for which to insert a page break. Select Grouping Properties. The Grouping Properties dialog box opens. 4 Select the Page break between groups check box. 5 Click OK to return to the Document Editor.
This also changes the value ofisthe auto text code for total pagepages in numbers {&NPAGES}, which normally the total number of
the document, to the number of pages in that groups section. For example, suppose you have an eight-page document with no grouping, the {&NPAGES} code resolves to 8 (page 1 of 8, 2 of 8 ... 8 of 8). But if you group the document by Region, then page break and restart numbering for it, the {&NPAGES} code resolves to the number of pages in each Regions individual section. So, if the Region has the following sections, the pages in each section are numbered as follows: Southeast 2 (page 1 of 2, 2 of 2) Mid-Atlantic 2 (1 of 2, 2 of 2) Northwest 3 (1 of 3, 2 of 3, 3 of 3) Northeast 1 (1 of 1)
281
1 Open a document from the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 In the Grouping panel, right-click the field that you want to restart numbering and select Grouping Properties. The Grouping Properties dialog box opens. 4 Select the Page break between groups and the Restart page numbering check boxes. the Page break You must select the Restart pagebetween groups check box before selecting numbering check box. 5 Click OK.
1 Open a document from the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 In the Layout area, select the Group Header section for the group to repeat. 4 Do one of the following: In the Property List, under the Page break section, from the Repeat on each page drop-down list, select True.
From the Format menu, select Properties. On the Layout tab, select the Repeat on each page check box.
5 Press ENTER.
1 Open a document in the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 In the Grouping panel, right-click the grouping field that you wish to keep together, and select Grouping Properties. The Grouping Properties dialog box opens. 4 Select the Keep group together check box. 5 Click OK.
283
For example, a document is grouped by Region. When it is exported to Excel, all the regions are included in the same worksheet, as shown below. Notice that the Excel workbook contains only one tab, named Regional grouping (the document name).
If you specify instead that each group is exported to a separate worksheet, the same document looks like the following after being exported to Excel:
Notice that the displayed worksheet lists only those employees in the Central region. Each region has its own tab, labeled with the document name and a number (1 of 8, 2 of 8, and so on).
In the document, add Call Center to the grouping panel, to the right of Region. When you export the document to Excel, each Call Center is placed in its own worksheet, as shown below:
Notice that the Excel file contains 15 tabs now, one for each Call Center. If you change the grouping properties of Region so that regions are not exported to separate worksheets, the exported file looks like the following:
Now only one worksheet is created. Why? When a group is exported to a single worksheet, any of its sub-groups (that is, groups to the right of it in the Grouping panel) must also be exported to a single worksheet.
285
assumes that This procedurecreate a group,you have already created aagroup. For instructions to see Grouping records in document, page 260. 1 Open a document in the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout that you want to modify. 3 If the Grouping panel is not displayed, select Grouping from the View menu. 4 In the Grouping panel, right-click the grouping item and select Grouping Properties. The Grouping Properties dialog box opens. 5 Select the Sheet break between groups check box. there is a group to This option is not available ifthe following is true:the left of the selected group and either of The group to the left of the selected group is not defined to export to separate Excel worksheets. The group to the left of the selected group is defined to display horizontally.
6 Click OK to return to the Document Editor. To export the document to Excel, click the PDF icon in the toolbar to switch to PDF View, and then select Export to Excel from the File menu. For more detailed instructions on exporting to Excel, see the MicroStrategy Document Analysis Guide.
of the original document. By allowing the use of different criteria to show information, pages provide an added level of data manipulation and display. For example, a document displays revenue and profit data and is grouped by Region and then Year. By default, both Region and Year are included in the page. In PDF View, you can select a specific region and year to display the data for the selected region and year combination. The following sample shows only the data for the Northeast region in 2002.
287
You could also see the data for all years for a particular region or all data in the document, regardless of region or year. The following sample shows all the data in the document.
consolidations, Since you can group on attributes,by metrics. and custom groups, but not metrics, you cannot page If you display totals for a group, an option named Total is displayed in the drop-down menu for that group in PDF View. For examples of group totals and instructions on displaying them, see Showing totals for a group, page 264.
You can control how the page-by is exported to Excel or PDF, by choosing whether to export only the current page-by selection or the whole document. For more information, see Formatting a document for export, page 250.
Disabling page-by
By default, page-by is enabled for all the grouping fields in the document. If you disable page-by for a particular grouping field, any fields to the right of it in the Grouping panel are also disabled. You can also enable page-by while preventing the simultaneous display of all the elements, which is useful for grouping fields that have many elements. Procedures for these actions are detailed below. If you disable page-by for a group that has totals, the group total is still shown but you cannot display totals only. See Showing totals for a group, page 264 for an example of group totals.
To disable page-by on a document
This procedure assumes that the document contains at least one grouping field. 1 Open a document in the Document Editor. 2 If the Grouping panel is not displayed, select Grouping from the View menu. The Grouping panel opens above the Layout area. 3 In the Grouping panel, right-click the grouping field on which to disable page-by. Select Grouping Properties. The Grouping Properties dialog box for that grouping field opens. 4 Select No Page-By (All Only) from the Page-By mode drop-down list. to the right of Any grouping fields also disabled. the selected field in the Grouping panel are 5 Click OK to return to the Document Editor. When the document is executed in PDF View, all the elements of the group are displayed.
289
This procedure assumes that the document contains at least one grouping field. 1 Open a document in the Document Editor. 2 If the Grouping panel is not displayed, select Grouping from the View menu. The Grouping panel opens above the Layout area. 3 In the Grouping panel, right-click the grouping field and select Grouping Properties. The Grouping Properties dialog box for that grouping field opens. 4 Select Page-By (Single Element Only) from the Page-By mode drop-down list. 5 Click OK to return to the Document Editor. When the document is executed in PDF View, you cannot select the All option, which shows all the elements for this group simultaneously.
You can sort on objects from the grouping and sorting dataset only.
You can sort each layout of a multi-layout document independently. For more information on multi-layout documents, including which properties apply to the document as a whole or to individual layouts, see Creating multi-layout documents, page 714.
For example, you may want to sort the information in the documents Detail section. If you have a document grouped by Region and Year, in the detail section, you may want to sort the records by Revenue in descending order. When sorting by a custom group, you can choose from the following options: Use the default sort property of the custom group. Select the position of the components of the custom group, that is, whether the element name or its individual components are displayed first. However, the display option of the custom group must be set as Show only the individual items with in the element and also expand these individual items if possible or Show element names, individual items within this element and also expand these individual items if possible. For more information on these settings, refer to the Desktop Help.
1 Open a document using the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to modify. 3 From the Data menu, select Sorting. The Sorting dialog box opens, with all grouping items listed in the Grouping section. 4 To change the Criteria of a grouping item, click in the appropriate cell. A drop-down list appears. From the list, select the criteria to sort by. If the object in the currently defined sorting list is an attribute, select the attribute form (such as ID or description) to sort on. If the object in the currently defined sorting list is a custom group, select from the following options: Keep Group Structure, which indicates that the custom group is not sorted (the default) Sort on Attribute ID Inherit Attribute Sort, which uses the default sort of the attribute form set to display first on setting For informationGuide. the default sort, see the MicroStrategy Project Design
291
5 Select the order from the Order column as Ascending or Descending. if the Criteria of is set You cannot change the orderorder of a customan attribute if youto Default. You can change the group only selected Sort on Attribute ID in the Criteria. 6 If you are sorting on a custom group, you can change the Parent Position, which is the position of the element headers relative to the child elements. Select from the following options: Default inherits the sort property of the custom group Top displays the element name first, then its individual items (that is, the header is displayed above the children) Bottom displays the individual items of an element, followed by the element name (that is, the header is displayed below the children)
The Parent Position options affect the custom group is displayed as Showthe document only ifitems only the individual within this element and also, expand these individual items if possible or Show element names, individual items within this element and also, expand these individual items if possible. 7 When you have finished defining how to sort the grouping items, click OK to return to the Document Editor.
To sort records in a document
1 Open a document using the Document Editor in Design View. 2 If the document contains multiple layouts, click the tab of the layout to sort. 3 From the Data menu, select Sorting. The Sorting dialog box opens. 4 To add a sorting definition for Detail (the lower half of the dialog box), click Add, which populates a row with an object from the grouping and sorting dataset. 5 To change the selected object, click in the Sort By cell. A drop-down list containing all the objects from the Datasets pane appears. Choose the desired object from the list.
292 Sorting records in a document
2011 MicroStrategy, Inc.
6 From the Criteria drop-down list, select the criteria to sort by: If the object in the currently defined sorting list is an attribute, select which attribute form (such as ID or description) to sort on. If the object in the currently defined sorting list is a custom group, select from the following options: Keep Group Structure, which indicates that the custom group is not sorted (the default) Sort on Attribute ID Inherit Attribute Sort, which uses the default sort of the attribute form set to display first on setting For informationGuide. the default sort, see the MicroStrategy Project Design If the Sort By object is a consolidation, the only option is Default.
7 Select the order from the Order column as Ascending or Descending. if the Criteria of is set You cannot change the orderorder of a customan attribute if youto Default. You can change the group only selected Sort on Attribute ID in the Criteria. 8 If you are sorting on a custom group, you can change the Parent Position, which is the position of the element headers relative to the child elements. Select from the following options: Default inherits the sort property of the custom group Top displays the element name first, then its individual items (that is, the header is displayed above the children) Bottom displays the individual items of an element, followed by the element name (that is, the header is displayed below the children)
The Parent Position options affect the custom group is displayed as Showthe document only ifitems only the individual within this element and also, expand these individual items if possible or Show element names, individual items within this element and also, expand these individual items if possible. 9 To sort by another object, click Add again, then repeat steps 3-8 to modify the sorting details. 10 Click OK to return to the Document Editor.
293
4
4.
Introduction
In a document, you can display a report by adding a Grid/Graph to the document. A Grid/Graph acts as a standard MicroStrategy report. You can use a Grid/Graph as a type of summary for a group or the entire document, because the data displayed in it is aggregated to the level in which the Grid/Graph is placed. If the Grid/Graph is in one of the Group Header or Group Footer sections, it limits the data displayed in it to only that which is included in that group. For example, a document is grouped by Region, and you place a Grid/Graph in the Region Header section. If Region contains three values (Midwest, Northeast, and Northwest), the Grid/Graph aggregates and displays only Midwest data in the Midwest Region Header, only Northeast data in the
295
Northeast Region Header, and only Northwest data in the Northwest Region Header. The following sample Grid/Graph is for the Northeast region.
This chapter describes how to add Grid/Graphs to documents and how to work with them. It uses sample documents and procedures to explain the following concepts: Adding a Grid/Graph to a document, page 298 Selecting and editing a Grid/Graph, page 310 Adding objects to a Grid/Graph, page 312 Formatting Grid/Graphs, page 319 Adding title bars to Grid/Graphs, page 326 Quick switch for Grid/Graphs, page 329 Using view filters on Grid/Graphs, page 331 Linking to the dataset reports of Grid/Graphs, page 345 Drilling in Grid/Graphs, page 348 Enabling interactive Grid/Graphs for MicroStrategy Web, page 358
Once a Grid/Graph is in the document, you can display it in several ways: Grid: displays the Grid/Graph as a standard MicroStrategy grid with rows and columns of attributes and metrics, as shown below. For details, see Viewing a Grid/Graph as a grid, page 313.
296
Graph: displays the data visually like a standard MicroStrategy graph. The same Grid/Graph is shown below as in graph view. For details, see Viewing as a graph, page 314.
Grid and Graph: displays both Grid and Graph views simultaneously. The same Grid/Graph is shown below in Grid and Graph view. For details, see Viewing as a grid and a graph, page 315.
297
Create a Grid/Graph that includes all the objects of the report, whether they appear on the report grid or in the Report Objects pane. Create a Grid/Graph that looks like the report itselfthe report formatting is copied and only those objects displayed on the report grid are copied onto the Grid/Graph.
report formatting changes or objects are added or deleted If thethe report, the Grid/Graph in the document doestonot change. from To link the Grid/Graph to the report, create the Grid/Graph as a shortcut (see below). Both of these procedures are included in To add a Grid/Graph, page 299. If the document does not contain the dataset report, then you can add a dataset and a Grid/Graph simultaneously. For instructions, see Adding a Grid/Graph and a new dataset simultaneously, page 302. You can create an empty Grid/Graph, or placeholder, which you then populate with data from a dataset report. The placeholder can display as a grid or as a graph, and you can select the type of graph to display. For more information and instructions to add placeholders and datasets, see Adding a Grid/Graph placeholder, page 303 and Adding a dataset to a Grid/Graph placeholder, page 304. create document You can use Grid/Graph placeholders tothat do not contain any templates with formatted Grid/Graphs data. You can create a Grid/Graph as a shortcut. A shortcut is linked to the dataset report itself, which means that any changes (such as formatting) made to the dataset report are passed to the Grid/Graph in the document.
However, you cannot edit a Grid/Graph shortcut. For information on what you can do with shortcuts, including formatting and unlinking, and detailed instructions, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306. not linked to the report shortcut, If a Grid/Graph isthe dataset report dataset passedas athe changes made to are not to Grid/Graph. For example, the Revenue metric values on a report are displayed in blue font. That report is used as the dataset report for a Grid/Graph in a document. Later, the font of the Revenue metric values on the report is changed to green. The color of the Revenue values on the Grid/Graph in the document does not change. If the Grid/Graph is linked as a shortcut, however, the color of the Revenue values would change when the Revenue values on the report were changed. If an object is removed from the dataset report, that object is also automatically removed from the Grid/Graph in the document, regardless of whether or not the Grid/Graph is linked as a shortcut.
This procedure assumes that the document contains the dataset report that will populate the Grid/Graph with data. If it does not, you can add a new dataset and a Grid/Graph to the document at the same time. Use the procedure in Adding a Grid/Graph and a new dataset simultaneously, page 302 instead of following the instructions below. 1 Open the document using the Document Editor in Design View.
299
A Grid/Graph that: Copies the formatting of the report Contains only those objects displayed on the report grid (versus those in Report Objects but not on the report grid)
place Grid/Graph You can Since acontrols in theanywhere in a document except the Detail section. Detail section are repeated once per row of the dataset, the Grid/Graph would be repeated on each row. 3 The Grid/Graph is added, displaying as a grid (a standard MicroStrategy grid report with rows and columns of attributes and metrics) by default, unless you retained the report formatting. For example, if you want to place the Sales by Region report as a Grid in the Document Header, click the Sales by Region dataset name and drag it to the Document Header section in the Layout area. After a Grid/Graph is added, you can change how it is displayed. A Grid/Graph can be displayed as: Grid: a standard MicroStrategy grid is displayed, with rows and columns of attributes and metrics. The sample shown above is displayed as a grid. For details, see Viewing a Grid/Graph as a grid, page 313. Graph: the data is displayed visually like a standard MicroStrategy graph. For details, see Viewing as a graph, page 314. Grid and Graph: displays both Grid and Graph views simultaneously. For details, see Viewing as a grid and a graph, page 315.
Now that the Grid/Graph has been added to the document, you can: Add additional objects to the Grid/Graph. See Adding objects to a Grid/Graph, page 312 for instructions. Enable quick switch between graph view and grid view. For a description of quick switch and instructions, see Quick switch for Grid/Graphs, page 329. Display a title bar, which allows MicroStrategy Web users to minimize and maximize the Grid/Graph. It also helps identify the Grid/Graph in all views. For examples and instructions, see Adding title bars to Grid/Graphs, page 326. Resize the Grid/Graph. For instructions, see Selecting and editing a Grid/Graph, page 310. Create a view filter to filter the data that is displayed in the Grid/Graph. For examples and instructions, see Using view filters on Grid/Graphs, page 331. Change the dataset, which provides the data displayed on the Grid/Graph. For instructions, see Changing datasets in Grid/Graphs, page 309. Enable drilling on the data in the Grid/Graph. For information on drilling and instructions, see Drilling in Grid/Graphs, page 348.
You can format different parts of the Grid/Graphthe container (the object that displays the actual report grid or graph), the report grid or graph itself, and the title bar. Format the container of the Grid/Graph to change settings such as name, position, size, borders, and background of the object displaying the report grid or graph. See Formatting Grid/Graphs, page 319 for instructions. Edit the Grid/Graph, to change settings on the report grid or graph, such as row and column formatting, graph style, and sorting. See Selecting and editing a Grid/Graph, page 310 for instructions. Format the title bar to affect how the title bar is displayed, such as the font, background, and border. See Formatting Grid/Graphs, page 319 for instructions.
For a comparison of formatting the container and the title bar, see Formatting Grid/Graphs, page 319.
This formatting affects the Grid/Graph on the document; it does not change the original report. Similarly, any changes, such as formatting a metric or
301
changing the graph type, made to the original report are not propagated to the Grid/Graph, unless the Grid/Graph is a shortcut. However, if an object is removed from the original report, that object is also removed from the Grid/Graph in the document, regardless of whether or not the Grid/Graph is linked as a shortcut. For more information on linking Grid/Graphs as shortcuts, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306.
1 Open the document using the Document Editor in Design View. 2 Click the Report icon in the controls toolbar, or select Report from the Insert menu. 3 Click and drag in the section where you want the Grid/Graph. The Pick Dataset dialog box opens. Grid/Graph document You can place aSince controlsanywhere in a section areexcept in the Detail section. in the Detail repeated once per row of the dataset, the Grid/Graph would be repeated on each row. 4 Locate and select the report to add to the document. This dataset report also provides the data for the new Grid/Graph. 5 To use the formatting of the report, rather than the default Grid/Graph formatting, select the Use formatting of this report check box. 6 Click OK to return to the document. A new Grid/Graph is displayed in the document, and the dataset report is displayed in the Datasets pane.
When you add a Grid/Graph placeholder, you can choose whether to display it as a grid or as a graph. Grid/Graph placeholders can save time by allowing you to create a document template containing Grid/Graph placeholders but no dataset reports. You can then use the template to create several different documents, each with specific dataset reports and Grid/Graphs populated by those dataset reports. The formatting of the Grid/Graph placeholder is retained when you add a dataset report to the placeholder. To continue with the template scenario above, all the Grid/Graphs could be formatted identically in the documents, regardless of the formatting on the reports. To a Grid/Graph placeholder, populate it with data, andformatremove the data. The formatting is retained on theformat it, then placeholder. To format the rows and columns of a Grid/Graph, edit the Grid/Graph and then format it. For more detailed instructions, see Selecting and editing a Grid/Graph, page 310. You can also choose to copy the formatting from the report. In the template scenario, each Grid/Graph could be formatted differently, depending on the formatting in the original reports.
To add a Grid/Graph placeholder to a document
303
2 Do one of the following: To add a placeholder that displays as a grid, select Grid from the Insert menu. To add a placeholder that displays as a graph, point to Graph on the Insert menu, and select the graph style. For descriptions of the various graph styles, see the Graphing chapter of the MicroStrategy Advanced Reporting Guide.
3 Click and drag in the section where you want the Grid/Graph placeholder. a Grid/Graph placeholder anywhere in document You caninplaceDetail section. Since controls in the Detaila section are except the repeated once per row of the dataset, the Grid/Graph would be repeated on each row. A new Grid/Graph placeholder is displayed as an empty Grid/Graph in the document. You need to add a dataset to the Grid/Graph placeholder to populate it with data, as described below.
The data on the selected dataset report (either new or existing) is used to populate the Grid/Graph placeholder. The formatting of the Grid/Graph placeholder can be: Copied from the report. To continue with the template scenario described in Adding a Grid/Graph placeholder, page 303, each Grid/Graph could be formatted differently, depending on the formatting in the original reports. Retained.
In the template scenario, all the Grid/Graphs could be formatted identically in the documents, regardless of the formatting on the original reports. following procedures assume that the document contains Theempty Grid/Graph (a Grid/Graph placeholder). Ifalready not, an it does follow the procedure in To add a Grid/Graph placeholder to a document, page 303.
To add an existing dataset to a Grid/Graph placeholder
1 Open the document using the Document Editor in Design View. 2 Do one of the following: To retain the formatting of the report, drag and drop the name of the dataset report from the Datasets pane to the Grid/Graph placeholder. To use the formatting of the Grid/Graph placeholder, hold down the SHIFT key while dragging and dropping the dataset reports name from the Datasets pane to the Grid/Graph placeholder.
When the document is executed, the Grid/Graph is populated with data from the selected dataset report.
To add a new dataset to a Grid/Graph placeholder
1 Open the document using the Document Editor in Design View. 2 Right-click the Grid/Graph placeholder (an empty Grid/Graph) and select Pick Dataset. The Pick Dataset dialog box opens. 3 Locate and select the dataset report to provide the data for the Grid/Graph. a report that used You can selectyou can selectisa alreadythat isas a dataset ononthe document, or report not included the document. 4 By default, the Grid/Graph uses the formatting from the Grid/Graph placeholder. Alternatively, the formatting of the original report can be retained. To do this, select the Use formatting of this report check box. 5 Click OK to return to the document.
2011 MicroStrategy, Inc. Adding a Grid/Graph to a document
305
The dataset report is added to the Datasets pane. When the document is executed, the Grid/Graph is populated with data from the selected dataset report.
in The Shortcut propertyis athe Property List is a quick indicator of whether a Grid/Graph shortcut. You can unlink a Grid/Graph shortcut, if you no longer want changes made to the original report to be passed to the Grid/Graph in the document. Unlinking removes the shortcut and creates a Grid/Graph in its place. For the procedure, see To unlink a linked Grid/Graph shortcut, page 309. or add a a message If you try to edit the shortcutunlink theview filter,Click OK orisConvert displayed that allows you to shortcut. to unlink the shortcut. If you want to replace the shortcut with data from a different dataset, you can replace the dataset in the document. The formatting, filter, and report
objects of the shortcut are automatically changed. For instructions and a description of the effect that replacing the dataset has on the document, see the Desktop Help. You do not have to create a new Grid/Graph to use shortcuts; you can instead link an existing Grid/Graph to a dataset report. For instructions, see To link an existing Grid/Graph as a shortcut, page 309. Both Grid/Graphs shown below use the same dataset report, Yearly Revenue. However, the one on the right (Grid/Graph 2) is linked to the original report as a shortcut, while the one on the left (Grid/Graph 1) is not.
Change the graph type of the Yearly Revenue report from vertical bar to horizontal bar. Save the report. When you execute the document again, as shown below, Grid/Graph 1 still displays as a vertical bar graph, but Grid/Graph 2 is now a horizontal bar graph, because it is a shortcut
307
Grid/Graph and therefore changes to the dataset report are automatically passed to the shortcut Grid/Graph in the document.
A Grid/Graph added as a shortcut allows a document to contain an object prompt in a Grid/Graph. An object prompt on the template of a dataset report allows users to select which objects to include in the report. Grid/Graphs cannot use object prompts, unless you add the Grid/Graph as a shortcut. shortcut used, prompt does Even when a pane; youiscannotthe objectthe document notaappear in the Datasets add it to as separate object. When the document is executed, the object prompt is displayed and its answers are shown in the document results. This occurs just as if you had executed the dataset report as a stand-alone report. For more details on prompts in documents, see Using prompts in documents, page 766.
To add a Grid/Graph as a shortcut
1 Open the document using the Document Editor in Design View. 2 In the Layout area, click in the section where you want to place the Grid/Graph. Grid/Graph anywhere document except in You can place aThis is because controlsin athe Detail section arethe Detail section. in repeated once per row of the dataset, and the Grid/Graph would be repeated on each row.
3 Right-click the dataset report in the Datasets pane and select Add to Section as shortcut.
1 Open the document using the Document Editor in Design View. 2 Select the Grid/Graph to unlink. 3 In the Property List: Data section, select False from the Shortcut drop-down list.
To link an existing Grid/Graph as a shortcut
1 Open the document using the Document Editor in Design View. 2 Select the Grid/Graph. 3 In the Property List: Data section, change Shortcut to True.
Prerequisite
This procedure assumes that you have added a Grid/Graph to the document. If you have not, you can add a Grid/Graph and select the dataset at the same time. For instructions to do this, see To add a Grid/Graph, page 299 or Adding a Grid/Graph and a new dataset simultaneously, page 302.
309
1 Open the document in Design View in the Document Editor. 2 Click the Grid/Graph to select it. Resizing handles display around it. hashed appear around If redand clicklinesobject once. it, you are in edit mode. Press ESC the 3 Select the new dataset report from the drop-down list in Property List: Data: Data source. All the datasets of the document are listed. 4 When you are done, press ESC or click anywhere in the Layout area outside the Grid/Graph object.
Any dataset objects that are not available in the new dataset are deleted from the Layout area.
Selecting and editing a Grid/Graph
A Grid/Graph has several modes or states of selection.
To select and edit a Grid/Graph
When the Grid/Graph is not selected and your cursor is not over it, it displays without handles or the edit icon. This normal view is shown below.
When you place your cursor over it, the edit icon (explained later) displays in its top-left corner, as shown below.
When you click the Grid/Graph, the Grid/Graph control is selected. You can then resize the Grid/Graph by dragging the resizing handles. You can also
change settings such as its name and display mode in the Property List. This selected mode is shown below.
resize, it be locked. A locked If a selected Grid/Graph does notmoved onmayLayout area. For more Grid/Graph cannot be resized or the information and instructions, see Locking and unlocking controls, page 144. To edit the Grid/Graph, double-click it or click the edit icon. A red hashed border displays around it (shown below) and the menu options and toolbar change at the top of the Document Editor.
When a Grid/Graph is in edit mode, you have many of the same options for customizing the Grid/Graph as when using the Report Editor, which is part of MicroStrategy Desktop. For example, you can add objects to the Grid/Graph, format rows and columns, sort, add totals, create and edit drill maps, and format the graph. For details, see the following sections: Adding objects to a Grid/Graph, page 312 Editing a Grid/Graph displayed as a grid: Formatting options, page 313 Editing a Grid/Graph displayed as a graph: Formatting options, page 315
To exit edit mode for the Grid/Graph, press ESC or click anywhere in the documents Layout area outside of the Grid/Graph. the grid report displayed Editing changesthe document; itor graph report asthe originalin the Grid/Graph in does not change report. For this reason, if the Grid/Graph is linked to the original report as a shortcut, you cannot edit the Grid/Graph. You can format the Grid/Graph control within the document, whether it is a shortcut or not. For instructions, see Formatting Grid/Graphs, page 319, which discusses borders, title bars, and quick switch, among other properties. For instructions to unlink a Grid/Graph shortcut so that it is converted to standard Grid/Graph, and more information on
311
shortcuts in general, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306.
1 From the Document Editor in Design View, double-click the Grid/Graph to enter edit mode. A red hashed border displays around the Grid/Graph, indicating that it is in edit mode. For more information, see Selecting and editing a Grid/Graph, page 310. 2 Drag the object from the Datasets pane onto the Grid/Graph. A placeholder displays its position when you drop it. 3 Drop the object. It is placed in the Grid/Graph. creates text field If the object is not inaedit mode.on top of the Grid/Graph, the Grid/Graph Undo the addition by pressing CTRL+Z, then double-click the Grid/Graph and try again. 4 To exit edit mode, press ESC.
1 Select the Grid/Graph. hashed lines appear around it, Press If redto exit edit mode, then click the you are in edit mode.select it. ESC Grid/Graph once to 2 Do one of the following: In the Property List under the Appearance section, from the View Mode drop-down list, select Grid. From the Format menu, select Properties. The Properties dialog box opens. On the Grid tab, from the View mode drop-down list, select Grid.
3 Click anywhere outside of the Grid/Graph so that the Grid/Graph is no longer selected.
These options also apply to the grid part of a Grid/Graph that is displayed as a grid and a graph. For more information about these options, see the Desktop Help. grid or Editing changes theFor thisgraph inifthe document; it does not change the original report. reason, the Grid/Graph is linked to the original report as a shortcut, you cannot edit it. You can format the Grid/Graph control within the document, whether it is a shortcut or not. For instructions, see Formatting Grid/Graphs, page 319, which discusses borders, title bars, and quick switch, among other properties. For instructions to unlink a Grid/Graph shortcut, and more information on shortcuts in general, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306.
Viewing as a graph
When you insert a Grid/Graph into a document, it is displayed as a grid (a standard MicroStrategy grid report with rows and columns of attributes and metrics) by default. You can choose to display it as a graph, which shows the data visually as in a standard MicroStrategy graph report.
To view a Grid/Graph as a graph
1 Select the Grid/Graph. hashed lines appear around it, in edit mode. Press If redto exit edit mode, then click the you areonce to select it. ESC object 2 Do one of the following: In the Property List under the Appearance section, from the View Mode drop-down list, select Graph. From the Format menu, select Properties. The Properties dialog box opens. On the Grid tab, from the View mode drop-down list, select Graph.
3 Click anywhere outside of the Grid/Graph so that the grid is no longer selected.
These menu options are available in the Graph menu, the same as when you edit a graph report in the Report Editor. These options also apply to the graph part of a Grid/Graph viewed as both a grid and a graph. For more information on these graph editing options and others, see the Desktop Help. Grid/Graph in document; it not Editing changes theFor this reason, thethe Grid/Graphdoeslinkedchange the original report. if is to the original report as a shortcut, you cannot edit it. You can format the Grid/Graph control within the document, whether it is a shortcut or not. For instructions, see Formatting Grid/Graphs, page 319, which discusses borders, title bars, and quick switch, among other properties. For instructions to unlink a Grid/Graph shortcut, and more information on shortcuts in general, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306.
315
1 Select the Grid/Graph. hashed lines appear around it, in edit mode. Press If redto exit edit mode, then click the you areonce to select it. ESC object 2 Do one of the following: In the Property List under the Appearance section, from the View Mode drop-down list, select Grid and Graph. From the Format menu, select Properties. The Properties dialog box opens. On the Grid tab, from the View mode drop-down list, select Grid and Graph.
Specifying the layout for a Grid/Graph displayed as both a grid and a graph
You can specify the layout for a Grid/Graph displayed as both a grid and graph. That means that you can determine how the grid and the graph share the space available in the Grid/Graph. The grid and graph can be placed either side by side, or above and below each other by specifying the grid's location relative to the graph. You can also control the relative sizes of the grid and the graph, by specifying the ratio of the size of the grid to the size of the graph. For example, the following Grid/Graph is displayed as both a grid and a graph. It is shown in Design View, so that you can focus on the grid and graph objects, rather than the data. The default properties were not altered,
so the grid is placed below the graph, and each occupies half the space of the Grid/Graph.
Since the Grid position is set to Bottom, the Grid area percent property, which is set to 50 by default, specifies the height ratio. Change the Grid area percent to 25. Now the graph occupies 75% of the height of the Grid/Graph container while the grid only uses 25%, as shown below.
If you change the Grid position to Left or Right, the Grid area percent property represents the width percentage. If you specify the Grid position as
317
Right, without adjusting the Grid area percent, the Grid/Graph displays as shown below.
The grid uses 25% of the width of the window and is placed to the right of the graph. The following procedure re-creates the last sample shown above, with the grid to the right, at 25%.
To specify the layout for a Grid/Graph displayed as both a grid and a graph
1 Open the document using the Document Editor in Design View. 2 Click the Grid/Graph to select it. Resizing handles display around it. If red hashed lines appear around it, you are in edit mode; press ESC and click the object once. 3 In the Property List: Appearance section, set View mode to Grid and graph. 4 Set Grid position to Right, to display the grid to the right of the graph. 5 By default, the grid and graph share the control's window equally. Change Grid area percent to 25, so that the grid uses 25% of the width of the Grid/Graph window.
Formatting Grid/Graphs
Formatting a Grid/Graph changes the formatting of the Grid/Graph, not the data displayed in it. For example, you can format the border around the Grid/Graph to change its color or make it appear three-dimensional. To change the formatting of the data displayed in the Grid/Graph, such as bolding attribute names or changing the color of bar graph risers, you must edit the Grid/Graph. For instructions to edit a Grid/Graph, see Selecting and editing a Grid/Graph, page 310. For details on the available data formatting options, see Editing a Grid/Graph displayed as a grid: Formatting options, page 313 and Editing a Grid/Graph displayed as a graph: Formatting options, page 315 (the options vary depending on how the Grid/Graph is displayed). When you add a new Grid/Graph, the initial formatting of the Grid/Graph is determined by the control default, but you can then change any of the formatting options. A control default specifies the default formatting for a particular type of control. For more information on control defaults, see Defining default formatting for control types: control defaults, page 196. You can format the borders and background of a Grid/Graph. Border options include 3D borders and drop shadows; background options include transparent backgrounds and gradient colors. You can also modify other properties that define the Grid/Graph, such as tooltips and grid overflow, and quick switching between grid view and graph view. Most of these properties are included in Useful formatting suggestions, page 322; for a full listing refer to the Desktop Help.
Formatting Grid/Graphs
319
The background of a Grid/Graph shows only when the Grid/Graph is larger than the report displayed inside it. This occurs when all of the following conditions are met: The Grid/Graph is displayed as a grid report. The Height mode and Width mode are set to Fixed, not Fit to contents. This allows the specified Height and Width figures to be used.
For example, the background of the Grid/Graph in the following sample is a dark gray. Because the Grid/Graph is longer than the actual grid report, the bottom of the Grid/Graph is dark gray.
You can add a title bar to a Grid/Graph, as explained in Adding title bars to Grid/Graphs, page 326. A title bar allows Web users to minimize and maximize the Grid/Graph, and it identifies the Grid/Graph in all views. You can format the title bar independently of the Grid/Graph itself. You can format the font and background, including transparent backgrounds and gradient colors, of the title bar. transparent, If the background of the title bar isSee Allowingthe background color of the Grid/Graph shows through. the background of the Grid/Graph to show through a transparent title bar, page 328 for instructions and an example. The following sample shows a Grid/Graph with a title bar. The font of the title bar has been set to Comic, size 9. The background of the title bar is shaded from black to white, using gradient colors. The Grid/Graph has a 3D
1 Open the document using the Document Editor in Design View. 2 Click the Grid/Graph to select it. Resizing handles display around it. If red hashed lines appear around it, you are in edit mode; press Escape and click the object once. 3 To add the title bar, in the Property List: View section, set Show title bar to True. 4 To specify the height of the title bar, in the Property List: View section, enter the height in the Title height property. 5 Do one of the following to open the Format Objects dialog box: Right-click the Grid/Graph and select Format. Select Format from the Format menu.
6 Select Title in the object list on the left. 7 Select the Font tab. 8 Select Comic Sans MS in the Name list. 9 Choose 9 as the Size.
Formatting Grid/Graphs
321
10 Select Title in the object list on the left. 11 Select the Background tab. 12 Select Gradient in the Background style pull-down list. (For information on using the transparent background style, see Allowing the background of the Grid/Graph to show through a transparent title bar, page 328.) 13 Set Color 1 to Black and Color 2 to White. 14 Select Left to right as the direction of the color shading.
Add a 3D border to the container
15 Select Container in the object list on the left. 16 Select the Effects tab. 17 Select Raised from the 3D border pull-down menu. 18 Set Weight to 3. 19 Click OK to return to the document.
For example, the grid can be smaller than the Grid/Graph container (see the example on page 320). In a Grid/Graph that is used as a selector to control other Grid/Graphs, the background for items selected in the Grid/Graph is automatically chosen to provide contrast with the Grid/Graph's background, by default. You can specify the background color for the selected items. The color is displayed in Flash Mode and Express Mode in MicroStrategy Web. For an example and procedures, see Formatting the background of selected items in Grid/Graphs used as selectors, page 324. Float the Grid/Graph above the background by using a drop shadow. For an example, see Applying a drop shadow, page 157. Create a gradual color change by blending two colors using gradient colors on the Grid/Graph. For an example, see Using gradient colors, page 159. Display pop-up text with a tooltip when a user positions the cursor over the Grid/Graph in MicroStrategy Web. The tooltip can provide extra information, such as an expanded description of the dataset report. For an example, see Creating a pop-up tooltip, page 162. Display a Grid/Graph to other document designers in Design View while hiding it from users viewing the document in PDF View (Desktop or Web), and in Editable Mode and Express Mode on MicroStrategy Web. For an example, see Hiding a control, page 164. Allow users to minimize and maximize the Grid/Graph in Web with a title bar. The title bar also displays a title, which helps identify the Grid/Graph. Title bars provide documents with a portal grid mode and help you create a dashboard look and feel. For an example, see Adding title bars to Grid/Graphs, page 326. Quickly change the display of a Grid/Graph from graph to grid and back with the Quick switch button. The quick switch button is available in MicroStrategy Web only; you cannot use it in Desktop. However, in Desktop you can determine whether quick switch is available in Web. For more information, see Quick switch for Grid/Graphs, page 329. Enable a transition animation for Flash Mode in MicroStrategy Web. A transition animation is a visual transition that occurs when a Grid/Graph is first displayed in Flash Mode. Examples are Blur, Fade, and Iris. For more information, see Enabling transition animations in Flash, page 492.
Complete instructions for formatting Grid/Graphs are provided in the Desktop Help.
Formatting Grid/Graphs
323
Change the grid's background for selected items to dark gray. In Flash Mode, the selected item's background is dark gray, as specified, and the grid's background is still automatically displayed in white, as shown below:
In all other modes except Express Mode, the background of the selected item is automatically defined to provide contrast with the Grid/Graph's background. This example appears in blue in all other modes, as shown in the first example above. The following procedure assumes that the document contains a Grid/Graph used as a selector. For steps to create it, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486.
Formatting the background of selected items in a Grid/Graph used as a selector
1 Open the document to be formatted in Design View in the Document Editor. 2 Right-click the Grid/Graph to format and select Format. The Format Objects dialog box opens. 3 Select Container in the Format list on the left. 4 Click the Background tab. 5 By default, the Selection color, which is the background color for items that are selected in the Grid/Graph, is set to Automatic. This means the color is automatically set to contrast with the Grid/Graph's background.
Formatting Grid/Graphs
325
To specify a color, click Selection color, and choose a color from the color palette.
The Selection color is applied in Flash Mode and Express Mode in MicroStrategy Web.
6 Click OK to return to the document.
While the icons on the right of the title bar are not functional in this view, in Web they allow the user to resize the window containing the Grid/Graph. The options are described below: Minimized: Only the title bar is shown. A user can move the Grid/Graph but cannot resize it. Normal: The Grid/Graph is shown at the height and width set for it. Maximized: The Grid/Graph is displayed at the same size as the section in which it is located.
Title bars allow you to quickly achieve a dashboard look in your documents. If you include several Grid/Graphs with title bars in a document, you can create the feel of a portal. The Grid/Graphs can all be displayed, or a user can minimize the ones that are not relevant at the moment to focus on a particular Grid/Graph. A title bar: Displays the title of the report by default, although you can replace it with your own text. This helps identify the object.
Is displayed in all views/modes for both Desktop and Web. Lets you determine the initial state of the window: normal, minimized, or maximized. The initial state, which is controlled by the Display state property, is used in PDF View for Desktop and all modes in Web.
In Editable Mode and Interactive Mode in MicroStrategy Web, the title bar allows users to: Minimize and maximize the Grid/Graph. (Also available in Express Mode and Flash Mode) Quickly access menu options to format and edit the Grid/Graph. Available menu options include sorting and adding subtotals, among others. Open the dataset report used in the Grid/Graph (using Zoom In).
You can format the title bar independently of the container of the Grid/Graph; for details, examples, and procedures, see Formatting Grid/Graphs, page 319. The title bar in the sample above does not use the default formatting. The following procedure re-creates the sample shown above, except for the formatting.
To add a title bar to a Grid/Graph
1 Open the document using the Document Editor in Design View. 2 Click the Grid/Graph to select it. Resizing handles display around it. If red hashed lines appear around it, you are in edit mode; press ESC and click the object once. 3 In the Property List: View section, set Show title bar to True. 4 By default, the title of the dataset report is shown in the title bar, as in the sample. To change it, type the new text in the Title field. 5 By default, the initial size of the window is normal, as in the sample. To change it, choose either Minimized or Maximized in the Display state property.
327
Allowing the background of the Grid/Graph to show through a transparent title bar
If you set the background of the title bar to transparent, the background fill of the Grid/Graph shows through. For example, note that the title bar in the following Grid/Graph is shaded, left to right, from black to white.
Now, change the background of the title bar to Transparent. Select a dark gray for the background of the Grid/Graph container. In the sample below, you can see the dark grey of the container at the right of the Grid/Graph, as well as in the title bar.
The following procedure re-creates this sample. It assumes that you have already completed the procedure To format a Grid/Graph, page 321.
To use a transparent title bar for a Grid/Graph
1 Open the document using the Document Editor in Design View. 2 Click the Grid/Graph to select it. Resizing handles display around it. If red hashed lines appear around it, you are in edit mode; press ESC and click the object once. 3 Do one of the following to open the Format Objects dialog box: Right-click the Grid/Graph and select Format. Select Format from the Format menu.
5 Select the Background tab. 6 From the Background style pull-down list, select Transparent. 7 In the object list on the left, select Container. 8 Select the Background tab. 9 From the Background style pull-down list, select Solid. 10 Select Grey-50% as the Fill color. 11 Click OK to return to the document.
329
button to perform the switch is located at the top of the Grid/Graph, as shown below.
2 Click the Grid/Graph to select it. Resizing handles display around it. If red hashed lines appear around it, you are in edit mode; press Escape and click the object once. 3 Ensure that the View mode property is either Graph or Grid. If View mode is set to Grid and graph, the Quick switch property is not available. 4 Do one of the following: Set Property List: Data: Quick switch to True. Select Properties from the Format menu. On the Grid tab of the Properties dialog box, select the Quick switch check box.
5 Ensure that the Height and Width properties are set correctly, since the Height mode and Width mode are automatically set to Fixed when you enable quick switch.
331
particular, create view filters on Grid/Graphs, are described in the View filters example, page 336.
You can also use view filters for custom sorting, formatting for individual rows, and custom subtotals. To continue with the regional revenue dashboard example shown above, you could need to see the regions in the following order: Northeast, Southeast, Northwest, Southwest, and Mid-Atlantic. To do this, create five Grid/Graphs on a document. Apply a view filter for Northeast to the first Grid/Graph, for Southeast to the second, and so on. Similarly, to apply a different format to each row (that is, region) in the document, add one Grid/Graph for each region, apply a view filter on region to the Grid/Graphs as described above, and then format each Grid/Graph as needed. For example, the Northeast region can be displayed in red while Southeast appears in blue. This process can be used to create custom banding on a document.
Information on formattingaGrid/Graphs can be found in Editing a Grid/Graph displayed as grid: Formatting options, page 313.
You can also use view filters to create custom subtotals, such as an Eastern region subtotal and a Western region subtotal, for example. Add a Grid/Graph, apply a view filter for Northeast and Southeast, and enable subtotals for the Grid/Graph. Repeat the process with another Grid/Graph, setting the view filter to Northwest and Southwest. To enable subtotals, edit the Grid/Graph by double-clicking it, then select Grand Totals from the Data menu. The resulting custom subtotal document is shown below, with column headers turned off for the second Grid/Graph. To do this, edit the
Grid/Graph, then select Options from the Grid menu. On the General tab of the Grid Options dialog box, clear the Show column headers check box.
Grid/Graph is a shortcut, you cannot create view filter because If a Grid/Graph is linked to the original report. Ifa you try to create a the new filter, a message appears allowing you to choose whether to remove the shortcut. If you click Convert, the Grid/Graph is converted from a shortcut to a standard Grid/Graph, and any changes made to the original report are no longer passed to the Grid/Graph in the document. For information on what actions are allowed in shortcuts, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306. View filters can filter the Grid/Graph based on metric qualifications as well as attribute qualifications. For example, the following Grid/Graph displays Revenue, Cost, and Profit values for all regions:
Create a view filter that contains two qualifications: Revenue > $5,000,000 Profit < $1,000,000
333
When it is applied to the Grid/Graph, only two regions, Central and South, met the qualifications and are displayed, as shown below.
calculate the counts for the current month and the previous month. View filters on the Grid/Graphs filter for the Books category in the first set of data and Electronics in the second set.
The dataset reports for this document are shown below. Notice that the metrics are on the rows and the Category attribute is on the column. The data of the first dataset is in bold font while that of the second dataset is italicized. This font difference will help you distinguish the source of the data when it is combined in the document.
Create a document with the two datasets and combine their data with text fields, as shown in the following diagram, which is a representation of the actual document. The data in bold font is from the first dataset, italicized data is from the second dataset, and plain text is static text fields created on
335
the document. The boxes represent the different view filters applied to the data.
document are provided in The procedures to re-create thispage 341. This diagram willExample of metrics in rows and columns, help you re-create the document.
1 Create a report with the Region attribute, the Revenue metric, and the Profit metric.
2 Save the report as Regional Revenue and Profit and close it.
Create the document and add multiple Grid/Graphs
3 Create a new document using Regional Revenue as the dataset report. 4 Add three Grid/Graphs to the document, using the Regional Revenue dataset for each.
Create view filters on the Grid/Graphs
5 Right-click the first Grid/Graph and select Edit View Filter. The Grid/Graph is already selected when the View Filter dialog box opens. lines Grid/Graph, If red hashedESC toappear around a mode. you are in edit mode. Press deactivate edit 6 Click the text Click here to start a new qualification to create a new view filter. 7 Click Field to open a drop-down menu of attributes on the Grid/Graph. Select Region, which is the attribute on which to qualify.
Use the In list operator
8 Select In list from the Operator list, to create a list of the attribute elements to include in this Grid/Graph. 9 From the Value list, click Select Elements, which opens a list of attribute elements. 10 Double-click Northeast and then click OK. You have now set the first Grid/Graph to display revenue and profit for the Northeast region only. Now we will explore a different way to set up the qualification. 11 Select the next Grid/Graph from the list of Grid/Graph controls at the top of the dialog box. 12 Click the text Click here to start a new qualification to create a new view filter for this Grid/Graph. 13 Click Field to open a drop-down menu of attributes on the Grid/Graph. Select Region.
337
14 From the Operator list, select Where. 15 From the Field list, select DESC, for the attribute description. 16 From the Operator list, select Exactly. 17 From the Value list, click Select a value, to open a list of attribute elements. 18 Select Mid-Atlantic and click OK. You have now set the second Grid/Graph to display revenue and profit for the Mid-Atlantic region only. We will now set the final Grid/Graph to display Southeast only. 19 Select the next Grid/Graph from the list of Grid/Graph controls at the top of the dialog box. 20 Click the text Click here to start a new qualification to create a new view filter for this Grid/Graph. 21 Repeat either set of steps (Use the In list operator or Use the Where operator) to set the Region to Southeast. 22 Click OK on the View Filter dialog box to return to the document. The newly created view filter will be applied to the Grid/Graph when you view the document as a PDF.
View the document
fit on the screen when view To ensure all the Grid/Graphsthe Grid/Graphs aroundyou resize them, you may want to move or them. 23 Click the PDF View icon on the toolbar. The new document is displayed.
to display only those customers in the Northeast and Southeast regions who are older than 73 or younger than 19.
show a sample of the data on the This document has been modified to and Southeast customers older Grid/Graph, to show that Northeast than 73 or younger than 19 are included. The high-level steps for this procedure are listed below. 1 Create the dataset report. 2 Create the document and add a Grid/Graph. 3 Create a view filter with multiple conditions for the Grid/Graph. 4 View the document. example is focused on creating a filter, not a Since this the following procedures assumeview are familiardocument or report, you with the steps necessary to create documents and reports. For details, refer to the Desktop Help or the MicroStrategy Basic Reporting Guide.
To create the multiple view filters example Create the dataset report
1 Create a report with Customer Region, Customer, Customer Age, and the Revenue metric. 2 Save the report as Customer Information and close it.
339
3 Create a new document using Customer Information as the dataset report. 4 Add a Grid/Graph to the document, using the Customer Information dataset.
Create a view filter on the Grid/Graph
5 Right-click the Grid/Graph and select Edit View Filter. The Grid/Graph is already selected when the View Filter dialog box opens. lines appear around Grid/Graph, If red hashedEscape to deactivate aedit mode. you are in edit mode. Press
Create the qualification on Region
6 Click the text Click here to start a new qualification to create a new view filter. 7 Click Field to open a drop-down menu of attributes on the Grid/Graph. Select Region, which is the attribute on which to qualify. 8 From the Operator list, select In list, to create a list of the attribute elements to include in this Grid/Graph. 9 From the Value list, click Select Elements, which opens a list of attribute elements. 10 Double-click Northeast and Southeast, and then click OK.
Create the qualification on age > 73
11 Click New to start a new qualification. 12 Click Field to open a drop-down menu of attributes on the Grid/Graph. Select Customer Age. 13 From the Operator list, select Where. 14 From the Field list, select ID. 15 From the Operator list, select Greater than. 16 From the Value list, select Type a value, to open an entry box.
18 Click New to start a new qualification. 19 Click Field to open a drop-down menu of attributes on the Grid/Graph. Select Customer Age. 20 From the Operator list, select Where. 21 From the Field list, select ID. 22 From the Operator list, select Less than. 23 From the Value list, select Type a value, to open an entry box. 24 Type 19 and press ENTER. 25 Click the AND between the two age qualifications and select OR from the drop-down list. Notice that the two age qualifications become indented, denoting that any customer in the Northeast or Southeast who is older than 73 or younger than 19 is included in the view filter. 26 Click OK to return to the document.
View the document
27 Click the PDF View icon on the toolbar. The new document is displayed.
341
plain text is static text fields created on the document. The boxes represent the different view filters applied to the data.
The high-level steps for this procedure are listed below. 1 Create the dataset reports. 2 Create the document with two datasets. 3 Add the Grid/Graphs, format them, and add view filters. 4 Add text fields to label the rows and columns. 5 Save and view the document. example is focused on using view filters solve particular Since thisthe following procedures assume you aretofamiliara with the problem, steps necessary to create reports, documents, and Grid/Graphs. For details, refer to the Desktop Help, the MicroStrategy Basic Reporting Guide, or preceding sections of this guide.
To create the metrics example Create the dataset reports
1 Create a report with the Customer Count and Order Count metrics on the rows and Category on the columns. 2 Add a report filter for the Northeast and Mid-Atlantic regions, and for August 2004.
The filterofon region is only to simplify the sample by restricting the amount data returned.
3 Save the report as Customer and Order Counts and close it.
4 Create a second report with the Last Months Customer Count and Last Months Order Count metrics on the rows and Category on the columns. 5 Add a report filter for the Northeast and Mid-Atlantic regions, and for August 2004. 6 Save the report as Last Months Customer and Order Counts and close it.
Create the document with two datasets
7 Create a new document using Customer and Order Counts as the dataset report. 8 Add Last Months Customer and Order Counts as another dataset.
Add and format the first Grid/Graph
9 Using the Customer and Order Counts dataset, add a Grid/Graph to the document. Notice that Category is on the rows and the metrics on the columns of the Grid/Graph. You need to swap the rows and columns to create the dashboard. 10 Double-click the Grid/Graph to enter edit mode. Red hashed lines appear around it. 11 Select Swap Rows and Columns from the Move menu. Next, remove the headers on the Grid/Graph. 12 Select Options from the Grid menu. The Grid Options dialog box opens. 13 On the General tab, clear the Show row headers and Show column headers check boxes. 14 Click OK to return to the document. 15 Press ESC to exit edit mode. Next, reduce the size of the Grid/Graph. 16 Resize the Grid/Graph by dragging the resize handles.
343
17 Add a Grid/Graph to the document, using the Last Months Customer and Order Counts dataset. 18 Follow the instructions above to swap the rows and columns, remove the headers, and reduce the size of this Grid/Graph. 19 Align the second Grid/Graph with the first. Now that this first set of columns on the document is complete, copy them to create the next set.
Copy the Grid/Graphs
20 Select both Grid/Graphs and press CTRL+C to copy them. 21 Press CTRL+V to paste the copies, then reposition them. Next, add view filters to the Grid/Graphs. The first set displays data for the Books category only, while the second set is for Electronics only.
Add view filters
22 Add a view filter for Books to the first and second Grid/Graphs. 23 Add a view filter for Electronics to the third and fourth Grid/Graphs.
Add text fields as row and column labels
the Usetext document sample on page 332 as a guide to positioning the fields. 24 Add and position the following text fields to the left of the Grid/Graphs: Customer Count Order Count
25 Add and position the following text fields above the first Grid/Graph: Current Month Last Month Books
26 Copy the Current Month, Last Month, and Books text fields above the second Grid/Graph, replacing the Books text field with Electronics.
Save and view the document
27 Save the document. 28 Click the PDF View icon on the toolbar. The new document is displayed.
When the link is clicked, the dataset report for the Grid/Graph is executed. A portion of the resulting displayed report is shown below.
The dataset report opens in a new window, keeping the document open in the original window. You can instead specify that the dataset report opens in the same browser window as the document, replacing the document. Links to
345
datasets are functional in all modes in MicroStrategy Web except Design Mode. Creating a drill hyperlink is as simple as right-clicking the Grid/Graph and choosing Insert Link to Dataset. A text field is created at the upper right corner of the Grid/Graph. The text field displays the dataset name. can run only the the Drill hyperlinks insert a link that dataset report ofpage,related a Grid/Graph. To displays a Web executes different report, or passes prompt parameters to the target report, create a link instead. For a brief overview, see Linking from Grid/Graphs to reports and other documents, page 347. For more details, including instructions, see Linking to other documents and to reports (drilling), page 681.
To add a link to the dataset report of a Grid/Graph
1 Open the document using the Document Editor in Design View. 2 Add a Grid/Graph, if the document does not already contain one. For steps, see Adding a Grid/Graph to a document, page 298. 3 Right-click the Grid/Graph and select Insert Link to Dataset. A text field is created at the upper right corner of the Grid/Graph, although you can move it. The text field displays the dataset name from the Grid/Graph. 4 By default, when the link to the dataset report is clicked in MicroStrategy Web, the dataset report opens in a new window and keeps the document open. To have the dataset report open in the same browser window as the document, replacing it: a Select the text field containing the link to the Grid/Graphs dataset report. b In the Property List: Navigation section, set Open in new window to False.
347
You can create multiple links for the same object. For example, the Region attribute in a Grid/Graph can link to a yearly revenue report, which displays data for the selected region only. The same attribute can also link to a document that provides additional information about the region, such as revenue forecasts, inventory figures, store listings, employee schedules, and so on. Different objects on a Grid/Graph can have different links. For example, the Region attribute in a Grid/Graph can link to a yearly revenue report, while the Revenue metric can link to a document with revenue forecasts and other key performance indicators.
Drilling in Grid/Graphs
Drilling on a Grid/Graph in a document is similar to drilling on a report. Drilling allows users to look at specific data at levels other than that of the originally displayed Grid/Graph. It allows users to retrieve more information after the document has been executed. The new data is obtained by requerying the database at a different attribute or fact level. For a basic introduction to drilling, see the MicroStrategy Basic Reporting Guide. A user can drill on a Grid/Graph in Interactive Mode, Editable Mode, and Express Mode in MicroStrategy Web. If drilling is disabled in Flash Mode, you can enable it by allowing data manipulations, as described in Enabling filtering, drilling, and moving objects for Grid/Graphs in Flash Mode, page 360. drilling in Flash Whether on the documentMode is disabled or enabled by default depends template that the document was created with. In Interactive Mode and Editable Mode, users can drill down, up, or across attributes, custom groups, and consolidations displayed in a Grid/Graph. Drilling down allows access to data at progressively lower levels within a hierarchy. For example, if the attribute level displayed for the Geography hierarchy is Region, drilling down displays information at the State, City, or Store level. Drilling up to levels of data increasingly higher within a hierarchy broadens the scope of information. For example, if Time is shown at the date level, drilling up could display information at the Week, Month, or Quarter level.
Drilling across moves from one attribute level to another, either within a hierarchy or across hierarchies. In other words, users can drill in any direction, allowing them to find specific element values.
In Express Mode, users can drill only on the default drill path of an attribute. This is defined when a drill map is created. For instructions to create a drill map, see the MicroStrategy Advanced Reporting Guide. In Flash Mode, users can drill only to report objects within the dataset report that are not included in the Grid/Graph. If all objects within the dataset report are displayed in the Grid/Graph, no drilling options are displayed. For complete instructions to drill on a Grid/Graph, see the MicroStrategy Report Services Document Analysis Guide or the MicroStrategy Web Help. Before a user can drill on a Grid/Graph in a document, you must enable drilling for that Grid/Graph. When you enable drilling, you can define whether users can only drill within the dataset report or drill anywhere. If you allow users to drill within the dataset, only the drill paths from the drill maps that are included in the dataset report but not already on the report grid are shown to the user. For examples, see Drilling within a dataset vs. drilling anywhere, page 350. For instructions to enable drilling, as well as descriptions of all the drilling options, see Enabling drilling on Grid/Graphs, page 349. For information on how drilling works with links and selectors in Grid/Graphs, see How links, drilling, and selectors work together, page 709.
Drilling in Grid/Graphs
349
When you enable drilling, you can specify several drilling options. These options are briefly described in the following sections: Drilling within a dataset vs. drilling anywhere, page 350 Keeping the parent attribute while drilling, page 354 Keeping thresholds while drilling, page 354 Inheriting the subtotal from the parent, page 355 Defining the drill attributes join type, page 355
When you enable drilling using the MicroStrategy Web interface, you cannot define the drill attributes join type or specify whether the
subtotal is inherited. For an expanded discussion of these options, see the Drill Maps chapter of the MicroStrategy Advanced Reporting Guide. For instructions to enable drilling in Grid/Graphs in a document, see To enable drilling in a Grid/Graph (Desktop), page 356 or To enable drilling in a Grid/Graph (MicroStrategy Web), page 357. drill Grid/Graph. Drill You can also create and edit thewhen maps for thedrilled on. To work maps determine what happens an object is with drill maps, you must edit the Grid/Graph. For instructions on editing the Grid/Graph, see Selecting and editing a Grid/Graph, page 310. For more information on drill maps in general, see the Drill Maps chapter of the MicroStrategy Advanced Reporting Guide.
Region, and select Drill. Notice that you can drill from Region down to Call Center, and from Region up to Country, as indicated below.
not underlined, it does If an attribute is rather that a default drillnot indicate that drilling is unavailable, but has not been defined. A user may still be able to drill on the attribute. Use this report as a dataset to create a document. Add a Grid/Graph containing only Year, Region, and Revenue.
Drilling anywhere
Enable drilling, and do not change the default of drilling anywhere. All drill paths in the drill map for the dataset report are shown. If the dataset does not have a custom drill map, the drill paths in the project drill map are used. Drilling anywhere allows you to view associated data, either within the same attribute or across attributes, whether at the same level, a higher level, or a lower level. When you execute the document in Interactive Mode in MicroStrategy Web, Year and Region are underlined, indicating that drilling is available for each attribute. Right-click 2005, select Drill, and then select Time. Notice that you can drill from Year to Quarter, Month, Day, and Month of Year. Even though only Year and Quarter are included in the dataset, the other attributes in the
Drilling in Grid/Graphs
351
Time hierarchy can be drilled to because the Grid/Graph allows drilling anywhere.
Month of Year is not included on the first level of drilling because it is a Low priority drill. Only High and Medium priority drills are displayed on the first level. For more information about drill priorities, see the Drill Maps chapter of the MicroStrategy Advanced Reporting Guide. When you execute the document in Express Mode in MicroStrategy Web, Year and Region are underlined. You can drill from Year to Quarter, as shown below, and from Region to Call Center.
Drilling in Grid/Graphs
353
When you execute the document in Express Mode in MicroStrategy Web, Year is underlined, indicating that drilling is available. You can drill from Year to Quarter.
Drilling within the dataset report can be used to reduce the paths from those that are defined in the drill map. It does not include paths that are not defined in the drill map, even if an attribute in the dataset does not have a drill path.
thresholds option is selected, any revenue value over $1 million is shown in bold font. If the option is not selected, none of the revenue values are bolded. When drilling is enabled for a Grid/Graph, whether the thresholds are kept is determined by the drill path. (The Keep thresholds option is set to Default.) You can change it to keep or remove thresholds.
Enabling drilling
Using either Desktop or MicroStrategy Web, you can enable drilling and configure various properties. The only difference is that you must use
355
Drilling in Grid/Graphs
Desktop to define the drill attributes join type and specify whether the subtotal is inherited; you cannot set these properties using MicroStrategy Web. Instructions for both products follow.
To enable drilling in a Grid/Graph (Desktop)
1 Open a document in the Document Editor. 2 Double-click the Grid/Graph to enter edit mode. A red hashed border displays around the Grid/Graph, indicating that it is in edit mode. 3 From the Data menu, select Grid Data Options. 4 In the Categories list, expand General, and then select Drilling. 5 Select the Enable report drilling check box. 6 Select one of the following: Drill anywhere: (the default) All drill paths in the drill map for the dataset report are shown. If the dataset does not have a custom drill map, the drill paths in the project drill map are used. Drill within: Users can drill only to objects that are in the dataset report.
7 The Keep parent while drilling option determines whether the original object (the object that the user drills on) appears in the destination report. Select one of the following: Default: Whether the parent attribute is kept is determined by the drill path. Yes: Keeps the parent attribute while drilling. No: Removes the parent attribute while drilling.
8 The Keep thresholds while drilling option determines whether thresholds set in the original report are displayed in the destination report (after the drill). Select one of the following: Default: Whether the thresholds are displayed is determined by the drill path. Yes: Keeps the thresholds while drilling. No: Prevents thresholds from displaying while drilling.
2011 MicroStrategy, Inc.
9 The Inherit subtotals from parent option determines whether the subtotal is inherited from the original report. Select one of the following: Default: Whether the subtotal is inherited from the parent is determined by the drill path. Yes: Inherits the subtotal from the parent report unless all of the following are true:
The object being drilled from is the same as the group being subtotaled. The Keep parent while drilling option is not selected.
No: Does not inherit the subtotal from the parent report.
10 To select the attributes that appear in the destination reports while drilling, and to specify the join types for these attributes, click Drill Attributes Join Type. For more detailed instructions, see the Desktop Help. 11 Click OK to return to the document.
To enable drilling in a Grid/Graph (MicroStrategy Web)
1 Open a document in Design Mode or Editable Mode in MicroStrategy Web. 2 Right-click the Grid/Graph and select Properties and Formatting. 3 Select Grid under the Properties category. 4 Select a Drill option from the drop-down list: No drilling: (the default) Users cannot drill from the Grid/Graph. Drill within: Users can drill only to objects that are in the dataset report. Drill anywhere: All drill paths in the drill map for the dataset report are shown. If the dataset does not have a custom drill map, the drill paths in the project drill map are used.
Drilling in Grid/Graphs
357
You can disable sorting and pivoting in all the Grid/Graphs of a specific document; for instructions, see Disabling sorting and pivoting for Grid/Graphs in Flash Mode and Express Mode, page 360. This also disables drilling in Express Mode.
In Flash Mode, a user can manipulate data in Grid/Graphs, such as clicking links to other documents or reports, filtering by attribute elements or metrics, and grouping by attributes. For instructions, and a complete list of data manipulations, see Enabling filtering, drilling, and moving objects for Grid/Graphs in Flash Mode, page 360. These data manipulations are available in Flash Mode only; in Express Mode, the user can sort, pivot, drill, and use links.
sorting/pivoting and or Whether by default depends onthe pop-up menu are enabledthe disabled the document template that document was created with.
The relative position of a row or column A row into a column A column into a row
In Flash Mode, users sort or pivot data using a floating toolbar. This floating toolbar is displayed when a user hovers the cursor over the columns of a Grid/Graph, as shown in the image below:
The icon in the toolbar sorts the data in ascending order, while the icon sorts in descending order. These arrows pivot the data. In Express Mode, users sort or pivot data using a pop-up menu, as shown below:
For more detailed instructions to sort and pivot, see the MicroStrategy Report Services Document Analysis Guide or the MicroStrategy Web Help. Whether sorting/pivoting is enabled or disabled by default depends on the document template that the document was created with. For instructions, see Enabling interactive Grid/Graphs for MicroStrategy Web, page 358 and Disabling sorting and pivoting for Grid/Graphs in Flash Mode and Express Mode, page 360. Disabling sorting and pivoting also disables drilling in Express Mode. You can also enable additional interactive data manipulations to be performed in Flash Mode, such as filtering or grouping data in a grid. For more information, see Enabling filtering, drilling, and moving objects for Grid/Graphs in Flash Mode, page 360.
359
Disabling sorting and pivoting for Grid/Graphs in Flash Mode and Express Mode
In Flash Mode and Express Mode in MicroStrategy Web, users can sort and pivot data in Grid/Graphs using a toolbar (Flash Mode) or pop-up menu (Express Mode). You disable this functionality by hiding the toolbar and pop-up menu. Whether sorting/pivoting and the pop-up menu is enabled or disabled by default depends on the document template that the document was created with.
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select the Document category on the left. 4 Clear the Enable sorting and pivoting on grids in Express and Flash Modes check box. 5 Click OK to return to the document.
Enabling filtering, drilling, and moving objects for Grid/Graphs in Flash Mode
In Flash Mode in MicroStrategy Web, a user can sort and pivot data on a Grid/Graph by default. You can enable a pop-up menu so that users can quickly access the additional data manipulations listed below: Sorting data in a row or column Sorting data using multiple conditions (advanced sorting) Pivoting a row or column
Filtering data:
Based on the value of a metric Based on a list of attribute elements To include only the data for a selected attribute element By excluding data for a selected attribute element
Clearing filtering conditions to display all data Moving an attribute to the first row or the first column The attribute is moved to the far left of the rows or the top of the columns on the Grid/Graph, the data is sorted by the attribute, and the row/column header cells are merged.
Adding or removing report objects to display in the Grid/Graph objects in OnlyGrid/Graph.the Grid/Graphs dataset report can be added to the
Drilling within the Grid/Graphs dataset report Drilling lets users view report data at levels other than that displayed in the Grid/Graph. A user can only drill to report objects within the dataset report that are not included in the Grid/Graph. If all objects within the dataset report are displayed in the Grid/Graph, no drilling options are displayed. For background information on drilling, see Drilling in Grid/Graphs, page 348.
Opening a linked report or document A link is a connection in a document to another document or report. For background information on links and steps to add a link to a document, see Linking from Grid/Graphs to reports and other documents, page 347.
These manipulations are performed directly in Flash Mode and applied to Grid/Graphs displayed as grids or as both grids and graphs. If this additional interactivity is enabled, MicroStrategy Web users can access a pop-up menu when they hover the cursor over a Grid/Graph in
361
Flash Mode. The pop-up menu, shown below, displays the various data manipulation options.
This pop-up menu is available in Flash Mode in MicroStrategy Web only; you cannot access it in Desktop. For instructions on using it in MicroStrategy Web, see the MicroStrategy Web Help or the MicroStrategy Report Services Document Analysis Guide. However, you can use either Desktop or Web to enable and disable the pop-up menu for all the Grid/Graphs in a particular document. Whether sorting/pivoting and the pop-up menu are enabled or disabled by default depends on the document template that the document was created with.
To enable data manipulations for Grid/Graphs in Flash Mode
1 Open a document in the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select the Document category on the left. 4 Select the Enable sorting and pivoting on grids in Express and Flash Modes check box. 5 Select the Enable additional interactivity on grids in Flash Mode check box. This check only Enable on grids inbox is availableFlashifModes issorting and pivoting Express and selected. When Enable additional interactivity on grids in Flash Mode is selected, the
pop-up menu replaces the sorting and pivoting toolbar in Flash Mode. 6 Click OK to return to the document.
363
5
5.
Introduction
A dashboard is a special type of document. A dashboard is commonly only one page long, is intended to be viewed online, and usually provides interactive features that let analysts change how they view the dashboards data. By being only one page long, a dashboard makes it easy to view the entire document at the same time and see all the information. A dashboard allows interactivity from users, so each user can change how they see the data, within the limits of what the controls allow them. The designer can create more flexible data presentations with dashboards than with documents, since more users can be served with a single dashboard. Each user can interact with the dashboard to display only the subset of data they are interested in (using panels and selectors) or only specific attribute elements or metrics (using a selector). Panels and selectors are described in detail later in this chapter (see Layering data on dashboards: panels and panel stacks, page 392 and Providing interactivity to users: selectors, page 418). This chapter assumes that you understand the various MicroStrategy controls (such as Grid/Graphs, text fields, and so on) discussed elsewhere in this guide; understanding these controls is important to understanding panels and selectors in dashboards.
2011 MicroStrategy, Inc.
365
About dashboards
This chapter describes dashboards and how to create them. The chapter includes the following sections: What is a dashboard?, page 366 Adding interactivity to dashboards, page 368 Design ideas and examples, page 376 Designing the right dashboard, page 379 Best practices for dashboarding, page 381 Creating a dashboard: the Blank Dashboard template, page 389 Layering data on dashboards: panels and panel stacks, page 392 Providing interactivity to users: selectors, page 418 Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486 Enabling transition animations in Flash, page 492 Uncluttering the dashboard: Full screen mode, page 494
Another important component of dashboards is widgets. A widget is a Flash-based display of the results of a dataset report, allowing users to visualize data in different ways than traditional reports displayed as Grid/Graphs do. For a more detailed description, including instructions and samples of the various types of widgets, see Chapter 6, Providing Flash Analysis and Interactivity: Widgets. version 10.1 is Flash Playerin Flash Mode. required to view and interact with dashboards
What is a dashboard?
A dashboard is a display of related sets of data on one screen. A dashboard is commonly used to assess company or personal performance, to take a quick status check of the company, or to monitor personal work or work group contributions to overall goals of the business. Dashboards summarize key business indicators by presenting them in visually intuitive, easy-to-read, interactive documents.
Common dashboard characteristics in the example shown above include: The gauge, which shows corporate revenue at a glance. The two graphs, which display regional and product performance in an easy-to-understand format. The buttons at the top right (Corporate, Regional, and City), which allow a user to view different areas of the business, providing a quick status check across the company. This set of buttons is one of the interactive features of the document. Interactive features are described in Adding interactivity to dashboards, page 368.
More generally, a typical dashboard contains the following characteristics: Only one page, so that it is easy to view the entire document and see all the information. Used online rather than printed out.
About dashboards
367
Provides interactive functionality so users can change how they see the data. For example, a user can select exactly which data to see by selecting metrics or attribute elements to be displayed in a Grid/Graph.
There is no single feature that you use to design a dashboard; you can choose selectors, widgets, panels, and other controls, to create a personalized, custom dashboard that suits your users specific needs. Various formatting options such as gradient colors and 3D effects also help you create dashboards with a style appropriate for the boardroom.
This example uses a Grid/Graph and a button bar selector. For a description of Grid/Graphs and procedures to create them, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. For a description of selectors and procedures to create them, see Providing interactivity to users: selectors, page 418.
369
the length of time displayed and specific range of time covered in the graphs data. The dashboard initially displays regional performance for August 2005 to February 2006. You can move the slider to change the range of time, for example, to display March to May 2008. You can extend the length of time displayed by dragging the right end of the slider to lengthen or shorten the slider. The graph now shows performance for March to September 2008, as shown below.
This example uses a Grid/Graph and a slider-style selector. For a description of Grid/Graphs and procedures to create them, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. For a description of selectors and procedures to create them, see Providing interactivity to users: selectors, page 418.
The image below is an example of a gauge graph that is used at the top of a dashboard document to highlight corporate revenue and regional performance.
The image below is an example of a funnel graph that provides a quick look at current revenue projections.
About dashboards
371
The image below is an example of a thermometer widget in a document in MicroStrategy Web. It allows a document analyst to quickly glance at the number of units sold.
The image below is an example of a cylinder widget in a document in MicroStrategy Web. A document analyst such as a regional manager can quickly glance at the cylinder to see how much revenue was produced.
Selectors
A selector is an element of a dashboard that allows a user to change the data he is viewing. A selector can be displayed as a button bar, a drop-down list,
About dashboards
373
radio buttons, and so on. A selector can change panels or the focus of a Grid/Graph. Examples of selectors are shown below:
Selectors allow a user, in Interactive Mode and Editable Mode in MicroStrategy Web, to: Flip through the panels in a panel stack to display the different panels. The selector for the panel stack in the sample dashboard is a button bar, which appears to the analyst as the view buttons. Display different attribute elements or metrics in a Grid/Graph. For example, a user can slice or filter the data on a graph by selecting specific regions or metrics. In the sample dashboard, the slider is the selector for the Regional Performance graph, while the category buttons are the selector for the Subcategory Analysis grid.
For more information, examples, and procedures for selectors, see Providing interactivity to users: selectors, page 418.
Title bars
A title bar is simply an area across the top of a panel stack or Grid/Graph. You can choose whether to display the title bar for each panel stack and Grid/Graph. When it is displayed, the title bar contains a title and several buttons. The title identifies the panel, panel stack, or Grid/Graph. The buttons allow users to minimize and maximize Grid/Graphs in MicroStrategy Web.
For more information, examples, and procedures, see Adding title bars to Grid/Graphs, page 326 and Displaying the title bar of a panel stack, page 400.
Quick switch
Quick switch is a button that allows an analyst to quickly change a Grid/Graph from Graph view to Grid view and back, with a single click. The quick switch button is available in MicroStrategy Web only; you cannot use it
in Desktop. However, in Desktop you can determine whether quick switch is available in Web. For more information, examples, and procedures, see Quick switch for Grid/Graphs, page 329.
Widgets
A widget is a type of Report Services control that presents data in a visual and interactive way. You can think of widgets as interactive Flash-only graphs that dynamically update when you select a new set of data to view. The dashboard user can even interact with some types of widgets to manually select a set of data to analyze. A variety of widget types, such as Gauge, Heat Map, and Stacked Area widgets, are available for use in MicroStrategy dashboards. Although each type of widget looks different and is used in a unique way, the main purpose of all widgets remains the same: to provide document analysts with a visual and interactive look into their data. For example, the Interactive Bubble Graph widget below allows document analysts to drill into each bubble in the graph by clicking it. Analysts can also use the time animation toolbar at the top of the widget to watch the bubbles appear on the graph in chronological order.
For more information, including examples and procedures, see Chapter 6, Providing Flash Analysis and Interactivity: Widgets.
About dashboards
375
For information about designing these types of graphs, see the Graphing chapter in the MicroStrategy Advanced Reporting Guide.
in a single dashboard. The first image shows the regional (or Territory) overview level:
The next image shows the second layer, displaying details of the accounts for each account representative:
377
The layers in this dashboard were created using panel stacks and selectors. For more information, see Layering data on dashboards: panels and panel stacks, page 392 and Providing interactivity to users: selectors, page 418. Design a key performance indicators dashboard that lets users look at one or more gauges to instantly assess key performance data. Provide graphs that let users compare current performance against established targets so they can identify opportunities or issues. Include a report or two that provide supporting data so users can see what is behind the performance numbers. An example is shown below.
Design a financial dashboard that monitors all key financial statements in one screen. For example, you might include an income statement as the main feature of the dashboard, then add a smaller grid report and a graph report below it. Add a selector to the income statement and connect it to the two supporting reports. When a user selects a line item in the income statement, such as Total Operating Expenses, the supporting reports show detailed operating expenses in the grid, and actual and planned operating expenses by quarter in the graph.
379
Dashboard Goal Present many layers of data in a single dashboard, keeping the layers organized and focused. The layers, or views of the data, must be instantly available to the users. Allow users to change the context of dashboard. For example, a user can change the following for a specified set of graphs or tables: The focus of the KPI The timeframe being viewed The subject areas displayed Create dashboards in Flash that can be used even when disconnected from the network. These dashboards include full interactivity, visualization, and data content. Use interactive Flash graphs rather than static graphs to provide an engaging way to view data and understand relationships.
Features to Use on the Dashboard Use panels and panel stacks to provide the layers of data in the following ways: Multiple independent layers within a single dashboard page Multiple independent dashboard pages layered within a single document For examples and procedures, see Layering data on dashboards: panels and panel stacks, page 392. Add selectors that target attribute elements so that users can change the context of the data. You can use a wide range of selectors: radio buttons, check boxes, drop-down lists, and so on. For examples and procedures, see Providing interactivity to users: selectors, page 418. Define an attribute in a Grid/Graph as a selector that targets a panel stack or another Grid/Graph. Users can then click an attribute element in the Grid/Graph and initiate a context change in related Grid/Graphs on the dashboard. For examples and procedures, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486. Embed Flash dashboards within Microsoft Office documents, including Word, PowerPoint, Excel, and Outlook. For more information, refer to the MicroStrategy Office User Guide. Embed Flash dashboards within emails and distribute them. For more information on this Narrowcast Server feature, see the Narrowcast Server documentation. Use time series animation to allow users to play graphical movies, driven by data, that provide rapid insight into business trends. Users can rewind and fast forward through a time series. They can also pause the movie and drill down for more details. For an example, see Defining a Time Series Slider widget, page 545. Use the library of visualization widgets in MicroStrategy Web to extend the display of information beyond traditional graphing. See Chapter 6, Providing Flash Analysis and Interactivity: Widgets. Build any visualization you need using FlexBuilder IDE integration and add it to your MicroStrategy library of visualizations. Customize any Flex-compatible visualization and add it to your MicroStrategy library of visualizations. Use the Adobe FlexBuilder integration to add MicroStrategy dashboards and reports to any Flex-compatible Rich Internet Application (RIA). For more information on MicroStrategys Visualization Framework, the FlexBuilder plug-in, and the visualization editor, see the MicroStrategy Developer Library (MSDL) provided with MicroStrategy SDK. In particular, the Understanding the Visualization Framework section is helpful. The path to this section in the MSDL is Web SDK -> Integrating with an External Application -> Visualization Integration. To purchase MicroStrategy SDK, contact your account executive for more information.
Unlimited visualization extensibility via Flash uses MicroStrategy's integration with Adobe's FlexBuilder 2 IDE to allow you to: Expand your library of visualizations Extend the reach of your business intelligence to operational applications
For information on the objects that allow you to implement these objectives, see the following sections: Layering data on dashboards: panels and panel stacks, page 392 Providing interactivity to users: selectors, page 418 Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486 Chapter 6, Providing Flash Analysis and Interactivity: Widgets Enabling transition animations in Flash, page 492 Adding title bars to Grid/Graphs, page 326 Quick switch for Grid/Graphs, page 329 Linking to other documents and to reports (drilling), page 681
For general best practices related to designing a document, see Best practices for designing effective documents, page 15.
MicroStrategy metadata. You can also create new datasets for your dashboard. A dataset should have enough data to be useful as a rich source of analysis for many users, but it should not have extra data that is not needed on the dashboard. For example, do not include product item information when you only want to display product category information. As you gather or create datasets, focus on important indicators such as performance stakes, trends, and variances. Users typically browse a large number of reports somewhat randomly, looking for interesting trends. You can gather related reports to use on your dashboard, so that all the data is available together in a single context. Users can then locate the data more easily and analyze it more efficiently. When choosing reports to incorporate into a single layer on a dashboard (a dashboard page or panel), consider the ratio of graph to grid reports to display. Common graph:grid ratios range from 4:1 to 1:3. The average graph:grid ratio from a general sample of dashboards was approximately 2:1. Consider using a dashboard to replace 8-12 existing reports in your MicroStrategy project. You will generally use 3-5 reports on each layer of the dashboard; dashboards generally have from 1 to 3 layers (see Layering information in a dashboard, page 383). Consider using a dashboard to replace three to four existing documents in your MicroStrategy project. If you have three documents that contain data from a related subject area, you can use each document as a single layer (or panel) of your dashboard. Having all this related information in one dashboard can provide a more productive analysis experience for your users. For example, you have three documents for your human resources department. Each document is related to salaries and other benefits, headcounts, or hiring. Create a dashboard with a panel stack sized to take up the entire screen. Add two more panels so you have three panels in the panel stack. Then re-create the first document on the first panel of the dashboard, the second document on the second panel, and so on. Add a selector of three tabs (buttons) at the top of the panel stack. Users can tab
between the layers of human resources data, depending on whether they are interested in headcounts, hiring, or salaries. The image below shows a sample of this dashboard:
Create layers by adding a panel stack to your dashboard. Size the panel stack so it is large enough to take up the entire screen. Then place enough panels on the panel stack to equal the number of layers needed in your dashboard. Each panel becomes one layer of your dashboard. Finally, create a set of tabs above the panel stack by adding a button or link bar selector, with one tab (button) for each layer (panel).
383
Consider grouping data by layers according to subject areas or business dimensions, with one subject area or business dimension per layer. For example, one layer might show income at the corporate level, while a second layer might also show income but at a departmental level or a regional level. The final layer might show detailed income data. This lets you serve diverse user communities without overwhelming users, as they can each flip to and work with the dashboard layer that specifically interests them. Consider grouping data by layers according to regions of the country or regions of the world, so that, for example, sales metrics can be displayed within a given regional context.
Use the grouping feature and/or incremental fetch, for documents designed to be viewed in MicroStrategy Web. See Grouping records in a document, page 260 and Improving document performance in MicroStrategy Web: Incremental fetch, page 769. Use selectors for attributes and metrics if a document will be viewed in DHTML mode in Web. This is not necessary if users will be viewing dashboards in Flash mode, because all dashboard data is downloaded to the web browser when the dashboard is executed.
Group related reports so they can be placed in a small panel stack, each panel displaying a single report. As users flip through the panels, they will be flipping through the related reports. The reports in a panel stack should not be reports that a user might want to see side by side in a dashboard; rather, the reports should show different levels of detail about the same or closely related data.
Plan to provide visualizations. These can include any of the available widgets, such as a gauge, thermometer, heat map, and so on, which can help users understand data at a glance. so many graphical objects that Do not addis no longer the data. Too manythe focus of thecan dashboard visualizations detract from the importance of the data.
Plan to provide interactivity. This can include any of the available selectors, such as tabs, buttons, and sliders, which let users change a reports metrics, attribute elements, and filters, or interactive widgets. Interactive features let users customize the display of data without needing a developer or designer to perform any work. Consider common user workflows when designing a dashboard. Think about how analysts are going to move through the dashboard, what links they will want to click, and so on. Try to embed this workflow directly into the dashboard. Do this by placing objects so that data can be interpreted from the top left to the bottom right. Granularity should increase from top to bottom on a dashboard. For example, place objects that display key performance indicators at the top of the dashboard. These objects might include large graphs such as a funnel graph (also called a pipeline), a pie graph, widgets such as a gauge, and so on. Allow users to drill within the dashboard to determine the level of detail that they need to display. Use pre-defined drill paths to direct the users' analysis. Drilling can provide more details and more information without interrupting the workflow. Use links to other dashboards, documents, or prompted reports to provide the drilling paths. Decide which objects on the dashboard should share the same formatting styles, and which objects should be physically aligned with each other. These decisions are important time-savers if you make them before you spend a lot of time actually formatting objects and fine-tuning object placement. Use effects for trends, summaries, and other high-level data. If users want to analyze details in a report, too many effects can make it difficult to understand more detailed data.
For example, if you apply the curved effect to the line in a line graph, the exact points where the line hits the graph are adjusted so that the line can be curved smoothly. This looks nice, but users who rely on seeing every detail will have difficulty. If you want to apply the curved
385
effect, you can also provide a grid report alongside showing exact values. An alternative is adding tooltips which display actual values for points on the graph when you move the cursor over the graph.
graph, his selection serves as a filter for the related grid or graph. For example, in a pie graph showing revenue for all products, a user clicks a slice of the pie graph representing electronics revenue. The connected report below the pie graph, displaying detailed sales numbers, automatically updates its data to reflect the users selection, displaying sales numbers for various electronic products. Add selectors to different parts of the dashboard so users can customize the data they see at many levels. For example, add a selector at the top of the dashboard itself, so users can switch between layers of the dashboard. Then add a selector at the top of an individual layer, so users can change metrics, for example, to change the focus of that layer of the dashboard. Finally, add a selector to each of the reports on that layer, so users can focus the details of their analysis on a specific area.
Colors are especially effective when used as a background that visually groups a set of reports or other related objects. Contrasting colors support quick comparisons between two measurements, such as actual vs. forecasted values.
To make visual analysis easy, use drop shadows, rounded edges, geometric lines and shapes, color gradients, transparency, and borders to visually link related sets of data. For example, group related sections of information under the same title bar and use the same background color to tie them together visually. Include text fields as needed. For example, a concise text field explaining a set of buttons can make the difference between users who are confused by a busy layout, and users who know exactly what to select so that the data displayed provides the information they need. Edit titles as necessary to make sense of your final display. Improve readability for grid reports by adding special formatting, such as background colors or a drop shadow, to alternating or important rows so those rows stand out. Add thresholds to any important grid report data. A threshold is special formatting that is applied automatically when a value in a cell reaches a certain number. For example, if any of your regions returns sales
387
numbers that fall below a specified low mark, the appropriate cell of the grid is automatically formatted, perhaps with a red background and bold numbers, to alert you to the condition. For details on applying thresholds to grid and graph reports, see the MicroStrategy Basic Reporting Guide. If there are other reports or documents that cover analysis areas related to data on your dashboard, consider adding one to three link bars, which are links from the dashboard directly to the separate report or document. You may find it helpful to ask your users what common investigative paths they might follow after using the dashboard. Links can help make that transition easy. If a grid report takes up too much room, make it smaller and add a scrollbar. The data will remain accessible but the report itself will use less space on the total dashboard area. Display your finished dashboard in the same format your users will be viewing it infor example, HTML, PDF, Excel, or printedand ensure that the display is effective for your planned output.
Nesting panel stacks (that is, placing a panel stack on a panel) increases client rendering time. To reduce that time, include data in both panel stacks, not just the nested panel stack. In Flash Mode in MicroStrategy Web, after the dashboard is initially loaded, manipulations such as choosing a selector item are executed on the client machine. In contrast, such manipulations in Interactive Mode send additional requests from Web Server to Intelligence Server. Since Flash Mode uses minimal server resources after the initial load is complete, system overhead is reduced for multiple users concurrently manipulating their dashboards. Therefore, Flash Mode has faster response times for manipulations, regardless of the number of users accessing the dashboard. However, these same users must accept longer document execution times due to the initial loading of Flash. In MicroStrategy Web, graphs perform better in Flash Mode than in Editable Mode and Interactive Mode.
389
color. Again, these defaults help you create the feel of a dashboard or a portal. The following document, which is shown in Design View, was created using the Blank Dashboard template. It contains a Grid/Graph and a panel stack. Notice that the Grid/Graph is formatted with a light grey background fill (the Backcolor).
These are the default properties of the Blank Dashboard, so you can change them if necessary. For example, you can change the height of the section, display additional sections, remove title bars from a Grid/Graph, and so on. Other predefined dashboard templates provide a structure for dashboards, such as four evenly-spaced panel stacks to place contents in, one panel stack on the left side of the dashboard and two smaller ones on the right, or a text field across the top of the dashboard for a title bar with a panel stack below it.
To create a traditional document rather than a dashboard, use the Blank Document template.
For information on title bars, see Title bars, page 374. For information on Grid/Graphs in general, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. For information on panel stacks, see Layering data on dashboards: panels and panel stacks, page 392.
1 From the File menu, point to New, and then select Document. The New Document dialog box opens, showing a selection of pre-generated document templates. 2 Select Blank Dashboard and click OK. A new dashboard document opens.
391
Use panel stacks to provide interactive data layering. You can create: Stacks of analytic layers on a single dashboard page by creating two panels, each containing a different Grid/Graph. In Interactive Mode, Editable Mode, and Flash Mode in MicroStrategy Web, a user can flip between the panels, quickly replacing one Grid/Graph with the other. Using panels in this fashion permits many independent layers of data within a single dashboard page. Multiple layers of dashboards by adding multiple controls to each panel of a panel stack. This creates layers of complex dashboards. An Information Window, to display additional information about an attribute element. A user clicks an element in a grid or graph. The Information Window pops up over the element, displaying an additional visualization, based on the element. Information Windows are displayed in Express Mode and Flash Mode in MicroStrategy Web, and in MicroStrategy Mobile for iPad. For an example and instructions to create an Information Window, see Defining Information Windows for an iPad document, page 824.
The first two methods are described in the examples that follow, Example: Layering Grid/Graphs on panels, page 393 and Example: Layering multiple dashboards in a single document, page 394.
Above the Grid/Graph is a list box containing the names of the panels in the panel stack: Employee Info by Region and Category Sales Report. When you select the Category Sales Report, the other panel is displayed. Notice the name of the panel in the title bar: Category Sales Report. Also, notice that this panel includes a text field in addition to the Grid/Graph. The text field reads Forecast based on 2002-2004 data.
Using panels in this fashion allows many independent layers of data within a single dashboard page. You can also layer dashboards in a single document with the use of panels, as described in the next example. a The list box istheselector, a type of control which allows a user to interact with panel stack. While selectors are discussed briefly throughout this section, more details on creating them and examples of their various options are provided in Providing interactivity to users: selectors, page 418.
393
top left of the dashboard, and the Corporate button is currently selected. This dashboard provides a company-wide view of revenue and performance.
If you click Regional in the Select View button bar, another dashboard is displayed. As shown below, this dashboard contains an area graph for daily revenue, a grid report for category analysis, and a bar graph for subcategory
revenue. This dashboard provides a more detailed view of information, at the regional and daily level.
Each of these dashboards is on a panel, and the Select View button bar is a selector that allows you to switch between the panels. Using panels to layer multiple dashboards in the same document can organize related information and provide increasing levels of detail on different dashboards .
395
background color comes from the individual panel; you can format each panel to have a different background color. Most of the properties that control a group of panels are set in the panel stack. These properties include whether a title bar or pop-up text is displayed, as well as size and position information. The title bar, when displayed, is an area across the top of the panels that shows the title. You can choose whether the title bar displays the name of the panel stack or of the panel currently being displayed. By default, the title bar also displays Next and Previous arrows to allow users to change panels, although you can hide these arrows. For an example of the arrows, see Panel selector arrows on the title bar, page 402. The current panel is the panel currently displayed in Design View. This panel is displayed on the panel stack when the document is viewed in PDF View or in MicroStrategy Web. If a panel stack contains more than one panel, a user needs a way to change panels. By default, the title bar displays arrows that allow users to move through the panels. If you choose to hide the arrows or hide the title bar, you need to add a selector, such as a radio button or pull-down list, to allow users to display the different panels of a panel stack. When a user switches to PDF View or to Express Mode in MicroStrategy Web, whichever panel was current becomes the only panel displayed, as well as the only panel that can be printed. The user cannot change to a different panel in PDF View or Express Mode. In Interactive Mode, Editable Mode, and Flash Mode in MicroStrategy Web, a user can click the selector to switch panels.
A selector is not part of a panel stack, unlike the other items described in this section. A selector is a different type of control and is added to the document separately. The title bar, for instance, is an area of the panel stack, and each panel is contained in the panel stack. However, a selector is an important and necessary addition to a panel stack because a selector allows the user to switch panels. The selector can also display the names of the different panels, so that a user can tell at a glance which panel he wants to view. The default arrow selectors on the title bar do not display the panel names. For more information, including examples and procedures, about selectors, see Providing interactivity to users: selectors, page 418. The following diagram shows a panel stack and the selector that targets it, in Design View. The panel is the light gray area containing the text fields Region and Revenue. The title bar is the darker gray area at the top, labeled Panel1. The panel stack border is displayed as a thick black line; note that it
396 Layering data on dashboards: panels and panel stacks
2011 MicroStrategy, Inc.
surrounds the entire panel, including the panel and the title bar. The selector (labeled Elements Selector), is a separate control placed above the panel stack. In MicroStrategy Web, the selector allows the user to choose the region to display.
The following diagram shows the same panel stack and selector in Interactive Mode in MicroStrategy Web. The panel, panel stack, and border appear the same, except that the text fields have been replaced by data. The selector is rendered as a drop-down list of the regions. The Central region has been selected, so its data is displayed in the panel.
397
instructions to enable and disable the functionality, see Automatically maintaining targets for selectors, page 443. allow a user to flip through the panels in a Selectors can also not automatically maintained for this type panel stack. Targets are of selector; you always manually define the targets for panel selectors.
7 Determine how to load panels in panel stacks when the document is viewed in MicroStrategy Web. All the panels can be pre-loaded, or only the first panel. For instructions, see Loading panels on demand in MicroStrategy Web, page 408. When all the panels are pre-loaded, they display immediately when the user selects a different panel. However, if the user is unlikely to access all the panels in a panel stack, or if you want to optimize the initial load time of the document, you can specify that the panels load only when a user changes to a different panel. Note that this on-demand panel loading only occurs when the document is executed in MicroStrategy Web with DHTML enabled.
8 Format the panel stack, panels, and title bar (if displayed). For examples and procedures, see Formatting panels and panel stacks, page 410. 9 (Optional) Add a selector to allow the user to switch between panels. See Providing interactivity to users: selectors, page 418. By default, the title bar displays arrows that allow users to move through the panels. If you choose to hide the arrows or hide the title bar, add a selector, such as a radio button or pull-down list, to allow users to switch between the different panels of a panel stack. A selector can also display the names of the different panels, so that a user can tell at a glance which panel he wants to view. The arrow selectors on the title bar do not display the panel names.
399
2 If you used the Blank Dashboard template to create the document, only one section is displayed. If you used a different template: Expand the section where you want the panel stack by clicking the plus sign next to the section name.
section. You cannot add a panel stack in the Detailsrow of theSince controls in the Detail section are repeated once per dataset, the panel stack would be repeated on each row. 3 From the Insert menu, select Panel Stack or click the Panel Stack icon in the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 4 Click in the desired location in the Layout area. If you click and drag in the Layout area, you can size the panel stack. The panel stack is added to the document, with a single panel. Next, you can display a title bar (see below) or insert additional panels (see page 404).
You can choose to display the same title regardless of which panel is displayed. To do this, display the panel stack title instead of the panel name,
and then specify the title for the panel stack. The same panel stack is shown below, with the panel stack title displayed instead.
The following image shows a similar panel stack without a title bar.
401
The arrow on the left allows a user to display the previous panel in the panel stack. The arrow on the right is grayed out because this is the last panel in the panel stack. These arrows are displayed by default, but you can hide them from users by following the steps in To hide the panel selector arrows on the title bar, page 403. Hiding the arrows also disables changing panels in iPad documents by horizontal swiping. For background information on using selectors in iPad documents, see Allowing panel change with a horizontal swipe on iPad documents, page 823. If you hide the arrows or the title bar that they display in, you should create a selector that targets the panel stack and allows users to change panels. For instructions, see Methods to create a selector, page 426. The following procedures walk you through displaying or hiding the title bar, specifying the height of the title bar, and displaying or hiding the panel selector arrows. These procedures continue where the previous procedure, To insert a panel stack, page 399, finished. They assume you have already created a panel stack and are still in the Document Editor in Design View.
To display the title bar
2 In the Property List: View section, set Show title bar to True. A title bar is displayed on the panel stack in the Layout area. 3 By default, the name of the panel currently displayed on the panel stack is shown in the title bar. To display the title of the panel stack instead: Change Title bar display to Title of panel stack. The title of the panel stack is blank by default. To change it, type the desired text into the Title property.
1 Select the panel stack in the Layout area. 2 In the Property List: View section, set Show title bar to False.
To display the panel selector arrows on the title bar
1 Right-click the panel stack in the Layout area, and select Properties. The Properties dialog box opens. 2 On the General tab, select the Allow current panel to be changed without selector check box. arrows also enables changing panels in iPad Displaying thehorizontal swiping. For background information on documents by changing panels in iPad documents, see Allowing panel change with a horizontal swipe on iPad documents, page 823. 3 Click OK to return to the document.
To hide the panel selector arrows on the title bar
1 Right-click the panel stack in the Layout area, and select Properties. The Properties dialog box opens. 2 On the General tab, clear the Allow current panel to be changed without selector check box. iPad Hiding the arrows also disables changing panels ininformation on documents by horizontal swiping. For background
403
using selectors in iPad documents, see Allowing panel change with a horizontal swipe on iPad documents, page 823. 3 Click OK to return to the document.
To specify the height of the title bar
By default, the height of the title bar is .2 inches, but you can change it. 1 Select the panel stack in the Layout area. 2 In the Property List: View section, enter the height in the Title height property.
1 Right-click the panel stack, point to Panels, and then select Insert. The new panel is added to the panel stack, after the selected panel. The new panel is displayed on the panel stack, which means that is set as the the current panel. You can do any of the following next: Add another panel Rename a panel (see below) Change the display order of the panels (see page 406) Choose the panel to display initially (see page 407)
1 Right-click the panel stack, point to Panels, and select Display Next or Display Previous to display the panel to be copied. 2 Right-click the panel stack, point to Panels, and then select Duplicate. The new panel is added to the panel stack, after the selected panel. The new panel is displayed on the panel stack, which means that is set as the the current panel. You can do any of the following next: Add another panel Rename a panel (see below) Change the display order of the panels (see page 406) Choose the panel to display initially (see page 407)
To rename a panel
1 Right-click the panel stack, point to Panels, and then select Manage. The Panels tab of the Properties dialog box opens. 2 In the panel list, select the panel to rename. 3 Click Rename.
405
4 Type the new name in the panel list, and then press ENTER. 5 Click OK to return to the document.
If this display order is incorrect, you can move the panels to change the order. See the procedure below for instructions.
To change the display order of panels
This procedure continues where the previous procedure, To insert an additional panel in a panel stack, page 405, finished. 1 Right-click the panel stack, point to Panels, and then select Manage. The Panels tab of the Properties dialog box opens. only have panels, select Move Forward or If you Backwardtwo or threeManage. Since these options move one Move instead of panel at a time, using the Properties dialog box is more efficient if you have a large number of panels.
2 Select a panel in the list of panels, and select one of the options described below: Use Move Forward to incrementally move the selected panel forward in the panel stack. Use Move Backward to incrementally move the selected panel backward in the panel stack.
3 Click OK to return to the document. Next, you can specify the current panel, which is the panel that is initially displayed.
407
This procedure continues where the previous procedure, To change the display order of panels, page 406, finished. 1 Right-click the panel stack, point to Panels, and then select Manage. The Panels tab of the Properties dialog box opens. 2 Select the panel from the list of panels. 3 Click Set as Current to choose the selected panel to display initially. 4 Click OK to return to the document. The selected panel is displayed in the panel stack. Next, you can format the panel stack, individual panels, and (if displayed) the title bar.
You can define how panels are loaded at two levels: For all the panel stacks in the document (the document-level setting) For each panel stack
This allows you to easily set different panel load settings for different panel stacks. For example, a document contains multiple panel stacks. You want to pre-load all the panels of all the panel stacks, except for the panel stack that contains many panels. At the document level, define the default panel load setting to pre-load all panels. For the specific panel stack, specify that only the current panel is pre-loaded. Instructions for both levels follow.
To specify the default panel load setting for all panel stacks in a document
The document-level setting applies to all panel stacks that use the default panel load setting. You can change the panel load setting for specific panel stacks as well, as described in To specify how to load panels for a specific panel stack, page 410. applies to all layouts of a multi-layout document. For This settingof multi-layout documents, see Creating multi-layouta description documents, page 714. 1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Advanced. 4 Choose one of the Pre-load options: To pre-load all panels when the document is executed in MicroStrategy Web, unless the panel load setting for a specific panel stack is defined differently, select All panels of all panel stacks. To load only the current panel of all the panel stacks in the document, select Current panel only of all panel stacks. Other panels are loaded when the user requests them.
demand only in MicroStrategy Web Panels are loaded onFor instructions on enabling DHTML,whenthe DHTML is enabled. see MicroStrategy Web Help. 5 Click OK to return to the document.
409
1 Open the document using the Document Editor in Design View. 2 Right-click the panel stack to modify and select Properties. The Properties dialog box opens. 3 Select one of the following Pre-load (DHTML only) settings: To use the document-level setting, select Inherit from document. To pre-load all panels when the document is executed in MicroStrategy Web, select All panels. To load only the current panel when the document is executed in MicroStrategy Web, select Current panel only.
demand only in MicroStrategy Web Panels are loaded onFor instructions on enabling DHTML,whenthe DHTML is enabled. see MicroStrategy Web Help. 4 Click OK to return to the document.
descriptions of the various parts). The following table summarizes the formatting options available for each part of a panel stack.
Panel Stack Part Container The object that holds the actual control Formatting Options Borders, including 3D borders, drop shadows, and rounded corners (Flash only), as well as standard border options such as color and style Font Background color options, including gradients Background color options, including gradients
Title bar (Optional) Displays a title to identify the panel Individual panels The different pages or layers of information in a panel stack
In the image above, the panel named Panel2 is displayed, and its background is white. In the image below, Panel1 is displayed. Its background uses gradient colors, blending from black to grey.
411
Notice that the formatting of the border and the title bar do not change when different panels are displayed. Borders are applied to the panel stack and the title bar formatting is the same for all panels. The following procedure re-creates this example, using a variety of interfaces. Complete instructions for formatting panel stacks using various interfaces are provided in the Desktop Help. See also Deciding which interface to use to format panels and panel stacks, page 414 for information on formatting tasks and the interfaces to use.
To format a panel stack
2 Add a panel stack. Insert a second panel (Panel2) into the panel stack. This panel becomes the current panel (the panel currently displayed in Design View). For detailed instructions, see Inserting a panel stack, page 399 and Inserting additional panels in a panel stack, page 404. 3 Create a selector linked to the panel stack (set the target to the panel stack). Use a button bar for the selector style. For detailed instructions, see Providing interactivity to users: selectors, page 418. 4 Select the panel stack to begin formatting it.
To apply a 3D effect to the panel stack container
You can use either the Property List or the Format Objects dialog box to format the panel stack container. The following steps use the Property List. 5 To make the panel stack appear three-dimensional, set 3D Effect in the Property List: Appearance section to Raised. Raised outsets the panel stack like a button, as opposed to Sunken, which insets the panel stack like a pushed button. 6 Set 3D Weight to 3, to increase the thickness of the 3D line. This property is measured in points.
You can use the toolbar, the Property List, or the Format Objects dialog box to format the current panel, which is Panel2. The following steps use the toolbar. 7 Click the arrow next to the Fill icon in the toolbar and select White.
To change the current panel
Background formatting applies to the current panel only. By changing the current panel, you can format the background of each panel in the panel stack. 8 Right-click the panel stack, point to Panels, and then select Display previous. Panel1 is displayed and is now the current panel.
To apply a gradient color to Panel1
Gradient colors gradually change the background of the current panel from one color to another. The following steps use the Property List to apply the gradient color to the current panel. 9 In the Property List: Appearance section, set Backcolor to light grey. 10 Set Backstyle to Gradient. 11 Set Gradient color to black. 12 Set Gradient variant to Right to left, which sets the direction of the shading between the backcolor and the gradient color. The backcolor (grey) is shaded into the gradient color (black) from right to left.
To format the title bar
Use the Format Objects dialog box to format the title bar. 13 Right-click the panel stack and select Format. The Format Objects dialog box opens. 14 In the object list on the left, click Title. 15 On the Background tab, select Grey-50% as the Fill color. 16 On the Font tab, select Arial as the Font Name. 17 Set Italic to Yes.
413
The following table presents formatting tasks and the most effective interface to use for each.
To Format.... Borders, which apply to the entire panel stack: Standard border options such as color and style 3D borders and drop shadows Rounded corners (displayed in Flash Mode only) The background of the current panel (the panel currently displayed on the panel stack) Gradient colors for the background of the current panel Use... Formatting toolbar, right-click menu, or Property List, as follows: Formatting toolbar or right-click menu Property List Property List Formatting toolbar Property List
To Format.... The title bars font and background Different areas of the panel stack (borders of the panel stack, title bar, and background of the current panel)
Use... Format Objects dialog box (select Title in the object list) Format Objects dialog box (select Container in the object list)
You can format the background of each panel in the panel stack by changing the current panel.
This table applies to formatting panels and panel stacks in Desktop only; panel and panel stack formatting in MicroStrategy Web differs slightly. For details, see the MicroStrategy Web Help.
415
information, such as an expanded description of the panel stack. For an example, see Creating a pop-up tooltip, page 162. Display information to other document designers in Design View while hiding it from users viewing the document in PDF View (Desktop and Web) and Interactive Mode, Editable Mode, and Express Mode on MicroStrategy Web. To do this, you hide the control that contains the information by using the Visible property. For instance, you could include a graph with additional details about the data in a panel stack. For an example, see Hiding a control, page 164. Enable a transition animation for Flash Mode in MicroStrategy Web. A transition animation is a visual transition that occurs when a panel is first displayed in Flash Mode. Examples are Blur, Fade, and Iris. For more information, see Enabling transition animations in Flash, page 492.
Example: Formatting a panel stack, page 411 provides some formatting instructions; Displaying rounded corners on panel stacks (Flash Mode only) below contains an example of rounded corners and procedures to define them. For complete instructions for formatting panel stacks and panels using various interfaces, see the Desktop Help.
The rounded corners properties apply to Flash Mode only. In PDF View or other Web display modes, rounded corners display as square, right-angle corners.
You can control how rounded corners are displayed for panel stacks in Flash Mode by: Defining the radius, which sets how round the corners are. A larger radius produces a more rounded corner. The range is 1-20. Selecting whether rounded corners are displayed for all four corners or only for the top corners.
In the image above, notice that the corners of the panel stack on the upper right are more rounded than those on the upper left. The corner radius of the right panel stack is set to the maximum of 20, while the left panel stack has a radius of five. Notice also that the right panel stack has rounded corners on the top only, while all four corners of the left panel stack are rounded. The following procedure re-creates the sample. rectangles also use rounded corners. For information on Roundedrectangles, see Inserting images in a document, page 130; rounded for information on controlling how rounded rectangles are displayed, see Controlling the display of rounded corners in Flash Mode, page 178.
To display rounded corners for panel stacks in Flash Mode
1 Open a document using the Document Editor in Design View. 2 Add three panel stacks, as shown in the sample above. For a procedure to create panel stacks, see Layering data on dashboards: panels and panel stacks, page 392. 3 In the Layout area, select the rectangle on the bottom. 4 In the Property List: Appearance section, set Use rounded corners to False. 5 In the Layout area, select the rectangle on the upper right. 6 Set the Rounded corner radius to 20. The range for the corner radius is 1 to 20. Higher numbers produce a more rounded corner, while lower numbers produce a straighter corner.
417
7 By default, all four corners are rounded. To round the top corners only, set Top corners only to True. the upper left uses The panel stack oncorners and a radiusthe default settings (roundedto corners on all four of five), so no changes need be made to it. To view the effect, open the document in Flash Mode in MicroStrategy Web.
The items of the selector are the buttons across the top, and the target is the panel stack. For more information on panels, see Layering data on dashboards: panels and panel stacks, page 392. Display different metrics or different elements of attributes, custom groups, or consolidations in a Grid/Graph.
For example, a Grid/Graph contains Region, Call Center, Year, and various metrics, as shown in the example below. This particular selector allows the user to select which regions to display on the Grid/Graph. The user can therefore slice or filter the Grid/Graph by the selected region or regions. Similarly, a selector can allow the user to select which metrics to display. All regions and employees would be displayed, but with only the metrics chosen in the selector.
In this example, the regions listed in the selector are the items of the selector; the target is the Grid/Graph. For more information on Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. Filter data based on a metric's values. This type of selector can be either of the following styles:
A slider, which the user moves to select the minimum and maximum values to display. For example, a document contains a Grid/Graph with Region and the Revenue, Cost, and Profit metrics. A selector displays the range of revenue values, and a user can move the slider to select the minimum and maximum revenue to display or to hide.
419
A qualification, which the user completes to filter the metric's values. This type of metric condition selector allows a user to select the operator (equals, greater than, between, and so on) and to type the value to filter on. For example, given the same regional Grid/Graph described above, a user could display only the revenue values greater than $5,000,000 or only the top-ranking 5 regions in term of revenue.
If a title bar is displayed for the selector, a user can also select whether to filter on the metric values or rank. Filter another selector. For example, a document contains a Grid/Graph with Subcategory and Item, filtered to display only the Books category. The document also includes two selectors. One selector displays the subcategories in the Books category (the Subcategory selector), while the other selector contains a list of individual books (the Item category). Both selectors target the Grid/Graph, to display data for the selected Subcategory and Item. The Subcategory selector targets the Item selector, filtering the Item selector to display only the books in the subcategory chosen in the Subcategory selector. For example, if the user selects Literature from the Subcategory selector, the Item selector is updated to display only books that fall under the Literature subcategory, instead of displaying a long list of every available book. This is shown below:
Display different elements of attributes, custom groups, or consolidations in a panel stack using dynamic text fields. A dynamic text field is a text
field populated by the dataset; it is essentially a reference to an object on a report. For example, a panel contains the dynamic text fields Region and Revenue from the Basic Report dataset. The image below shows the panel in Design View; the dynamic text fields are indicated by braces { }.
The selector allows the user to select which region to display on the panel. The following image shows the same selector and panel in Interactive Mode in MicroStrategy Web. Mid-Atlantic has been selected from the drop-down list of the selector. Mid-Atlantic replaces {Region}, and the revenue amount for the Mid-Atlantic region replaces {Revenue}.
In this example, the regions listed in the drop-down list are the items of the selector; the target is the panel stack. For more information on dynamic text fields, see Adding text and data to a document, page 51. An element selector or a metric condition slider selector can include or exclude the selected data. For example, the attributes that a user chooses in the selector can display in the target, or they can be hidden. If the selector title bar is displayed, a user can change between including or excluding the selections. For an example, and instructions to define the default behavior, see Determining whether the selector includes or excludes data: selection type, page 441. For instructions to display the title bar, see Displaying title bars in selectors, page 473. A selector can target multiple objects. The same selector can control both a Grid/Graph and dynamic text fields on the same panel. As described in the "filter another selector" example above, the same selector can target both a Grid/Graph and another selector. A selector can either filter or slice the data. The selections made in a filtering selector are used to filter the underlying dataset before the metric values are
421
aggregated at the level of the Grid/Graph that is displayed in the document. The selections made in a slicing selectors are used to determine which slices of data are combined and shown in the Grid/Graph. For more details on the differences, including examples, see Applying selections as filters or slices, page 435.
Defining a selector
When you add a selector to a document, you must define how it looks and what it controls. The following properties define a selector: DHTML style is how the items in the selector are displayed in Editable, Interactive, and Express Mode in MicroStrategy Web. (Items are the elements, metrics, or panels, as described in the examples above.) The DHTML style options are:
Check Boxes
Drop-down
Listbox
423
Qualification (available only for metric condition selectors; allows users to complete the metric qualification)
Radio Buttons
Slider (most effective selector for browsing data in a graph; also available for metric condition selectors)
Place the graph slider under or above the graph it will control, then specify the graph as the target of the slider selector. Next, specify one of the attributes or metrics in the graph as the selector's source. This allows an analyst to drag the slider to view different sets of data in a graph and to adjust the size of the slider to view different ranges of values in the graph. Flash Style is how the selector is displayed in Flash Mode in MicroStrategy Web if it is an interactive Flash-only selector. The options are listed below:
Automatic: The default, which uses the DHTML Style (described above) for Flash Mode. Fish Eye Selector: An interactive style of selector that is displayed only in Flash Mode. It magnifies an item when a user hovers the cursor over it. This style of selector is useful because it allows a user to choose from a large list of elements without having to see all of the elements displayed at one time. Any item that a user hovers over or selects remains magnified, while the remaining items are minimized and hidden from view.
Since a Fish Eye Selector is displayed only in Flash Mode, determine how the selector is displayed in non-Flash modes by specifying a DHTML Style (described above). For more information about creating this type of selector, and an example, see Creating a Fish Eye Selector, page 638.
Date Selection: An interactive style of selector that is displayed only in Flash Mode. It is a calendar selector that allows you to select which dates you want to see data about in a document. You are able to see all of the dates of each month in the widget, which allows you to be able to select dates more easily. Since a Date Selection widget is displayed only in Flash Mode, determine how the selector is displayed in non-Flash modes by specifying a DHTML Style (described above). For more information about creating this type of selector, and an example, see Creating a Date Selection widget, page 650.
Action Type determines whether the selector displays elements, metrics, metric conditions (such as "greater than $5,000"), or panels. Source is the attribute, custom group, or consolidation whose elements are displayed in the selector (for an element selector) or the metric whose values are qualified on (for a metric condition selector). Selection Type determines whether the selector includes or excludes the selected items from the target. It is available only for element selectors and metric condition slider selectors. For example, the attributes that a user chooses in the selector can display in the target, or they can be hidden. If the selector title bar is displayed, a user can change between including or excluding the selections. For instructions to define the default behavior, see Determining whether the selector includes or excludes data: selection type, page 441. Qualify on determines whether the selector filters metric values or rank, and is available only for metric condition selectors. The options are:
Value filters the metric's values. Rank Highest ranks the metric's values in descending order, and then filters by rank. For example, Rank Highest=2 displays the two highest values. Rank Lowest ranks the metric's values in ascending order, and then filters by rank. For example, Rank Lowest=2 displays the two lowest values.
425
Rank % Highest ranks and filters by the number of metric values (or rows) in the target, in descending order. For example, if the target Grid/Graph contains eight items, the Rank % Highest =25 displays the two highest values. Rank % Lowest ranks and filters by the number of metric values (or rows) in the target, in ascending order. For example, if the target Grid/Graph contains eight items, the Rank % Lowest =25 displays the two lowest values.
If a title bar is displayed for the metric condition selector, a user can change this setting. Target(s) are the Grid/Graphs, panel stacks, and/or other selectors that the selector affects.
If targets are automatically maintained in the layout, attribute and metric selectors automatically target all Grid/Graphs and panel stacks that are in the same panel or document section as the selector. If targets are not automatically maintained, you must manually select the targets when you create selectors. You must always select the target for panel selectors, regardless of whether targets are automatically maintained. To choose another selector as the target of this selector, you must disable automatic target maintenance and manually select the target. You can keep automatic target maintenance if you can place the target selector on a panel in the same document section as the source selector; the source selector will automatically target that panel stack.
For instructions to disable automatic target maintenance, as well as the advantages and disadvantages of automatic and manual target selection, see Automatically maintaining targets for selectors, page 443.
not need to manually select the targets. You must always select targets for panel selectors, regardless of whether targets are automatically maintained. To target another selector, automatic target maintenance must be disabled. Alternatively, you can keep automatic target maintenance if you can place the target selector on a panel in the same document section as the source selector; the source selector will automatically target that panel stack. For more information on automatically maintaining targets, including how to enable and disable it, see Automatically maintaining targets for selectors, page 443.
To Create a New Selector... With a panel stack as the target. Do This... Right-click the panel stack and select Insert Panel Stack Selector. Note that you cannot use check boxes with a panel stack, since check boxes allow multiple selections and multiple panels cannot be displayed simultaneously. In Desktop, insert a selector. Change the action type of the selector to metrics, as described below this table. If targets are not automatically maintained, specify the Grid/Graph to use as the target. In Web, right-click the word Metrics on the Grid/Graph and select Create Selector Control. In Desktop, insert a selector. Specify the attribute, custom group, or consolidation to use as the source, as described below this table. If targets are not automatically maintained, specify the Grid/Graph to use as the target. In Web, right-click the attribute, custom group, or consolidation on the Grid/Graph and select Create Selector Control. Insert a selector. Change the action type of the selector to metric condition, as described below this table. Select whether to display the selector as a slider or a qualification which the user completes to filter the metric's values. Specify the metric to use as the source. Select whether to filter the metrics values, rank, or percent rank. If targets are not automatically maintained, specify the Grid/Graph to use as the target. For descriptions of these options, see Creating selectors that filter metric values, page 432. Right-click the attribute in the Datasets pane and select Create Selector. If targets are not automatically maintained, the new selector does not have a target. Therefore, you must specify the Grid/Graph or panel stack to use as the target, as described below this table.
427
To Create a New Selector... That is formatted differently in Flash Mode and becomes interactive when a user hovers the cursor over it. An example is the Fish Eye Selector, which magnifies the item that is hovered over, while the remaining items are minimized and displayed in the background of the selector. For an example, see Creating a Fish Eye Selector, page 638. That updates a dynamic text field on a panel stack.
Do This... Click the Selector icon in the toolbar, and then select Fish Eye. Next, click in the Layout area to add the selector. The default action type is Select Elements, although you can change it to select metrics or panels. If targets are not automatically maintained, the new selector does not have a target. Therefore, you must specify the Grid/Graph or panel stack to use as the target, as described below this table. The Fish Eye style is viewable only in Flash Mode in MicroStrategy Web. By default, it is displayed as the Listbox style in other modes and views; to change that, select a different DHTML style. Insert a selector. Specify the attribute for the source. If targets are not automatically maintained, the new selector does not have a target. Therefore, you must specify the panel stack to use as the target, as described below this table. Do one of the following: From the Insert menu, point to Selector, and then choose the style from the list. Click the arrow next to the Selector icon on the toolbar, and then choose the style from the list. Next, click in the Layout area to add the selector. The default action type is Select Elements, although you can change it to select metrics or panels. If targets are not automatically maintained, the new selector does not have a target. Therefore, you must specify the Grid/Graph or panel stack to use as the target, as described below this table.
Click the Selector icon in the toolbar. Click in the Layout area to add the selector. The default action type is Select Elements, although you can change it to select metrics or panels, or metric condition. If targets are not automatically maintained, the new selector does not have a target. Therefore, you must specify the Grid/Graph or panel stack to use as the target, as described below this table.
Insert the target selector (the one to be filtered by the source selector). If you want to keep automatic target maintenance, ensure that the target selector is on a panel in the same document section as the source selector (the selector that affects the target). Insert the target selector. Specify the attribute for the source. If you want to select the targets manually, disable automatic target maintenance, then select the target selector and target Grid/Graph or panel stack.
a Grid/Graph a selector You canaalso use an attribute onGrid/Graph. Ifas user clicksthat targets panel stack or another a an attribute on the first Grid/Graph, the target changes to display
428 Providing interactivity to users: selectors
information for only that attribute. For more information, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486. After you create a new selector, you can use the Property List or Properties dialog box to change any properties, such as style or action type, of the selector. For example, the default DHTML style of a new selector is a drop-down list, which may not always suit your needs. If automatic target maintenance is enabled, you cannot change the targets of the selector in either interface. In the Properties dialog box, however, you can disable automatic target maintenance for the entire layout, if you desire. For more information about automatic target maintenance, including the effects of enabling or disabling it, see Automatically maintaining targets for selectors, page 443. The Property List is the easier method to use, as it is displayed on the same screen as the Layout area. The target selection mode, described in the next section, allows you to quickly and easily choose the target of the selector.
(see This procedure assumes you have already created a selector are in Methods to create a selector, page 426 for procedures) and Design View in Desktop. 1 Right-click the selector and choose Select Targets. The selector is outlined in orange to indicate target selection mode is on.
429
2 Click the Grid/Graph, panel stack, or selector to specify as the target. The sizing handles of the target are displayed in orange.
3 To select multiple targets, use CTRL+click, that is, hold down the CTRL key while you click each control. 4 Click anywhere in the Layout area to turn target selection mode off. The next section provides a procedure for creating and defining a selector for a Grid/Graph using the toolbar and the Properties dialog box. For procedures to create selectors with other interfaces and methods, see the Desktop Help.
1 Create a new document in Desktop. To re-create the example, select the following report as the dataset: Reports\MicroStrategy Platform Capabilities\ Advanced Reporting Guide\01 Basic Report 2 In Design View, click the plus sign next to the section name where you want the Grid/Graph in the Layout area. This expands the section. 3 Click and drag the Grid/Graph into the section.
4 Click the arrow next to the Selector icon in the toolbar, and then choose the style of selector from the drop-down list. The style determines how the selector is displayed. For this example, choose Check Boxes. See Defining a selector, page 423 for a description and example of each style. When you move the cursor into the Layout area, the pointer changes to crosshairs. 5 Click in the desired section of the Layout area. If you click and drag in the section, you can size the selector. The selector is added to the document.
Define the selector
6 Right-click the new selector, and select Properties. The Properties dialog box opens.
You can also set these properties using the Property List.
7 Click the Selector tab, and choose Select attribute element as the Action Type. When the document is displayed in MicroStrategy Web, the selector displays a list of the elements from the attribute selected in the Source field. 8 Select the attribute in the Source drop-down list. In the example we are re-creating, Region is selected. The Source list contains all of the attributes in all of the datasets in the document. The selector displays the attribute elements of the attribute selected as the Source. 9 Select the target by doing one of the following: If the Available targets and Selected targets lists are unavailable, targets are automatically maintained. The Selected targets list contains all the Grid/Graphs and panel stacks in the same document section as the selector. In this example, that is the Grid/Graph you added above. If the Available targets and Selected targets lists are available, targets are not automatically maintained and you must manually specify the target of the selector. From the list of Available targets on the left, select the Grid/Graph and click > to add it to the list of Selected targets.
431
For background information on automatic target maintenance, see Automatically maintaining targets for selectors, page 443. 10 For Slider, Radio Buttons, Check Boxes, Link Bar, and Button Bar selector styles, the Orientation option is available. You can select whether to display the selector horizontally (on a single line from left to right) or vertically (in a single column). The example we are re-creating lists the elements vertically. 11 Click OK to return to the document.
Add a border to the selector
The example uses a border to outline the selector. Other formatting options, such as fonts and colors, are discussed in Formatting selectors, page 476. 12 Right-click the selector, point to Border, and then choose All.
For a slider, you can choose to either include or exclude the values from the target. This means that the values that a user chooses in the selector can display in the target, or they can be hidden. If the selector title bar is displayed, a user can change between including or excluding the selections. For examples, see Determining whether the selector includes or excludes data: selection type, page 441. In addition, if the selector title bar is displayed, a user can change whether the selector filters on metric values, ranks, or percent ranks. A qualification, which the user completes to filter the metric's values. This type of metric condition selector allows a user to:
Select whether to filter on the metric values or ranking Select the operator (equals, greater than, and so on) Type the value to filter on
For example, given the same regional revenue Grid/Graph described above, a user could display only the revenue values greater than $5,000,000 (as shown in the example below) or only the top-ranking 5 regions in term of revenue. After the user completes the qualification, he to apply the qualification. clicks the check mark
433
To change whether the selector filters on metric values, ranks, or percent ranks, the user clicks the down arrow in the title bar to open the drop-down list, as shown below:
For either a slider selector or a qualification selector, the title bar contains a drop-down list to select whether to filter on metric values, ranks, or percent ranks, as described below. If the title bar is hidden, the option chosen when the selector was defined is used. For instructions to display the title bar, see Displaying title bars in selectors, page 473. Value filters the target by the metric's values. Rank Highest ranks the metric's values in descending order, and then filters by rank. For example, Rank Highest=2 displays the two highest values. Rank Lowest ranks the metric's values in ascending order, and then filters by rank. For example, Rank Lowest=2 displays the two lowest values. Rank % Highest ranks and filters by the number of metric values (or rows) in the target, in descending order. For example, if the target Grid/Graph contains eight items, the Rank % Highest =25 displays the two highest values. Rank % Lowest ranks and filters by the number of metric values (or rows) in the target, in ascending order. For example, if the target Grid/Graph contains eight items, the Rank % Lowest =25 displays the two lowest values.
You can choose to either automatically maintain the targets of attribute and metric selectors, or manually define these targets. If targets are automatically maintained in the layout, attribute and metric selectors automatically target all Grid/Graphs and panel stacks that are in the same panel or document section as the selector. If targets are not automatically maintained, you must manually select the targets when you create all types of selectors.
For more information on automatically maintaining targets, including instructions to enable or disable it, see Automatically maintaining targets for selectors, page 443. For complete instructions to create a metric condition selector, refer to the Desktop Help.
All metric condition selectors, which filter metric values or ranks, and selectors that target other selectors are filtering selectors. You
cannot change them to slicing selectors. Slicing means that the data for each available item in the selector is calculated in advance when the document is first displayed. The selections are used to determine which slices of data are combined and shown in the Grid/Graph. Even if the source attribute is not included in the Grid/Graph, the data is still sliced at the level of the source attribute, and therefore the metric values from multiple selected items are not added together. Instead, the data for each selected element is shown separately in the Grid/Graph, the same as if the source attribute had been included in the Grid/Graph.
435
For example, the dataset report of a document contains Region, Year, and the Revenue metric. A Grid/Graph displays Year and Revenue only, and is targeted by a selector with Region as its source. The selector is defined to slice the data. When Central is selected, three rows, one for each year, are displayed, as shown below:
If you select Mid-Atlantic as well as Central, six rows are displayed, two for each year, as shown below:
This occurs because the selector slices the data by region before the user selections are made, and cannot aggregate the slices for multiple regions. If you change the selector to filter rather than slice the data, the yearly revenue is aggregated across the selected regions. The yearly revenue is
calculated by adding the Central and Mid-Atlantic values for each year, and only one row for each year is displayed in the Grid/Graph, as shown below:
Other important differences between filtering and slicing selectors are described below: Slicing allows the total to be displayed as an item in the selector. A filtering selector does not display the total as a selector item. (For background information on selector totals, see Showing totals for selectors, page 471.) Slicing allows you to specify that the selector automatically uses a default selection when other changes in the document cause the selection made by the user to return no data. Default selections are not available for filtering selectors. (For background information on default selections, see Determining how the target of a selector displays when no data exists, page 458.) Slicing is performed on Intelligence Server in Express Mode in MicroStrategy Web and on the client in Flash Mode in MicroStrategy Web. Filtering is performed on the Intelligence Server in both modes. This means that when a user chooses different items in a selector, a call is made to the web server to update the document, except when a slicing selector is used in Flash Mode. In that case, the web server is not called, which can make the document run faster as users change selections. In contrast, a filtering selector can speed up the initial load time of a document in Flash Mode, since all the slices do not need to be initially downloaded to the client. If a selector is sliced, you can define the current state, which determines how the target is displayed when the document is executed. The target can display all the selector items, a specific number of the first items, or a specific number of the last items. If a selector is filtered, you can define the current state as unset only, which displays all the selector items. For more information on the different states, see Determining how the target of a selector displays (current state), page 463.
437
For example, the dataset report of a document contains Region, Year, and the Revenue metric. A Grid/Graph displays Year and Revenue only, and is targeted by a selector with Region as its source. The selector is applied as a filter. Only Central is selected, and the document is exported to a Flash file to be used off-line, without using MicroStrategy. The Flash file contains only the data for Central, and no other selections can be made. If the selector is applied as a slice instead, all the data is sliced and included in the Flash file. Even if only the Central region is selected when the document is exported, you can use the selector in the Flash file and display other regions. to export dashboard to For instructionsDocument aAnalysis GuideFlash, see the Help. MicroStrategy or the Desktop
All metric condition selectors, which filter metric values or ranks, and selectors that target other selectors are filtering selectors. You
cannot change them to slicing selectors. A specific target is sliced or filtered by a selector, allowing you to filter one target and slice another using the same selector. See To apply selections as a filters or slices for a specific target, page 440. Selectors in the entire document slice or filter the data. This document-level property is used to define the behavior of new selector targets, except when the target being added is already the target of
another selector that uses the same source. In that case, the target uses the behavior defined in the other selector. For instructions, see To apply selections as filters or slices (document-level), page 440. For example, at the document level, selectors are defined as filters.
Selector1 targets Grid/Graph1 as a filter, using Region as the source. Selector2 targets Grid/Graph2 as a slice, using the same attribute, Region, as the source. The document also contains a third Grid/Graph, which is not the target of any selectors.
Open Selector1 and add Grid/Graph2 as a target. It is automatically defined as a slice, because Grid/Graph2 is already the target of Grid/Graph2, and both use the same attribute, Region. Add Grid/Graph3 as a target to Selector1. It is automatically defined as a filter, because Grid/Graph3 is not already the target of another selector.
To apply selections as filters or slices for a specific selector
1 Open the document in Design View in the Document Editor. 2 Right-click the selector to update, and select Properties. The Properties dialog box opens. 3 Click the Selector tab. 4 To define how the selector is applied to all targets, do one of the following: To apply the selections as a filter, select the Apply selections as a filter check box. To apply the selections as a slice, clear the Apply selections as a filter check box.
If Apply a applied asselections asandfilter is unavailable, the selector isthe both a filter a slice for different targets. Use Type column in the Selected targets list instead, as described below.
439
5 To define how the selector is applied to a specific target, change the Type in the Selected targets list. This allows you to filter one target and slice another using the same selector. 6 Click OK to return to the document.
To apply selections as a filters or slices for a specific target
1 Open the document in Design View in the Document Editor. 2 Right-click the selector to update, and select Properties. The Properties dialog box opens. 3 Click the Selector tab. 4 In the Selected targets list, select the Type for the target that you want to change. 5 Click OK to return to the document.
To apply selections as filters or slices (document-level)
This document-level property is applied to all new selectors that do not have a target, except when the new target is already the target of another selector that uses the same source. 1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Click Document in the list on the left. 4 Do one of the following: To apply the selections as a filter, select the Apply selections as a filter for all new targets check box. To apply the selections as a slice, clear the Apply selections as a filter for all new targets check box.
441
By clicking in the title bar, a user can switch to hiding the selected regions. Notice in the image shown below that Northeast and Northwest are now crossed out. (Only a portion of the full Grid/Graph is shown below.)
procedure assumes you have already created an Thismetric condition slider selector. For instructions,element selector or a see Methods to create a selector, page 426.
To define the default selection type
1 Open the document in Design View in the Document Editor. 2 Right-click the selector to update, and select Properties. The Properties dialog box opens. 3 Click the Selector tab. 4 From the Selection Type drop-down list, select either Include or Exclude. If the selector's title bar is not displayed, then this setting is used. If the selector's title bar is displayed, this is the default and a user can change between including or excluding the selections. 5 Click OK to return to the document.
are not panel selectors; Targetsmanuallyautomatically maintained forselectors. For you always define the targets for panel instructions, see Methods to create a selector, page 426. For example, a document has automatic target maintenance enabled. The document contains the following objects, as shown in Design View below: Grid/Graph 1 in the Document Header section Grid/Graph 2 in the Detail Header section
443
Insert a selector (Selector 1) into the Document Header, and another (Selector 2) into the Detail Header. Selector 1 automatically targets Grid/Graph 1, as shown in the Property List below, since they are both in the same document section.
Selector 2 automatically targets Grid/Graph 2 and Panel Stack 1, as shown in the Properties dialog box below, since all three objects are in the same document section. Grid/Graph 1 is not a target of Selector 2. (You can tell that automatic target maintenance is enabled, because the
Available targets list and arrow buttons are grayed out, and the Manual Targets button is available.)
The selectors are not completely defined by the automatic target maintenance. They do not have a Source, as shown in the Property List image above. For both selectors, define the Source as Region. Open the document in Interactive Mode in MicroStrategy Web. Select Mid-Atlantic in Selector 1 (the selector above Grid/Graph 1), and Central in Selector 2 (the selector above Grid/Graph 2). The document displays as shown below:
445
Grid/Graph 2 displays data for the region chosen in Selector 2 (Central). Panel Stack 1 will display the region name chosen in Selector 2 (Central).
Insert a second panel stack (Panel Stack 2) in the Detail Header section. The new panel stack is automatically added as a target of Selector 2. Add the Region attribute to Panel Stack 2. When you view the document in Interactive Mode in MicroStrategy Web, Panel Stack 2 displays the region name chosen in Selector 2, which is Central in the document sample shown below:
Insert a panel stack selector for Panel Stack 1 (right-click the panel stack and select Insert Panel Stack Selector). The new selectors target is defined as Panel Stack 1, and the selector will change which panel is displayed in the target. A panel stack selector automatically targets the panel stack that it is created for; targets are not automatically maintained for panel stack selectors. If the automatic target maintenance applied to panel stack selectors, both Panel Stack 1 and Panel Stack 2 would be targeted, since both panel stacks are in the same document section as the selector. When you view the document in Interactive Mode in MicroStrategy Web, Panel Stack 1 displays the panel chosen in the panel stack selector. In the following
example, the panel stack selector has been used to select Panel 2. Note that Panel Stack 1 now displays Panel 2, rather than a region name.
on a Grid/Graph can be a selector that targets a An attributeor another Grid/Graph. Ifused as clicks an attribute on the panel stack a user first Grid/Graph, the target changes to display information for only that attribute. Automatic selector maintenance applies to these types of selectors, as well. All the Grid/Graphs and panel stacks in the same document section or panel as the selected Grid/Graph are automatically chosen as targets. For more information, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486.
447
1. (You can insert additional document sections as necessary; see Inserting additional sections in documents, page 45 for instructions.) If an object is moved between panels or document sections, selector targets are updated to automatically maintain the targets. For example, Selector 1 targets Panel Stack 1, located in the Document Header section. The Detail Header section contains Selector 2, which targets Panel Stack 2 and Grid/Graph 1 which are also in the Detail Header section. If you move Panel Stack 2 from the Detail Header to the Document Header: Selector 1 now automatically targets Panel Stack 2, as well as Panel Stack 1. Selector 2 now automatically targets only Grid/Graph 1.
If you cannot move controls, you can place them in different panel stacks in the same document section. Make the panel stack invisible by using a transparent background and no borders, and hiding the title bar. For example, a document contains two Grid/Graphs, 01 Basic Report and Region-Category Inventory, in the Detail Header, as shown in Design View below.
You need a selector in the Detail Header that targets only the Basic Report. When a user selects a different region, the Basic Report should change, but never the Inventory report. Automatic target maintenance is enabled in the layout, because you want targets in other parts of the layout to continue to be automatically updated when you add new panel stacks and Grid/Graphs. If you add the selector in the Detail Header, it will target both the Basic Report and the Inventory report. Instead, create a panel stack in the Detail Header, and format it to be invisible (a transparent background, no borders, and hidden title bar). Move the Basic Report into the panel stack. Add a
selector to the panel stack. The selector targets the Basic Report, because they are on the same panel stack. The selector does not target the Inventory report, because the Inventory Report, although in the same document section as the selector, is not on the same panel stack. The following image of the Selector tab of the Properties dialog box for the selector shows that: 1 Automatic target maintenance is enabled (the Available targets and Selected targets lists are unavailable) 2 Only the Basic Report is selected as a target
The document is shown below, in Interactive View in MicroStrategy Web. Notice that you do not see the panel stack at all.
449
Click the Southeast button on the selector to display data for only Southeast in the Basic Report. The Inventory report does not change, as shown below:
Grid/Graph 1 Selector 1, which targets Grid/Graph 1 to display data about the selected Region
Grid/Graph 2 Panel Stack 1 Selector 2, which targets Grid/Graph 2, to display data about the selected region, and Panel Stack 1, to display the selected region name Panel Stack Selector, which targets Panel Stack 1 to switch panels
Disable automatic target maintenance. The selector targets remain the same, but you can now modify them manually, as shown in the Properties dialog box below:
Add another selector to the Detail Header section. No targets are automatically defined, so you must manually define the targets.
To disable automatic target maintenance while editing a selector
This procedure assumes that you are editing the properties of a selector. 1 On the Selector tab of the Properties dialog box, click Manual Targets. A warning message opens, indicating that you will need to manually maintain targets if you disable automatic target maintenance. 2 Click OK. You are returned to the Properties dialog box. Automatic target maintenance has been disabled for all selectors in the layout.
To disable automatic target maintenance
1 Open the document in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens.
451
3 Click Layout in the list on the left. 4 Clear the Automatically maintain targets for all selectors in this layout check box. 5 Click OK to return to the document.
Grid/Graph 1 Selector 1, which targets Grid/Graph 1 and Grid/Graph 2 to display data about the selected Region
Grid/Graph 2 Panel Stack 1 Selector 2, which targets Panel Stack 1 to display the selected region name Panel Stack Selector, which targets Panel Stack 1 to switch panels
Notice that Selector 1 targets Grid/Graph 2, which is not in the same document section as the selector. Enable automatic target maintenance. The targets of all existing selectors are redefined to those Grid/Graphs and panel stacks in the same document section as the selector. Now the document contains the following objects: In the Document Header section:
Grid/Graph 1
Selector 1, which targets Grid/Graph 1 to display data about the selected Region (Grid/Graph 2 has been removed from the target list)
Grid/Graph 2 Panel Stack 1 Selector 2, which targets Grid/Graph 2 to display data about the selected Region, and Panel Stack 1 to display the selected region name (Grid/Graph 2 has been added to the target list) Panel Stack Selector, which targets Panel Stack 1 to switch panels (panel stack selectors are not affected by automatic target maintenance)
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Click Layout in the list on the left. 4 Select the Automatically maintain targets for all selectors in this layout check box. 5 Click OK to return to the document.
453
Use the Allow multiple selections option to determine whether users can select more than one item in a selector. For all other styles, this option is unavailable, since those styles do not support multiple selections.
The Check Boxes style always allows multiple selections; you cannot change the Allow multiple selections option.
To allow multiple selections in a selector
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Properties. The Properties dialog box opens. 3 On the Selector tab, select the Allow multiple selections check box. 4 Click OK to return to the document.
To disable multiple selections in a selector
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Properties. The Properties dialog box opens. 3 On the Selector tab, clear the Allow multiple selections check box. 4 Click OK to return to the document.
target. The user can pick either a single item or multiple items, and then click Apply to update the target.
For metric condition selectors that use a qualification, the user must click the check mark to apply the qualification to the target.
The Automatically apply selector changes option is set for an entire document or dashboard, not for an individual selector. displayed only if the apply The Apply button isoption is disabled andAutomatically or selects an selector changes the user clears item in the selector.
To disable automatic submission for a document or dashboard
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 On the Document tab, clear the Automatically apply selector changes check box. 4 Click OK to return to the document.
455
clicked (All) in the selector, so all the regions are displayed on the Grid/Graph.
The All option is displayed by default in a selector, but you can remove it by disabling the Show option All property. The same document, with this property disabled, looks like the following:
Now a user can only display each region separately; he cannot display all regions simultaneously. option not available the selector is panel The Allsince youiscannot displaywhen the target ofsimultaneously.a It is stack, multiple panels also unavailable for metric condition selectors.
To disable simultaneous display of all items
1 Open the document using the Document Editor in Design View. 2 Select the selector to modify. 3 In the Property List: Data section, set Show option All to False.
You can also use the Properties dialog box to change the property.
456 Providing interactivity to users: selectors
2011 MicroStrategy, Inc.
1 Open the document using the Document Editor in Design View. 2 Select the selector to modify. 3 In the Property List: Data section, enter the new name of the item in the Alias for All property.
You can also use the Properties dialog box to rename the All option.
457
In Interactive Mode in MicroStrategy Web, choose Central in the regional selector. The first Call Center, Milwaukee, is displayed in the Grid/Graph, as shown below in Interactive Mode. Notice that the call center selector automatically shows Milwaukee as selected.
Select Fargo in the call center selector, and the Grid/Graph is updated, as shown below.
Click Central in the region selector to clear it. Since no regions, and therefore no call centers, are selected, the Grid/Graph cannot display any data. A message is displayed that no data exists, as shown below:
Select Northwest in the regional selector. The Grid/Graph displays a message that no data is returned, and no call center is selected in the call center selector. The Grid/Graph tries to return data that is both Region = Northwest and Call Center = Fargo, but no such data exists, as shown below.
To automatically display the first Call Center in the new Region instead, allow the call center selector to be automatically updated. If you follow the same path as before, when you select Northwest in the regional selector, the
459
Grid/Graph is updated to display San Francisco, as shown below. Notice that the call center selector shows San Francisco as selected.
Prerequisites
Before you can allow a selector to be automatically updated, the following requirements must be met: The selector that you want to be automatically updated must be both: On a panel. A slicing selector, not a filtering selector. For a comparison of filtering and slicing selectors, see Applying selections as filters or slices, page 435. The selector that updates the automatically updated selector must target the panel stack. selectors, where one selector You can create cascadingupdates a third. To ensure thatupdates another, and the second a selection in one selector affects all its targets, you must define the selectors in the order of the attributes hierarchy. For an example, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486. The following procedure re-creates the example shown above, using MicroStrategy Tutorial data.
To allow a selector to be automatically updated when no data exists Create the dataset report
1 Create a report with Call Center and Region on the rows, and the Revenue metric on the columns.
3 Open a document in the Document Editor in Design View, selecting Call Center Revenue by Region as the dataset. 4 Insert a panel stack. For directions, see To insert a panel stack, page 399. 5 Drag the Call Center Revenue by Region dataset from the Datasets pane onto the panel.
Create the Call Center selector
6 From the Insert menu, point to Selector, then choose the Button Bar selector style. When you move the cursor to the Layout area, the pointer becomes crosshairs. 7 Click to the left of the Grid/Graph in the panel. Click and drag to size the selector, using the document samples in Determining how the target of a selector displays when no data exists, page 458 as a guide. 8 Right-click the selector and choose Properties. The Properties dialog box opens. 9 Click the Selector tab. 10 Specify Select attribute element as the Action type. 11 In the Source drop-down list, select Call Center. The Call Center elements will display as items in the selector. 12 Notice that the Grid/Graph is automatically placed in the Available targets list. The selector will change the call center displayed on the Grid/Graph.
Allow the Call Center selector to be automatically updated
13 Clear the Apply selections as a filter check box. If the selector is not a slicing selector, the Automatically update when there is no data for the current selection check box is not available. For a comparison of filtering and slicing selectors, see Applying selections as filters or slices, page 435. 14 Select the Automatically update when there is no data for the current selection check box.
461
15 Notice that the Current State is defined as Use First and Number of Elements is set to 1. By default, when a slicing selector is first displayed in MicroStrategy Web, the first item in the target is selected in the selector, and its target displays data for that item (in this case, Atlanta). For a complete description of the Current State setting, including examples, see Determining how the target of a selector displays (current state), page 463. 16 Click OK to return to the document.
Create the Region selector
17 From the Insert menu, point to Selector, then choose the Check Boxes selector style. When you move the cursor to the Layout area, the pointer becomes crosshairs. 18 Click and drag in the Document Header section to size the selector, using the document samples in Determining how the target of a selector displays when no data exists, page 458 as a guide. 19 Right-click the selector and choose Properties. The Properties dialog box opens. 20 Click the Selector tab. 21 Specify Select attribute element as the Action type. 22 Select Region in the Source drop-down list. The Region elements are displayed as items in the selector. 23 Clear the Show Option for All check box. 24 Click Manual Targets, then select OK at the prompt. The Available targets and Selected targets lists are now available. 25 Select the panel stack in the list of Available targets and click > to move it to the list of Selected targets. The selector will change the region displayed on the Grid/Graph in the selector and update the call centers listed on the Call Center selector. 26 Click OK to return to the document.
Save the document
To interact with the selectors, you must view the document in Interactive Mode, Editable Mode, or Flash Mode in MicroStrategy Web.
463
This section contains the following information on setting the Current State: For a more detailed description of the various Current State options, see Defining the Current State of a selector, page 469. For examples of the Current State setting in a slicing selector, see Current State setting with a slicing selector, page 464. For examples of the Current State setting in a filtering selector, see Current State setting with a filtering selector, page 465. discussed Slicing selectors and filtering selectors areoptions. separately because they have different Current State For examples of the Current State settings used with multiple targets, see Current State settings and multiple targets, page 467. For a procedure to define the current state setting, see To determine how the target of a selector displays, page 470.
In the selector, a user selects the Mid-Atlantic and Northeast check boxes, and clears the Central check box. Now only Mid-Atlantic and Northeast are displayed in the Grid/Graph. The user closes the document without saving it, then re-executes the document. As defined by the selector's Current State setting, Central is once again selected in the selector and displayed in the target.
As before, the user selects the Mid-Atlantic and Northeast check boxes, and clears the Central check box in the selector. Mid-Atlantic and Northeast are displayed in the Grid/Graph. This time, the user saves the document before closing it, then re-executes it. The Grid/Graph displays the Mid-Atlantic and Northeast data, with Mid-Atlantic and Northeast checked in the selector, as shown below:
When the user saved the document, the selector's state was saved and therefore it automatically changed the Current State setting to Set to specific elements. This allows the user's saved selector choices to be displayed when the document is re-executed. If desired, you can reset the Current State property of the selector, so that it once again automatically displays the first region when the document is executed. To do this, define Current State as Use first, and set Number of Elements to one. You can enter any number of elements. You can also define the Current State to display all the elements or to display the last number elements, then specify the number of elements to display.
465
When a user executes the document in MicroStrategy Web, all of the regions are displayed in the target Grid/Graph, as shown below. Notice that none of the check boxes in the selector are selected, since the selector state is unset.
The user selects Central in the selector. The Grid/Graph updates to display the data for the Central region only. The user closes the document without saving it, and then re-executes it. The selector's Current State is still set to the default setting of Unset, which means that all the regions are displayed in the target Grid/Graph. The user then selects the Central check box again, so that the data for the Central region is displayed in the Grid/Graph. This time, the user saves the document before closing it. When the user re-executes it, the Grid/Graph
displays the Central data, with Central checked in the selector, as shown below:
This time, because the user saved the document, the selector's state was saved and therefore it automatically changed the Current State setting to Set to specific elements. This allows the user's saved selector choices to be displayed when the document is re-executed.
467
Because the displayed elements are different, no item is selected in the selector, as shown below:
For a filtering selector, the default Current State displays all the elements in the targets, with no element selected in the selector. Both Grid/Graphs display data for all the regions. If the targets contain different elements, each target still displays all its elements, but the Regional Revenue Grid/Graph does not contain Central, as shown below:
The target displays the first Number of Elements (that is, selector items). For example, if the selector source is Region and Number of Elements is defined as two, the first two regions (Central and Mid-Atlantic) are displayed. To do this, set Current State to Use first and specify the Number of Elements.
The target displays the last Number of Elements (that is, selector items). For example, if the selector source is Region and Number of Elements is defined as one, the last region (Web) is displayed. To do this, set Current State to Use last and specify the Number of Elements.
The target displays data for all the items in the selector. To do this, set Current State to All.
When a user chooses items in the selector, the target displays the selected items. When the user saves the document with his selections, Current State is automatically switched to Set to specific elements. Current State is automatically defined as Set to specific elements; you cannot select this option.
The target is not filtered and therefore displays data for all items in the selector. In the selector, none of the selector items is selected. A drop-down list will have blank space, a button bar will not have any buttons selected, no radio buttons will be selected, and so on. To do this, set Current State to Unset (no filter).
When a user chooses items in the selector, the target displays the selected items. When the user saves the document with his selections, Current State is automatically switched to Set to specific elements.
469
Current State is automatically defined as Set to specific elements; you cannot select this option. filtering For the differences between slicing andpage 435.selectors, see Applying selections as filters or slices,
Prerequisites
The following procedure assumes that the document contains: A selector that targets attribute elements on a Grid/Graph. For instructions to create a selector, see Methods to create a selector, page 426. A Grid/Graph that is used as the target of the selector. For instructions to add a Grid/Graph to a document, see Adding a Grid/Graph to a document, page 298.
1 Open the document using the Document Editor in Design View. 2 Right-click the selector to modify and choose Properties. The Properties dialog box opens. 3 Click the Selector tab. 4 Select one of the following options from the Current State drop-down list: If Apply selections as a filter is cleared (that is, the selector slices data):
To display the first Number of Elements, select Use first. For example, if the selector source is Region and Number of Elements is defined as two, the first two regions (Central and Mid-Atlantic) are displayed. To display the last Number of Elements, select Use last. For example, if the selector source is Region and Number of Elements is defined as one, the last region (Web) is displayed. To display data for all the items in the selector, select All.
To display data for all items in the selector, select Unset (no filter).
has chosen items in the selector, When a userselected automatically. The targetSet to specific elements is displays the items that the user chose in the selector. This option is shown only when a user has chosen selector items, and is available for both filtering and slicing selectors. 5 If Current state is set to either Use first or Use last, type the number of elements to display in the Number of elements field. For example, if the selector source is Region, Use last is selected, and Number of elements is defined as one, the last region (Web) is displayed. 6 Click OK to return to the document.
471
The All option does not have to be selected for the total to be displayed. For example, only Central, Mid-Atlantic, and Total are selected in the following sample:
Notice that the values in the Total line remain the same as in the previous samplethe total is always calculated using all the selector items (in this instance, all the regions). The following example shows a drop-down selector that targets an attribute on a panel stack. When Total is chosen in the selector, the total revenue of all the regions is displayed.
the regional revenue values only (that is, the metric only), or to both the regional revenue values and the total value. To select metrics or metrics and totals, use the Advanced Conditional Formatting in MicroStrategy Web. When you apply a conditional format in Desktop, the conditional format is applied to the metric values only. For instructions to specify this setting, see the MicroStrategy Web Help. For instructions to create conditional formatting, see Formatting conditional data in documents, page 200.
1 Open the document in the Document Editor. 2 Right-click the selector and select Properties. The Properties dialog box opens. 3 Click the Selector tab. 4 Select the Show option for Total check box.
If the Action type is defined as Select metric or Select panel, the Show option for Total check box is not available. If Apply selections as a filter is selected, the Show option for Total check box is not available. For a comparison of filtering and slicing selectors, see Applying selections as filters or slices, page 435.
5 Click OK.
473
bottom selector filters just the grid on the Revenue values. Notice that the Revenue total for Northeast in the grid is $7,066,478, while the Revenue amount for Northeast in the graph is $8,554,415. This discrepancy occurs because the grid is not displaying employee revenue values below $209,634, as indicated by the slider selector, while the graph is including all revenue values for Northeast.
For a metric condition selector, which filters metric values, the title bar contains a drop-down menu that allows a user to select whether to filter on the metric values or rank, as shown below. For descriptions of the different options, see Creating selectors that filter metric values, page 432.
For an element selector or a metric condition slider selector, the drop-down menu on the title bar allows a user to select whether to include or exclude the
selected data. (An element selector displays different elements of attributes, custom groups, or consolidations; a metric condition slider displays a slider to filter metric values or rank.)
These procedures use the Properties dialog box, but you can also use the Property List to perform the same tasks. These procedures assume that the document contains a selector. For instructions to create a selector, see Defining a selector, page 423.
1 Open the document in Design View in the Document Editor. 2 Right-click the selector in the Layout area, and choose Properties. The Properties dialog box opens. 3 On the General tab, select the Show title bar check box. 4 Type the text to display in the title bar in the Custom title field. If you leave this field blank, the selector's Name is displayed in the title bar, unless the selector's Action Type is defined as Select attribute element or Metric condition. In those cases, the Source of the target (such as Region or Revenue) is displayed. (For a description of the various action types, see Defining a selector, page 423.)
475
5 By default, the height of the title bar is .2 inches, but you can change it: a Click the Layout tab. b Enter the height in the Title height field. 6 Click OK to return to the document. The title bar is displayed on the selector in the Layout area.
Formatting selectors
Selectors allow a user, in Interactive Mode and Editable Mode in MicroStrategy Web, to flip through the panels in a panel stack, display different elements or metrics in a Grid/Graph, or change dynamic text fields (a text field that is a reference to an object on a report) in a panel stack. For more information on selectors in general, including examples and procedures to create them, see Providing interactivity to users: selectors, page 418. As with any other control, when you insert a selector into a document, its formatting is determined by the control default. However, you can change any of the formatting options, such as background and border colors.
The following table lists the various formatting options available for a container and for a title bar.
Object Formatting Option
Selector container Alignment (horizontal and vertical) Background, including: Transparency Gradient colors Selection color (background color for cells selected by a selector) Border Effects, including: 3D borders Drop shadow Font Selector title bar Alignment and padding Background, including: Transparency Gradient colors Border Font
477
To quickly choose a single color for the background of the container, use either the Formatting toolbar or the right-click menu. To use more complex backgrounds, such as gradient (two-color) and transparent backgrounds for the container and title bar, use the Format Objects dialog box. You can also define the background color for items selected in the Drop-down, Listbox, and Link Bar selectors; for instructions, see Defining the background color for selected items in Flash Mode, page 483. To quickly set the font color of the selector items, use either the Formatting toolbar or the right-click menu. To change layout properties (such as position, selector size, and item size), you can use the Property List or the Properties dialog box. You can also set properties specific to selectors, such as action type and targets. You can also specify whether the width of the selector items (for example, the check boxes or buttons in the selector) is fixed or proportional. The main difference between the interfaces is that formatting options are available in the Property List but not in the Properties dialog box. To change the alignment, font, border, and color options, including gradient colors (two-color combinations), use the Format Objects dialog box. You can select 3D borders and drop shadows, as well as gradient colors for the background, with this interface. You can format both the container and the title bar with the Format Objects dialog box. To format the text of the selector items, use the Format Objects dialog box. Options include font type, color, and size. For a procedure, see For instructions, see Formatting the text of a selectors items, page 481. (To format the font color only, use the Formatting toolbar or the right-click menu.)
For comprehensive formatting, the Property List is the easiest to use, as it contains most of the options of the other interfaces on the same screen as the Layout area. To format the title bar, use the Format Objects dialog box. For complete instructions, refer to the Desktop Help. See Useful formatting suggestions for selectors below for descriptions of formatting options and ways they can enhance your selectors.
479
Format the font of the text for the items in the selector, including style, size, and color. For an example, see Formatting the text of a selectors items, page 481.
These formatting options apply to all selector types, but to a Fish Eye selector only when it is displayed in non-Flash modes. In non-Flash modes, a Fish Eye selector is displayed according to its DHTML style. For information on creating a Fish Eye selector, see Creating a Fish Eye Selector, page 638; for information on formatting a Fish Eye selector for display in Flash Mode, see Formatting Fish Eye selectors for Flash Mode, page 649. Complete instructions for formatting selectors using various interfaces are provided in the Desktop Help.
If the Make all items the same width property is selected, the width of each selector item is the same size as the others, as shown below. In this case, the (All) item has extra space, while Northwest is cut off, displaying as Northwe instead.
The following procedure re-creates this example using the Property List. You can also use the Properties dialog box to specify proportional or fixed width for selector items; see the Desktop Help for instructions.
To specify selector item width as fixed
1 Open a document in Design View in the Document Editor. 2 Add the panel stack and selector as shown in the example. For information on adding panel stacks, see Layering data on dashboards: panels and panel stacks, page 392; for information on adding selectors, see Providing interactivity to users: selectors, page 418. 3 Select the selector. 4 In the Property List: Size section, set Make all items the same width to True.
481
Font formatting options for selector items include style, size, and color. You can also align text horizontally and vertically. The following document sample shows a button bar. The size of the selector, as well as the font and alignment of the items text, has not been changed from the default appearance. The orientation of the button bar has been changed from vertical to horizontal, however.
In the following document sample, the same selector has been formatted. The button bar has been expanded to the width of the panel stack. The items text is now centered vertically and horizontally within each button. The font type, size, and color have changed, and the text is italicized.
1 Open a document in Design View in the Document Editor. 2 Add the panel stack and a selector as shown in the example. For information on adding panel stacks, see Layering data on dashboards: panels and panel stacks, page 392; for information on adding selectors, see Providing interactivity to users: selectors, page 418. 3 Select the button bar selector in the Layout Area, and resize it by dragging the sizing handles. Make the button bar as wide as the panel stack.
4 In the Property List: Data section, set Style to Button Bar. Change the Orientation to Horizontal. 5 From the Format menu, select Format. The Format Selector dialog box opens. 6 Click Container in the list of objects on the left. 7 Click the Alignment tab. 8 Set Horizontal to Center and Vertical to Center. 9 Click the Font tab. 10 In the Font area, set Name to Times New Roman. 11 In the Settings area, set Size to 12. 12 Set Italic to Yes. 13 Set Color to White. 14 Click OK to return to the document.
483
The same document in Interactive Mode displays with a light gray background for the selector, as specified, with the selected item (Central) is automatically displayed in a blue background to provide contrast, as shown below:
Change the selected item's background to dark red. In Flash Mode, the selected item's background is dark red, as specified, and the selector's background is still displayed in light gray, as shown below:
In all modes, an item that the cursor is pointed at is displayed in a lighter shade of the selected items background. In the Flash Mode example above, Mid-Atlantic is displayed with a pink background, while the Interactive Mode example displays Northwest in a light blue. The following procedure assumes you have added a Drop-down, Link Bar, or Listbox selector to the document. For instructions, see Methods to create a selector, page 426.
To format the background of a selected items
1 Open the document to be formatted in the Document Editor in Design View. 2 Choose the selector to be formatted. 3 From the Format menu, select Format. The Format Objects dialog box opens. 4 Select Container in the object list on the left. 5 Click the Background tab. 6 By default, Selection color is set to Automatic, which means that the color of the selected items are automatically set to contrast with the
485
selector's background. To choose a specific color instead, click Selection color, and pick a color from the color palette. in The Selection color is applied in Flash Modethe MicroStrategy Web. In all other MicroStrategy Web modes, Selection color is applied only to Link Bar selectors. 7 Click OK to save your changes and return to the document.
1 Open a document in Design View in the Document Editor. 2 Select the selector. 3 In the Property List: Flash section, choose the widget from the Selected widget drop-down list.
particular attribute (Region) and that Region in the grid is underlined, indicating a link.
Click a specific region, such as Mid-Atlantic, in the grid. The graph changes to display information for that region only, as shown below:
The grid on the left is controlling the graph on the right. In other words, this scenario uses one Grid/Graph as a selector targeting another Grid/Graph. The Grid/Graph does not become a selector, but performs in a manner similar to a selector. A panel stack, rather than another Grid/Graph, can be the target of a Grid/Graph.
487
By default, the background for items selected in the Grid/Graph is automatically chosen to provide contrast with the Grid/Graph's background, as shown above. For Flash Mode and Express Mode in MicroStrategy Web, you can specify the color for the selected items. For an example and instructions, see Formatting the background of selected items in Grid/Graphs used as selectors, page 324. You can use Grid/Graphs as cascading selectors, where one Grid/Graph updates another Grid/Graph, and the second updates a third. For example, a document contains the following: A Grid/Graph containing the Revenue metric A Grid/Graph containing the Call Center attribute, targeting the Revenue Grid/Graph A Grid/Graph containing the Region attribute, targeting both the Call Center and Revenue Grid/Graphs A Grid/Graph containing the Country attribute, targeting the Region, Call Center, and Revenue Grid/Graphs
This document is shown below. USA is selected for Country, Southeast for Region, and Atlanta for Call Center. The Revenue metric displays the value for Atlanta. If you select Miami instead, the Revenue value changes accordingly.
To ensure that a selection in one Grid/Graph affects its targets, especially the Revenue Grid/Graph, you must define the Grid/Graphs in the order of the attributes hierarchy. In this case, define the Grid/Graph for Country, then another for Region, and finally the last for Call Center. If you define Call Center first, then Region, and then Country, the targets are not updated or return no data.
assumes created a Grid/Graph to use This procedure as well asyou have alreadyor Grid/Graph to use as the as the selector, the panel stack target. The selector and target must have an attribute or metric in common. If targets are automatically maintained, and you add a Grid/Graph or panel stack to the same document section or panel after defining this selector, the Grid/Graph or panel stack is automatically added as a target. For more information about automatic target maintenance, including instructions to disable it, see Automatically maintaining targets for selectors, page 443. 1 Open the document using the Document Editor in Design View. 2 Double-click the Grid/Graph to use as the selector. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode. 3 Right-click the attribute to use as the selector, and choose Use as Selector. The Selector dialog box opens. 4 Select the target Grid/Graph or panel stack in the list of available controls on the left, and click > to add it to the list of selected targets. You can select multiple targets. the layout, If targets are automatically maintained instacks in theyou cannot select targets. All Grid/Graphs and panel same document section or panel as the selected Grid/Graph are chosen as targets. You can disable automatic targets by clicking Manual Targets. If you do, all targets in the layout are no longer automatically maintained. For more information about disabling automatic target maintenance, see Automatically maintaining targets for selectors, page 443. 5 Click OK to return to the document. 6 Press ESC or click anywhere in the documents Layout area outside of the Grid/Graph to exit edit mode.
489
Change the grid's background for selected items to dark gray. In Flash Mode, the selected item's background is dark gray, as specified, and the grid's background is still automatically displayed in white, as shown below:
In all other modes except Express Mode, the background of the selected item is automatically defined, so it appears in blue, as shown in the first example above.
To format the background of selected items
This procedure assumes that the document contains a Grid/Graph used as a selector. For instructions on adding Grid/Graphs, see Adding a Grid/Graph to a document, page 298. For instructions to enable the Grid/Graph as a selector, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486. 1 Open the document to be formatted in the Document Editor in Design View. 2 Select the Grid/Graph to format. 3 From the Format menu, select Format. The Format Objects dialog box opens. 4 Select Container in the Format list on the left. 5 Click the Background tab.
491
6 Define the Selection color, which is the background color for items that are selected in the Grid/Graph. If you want to specify a color, click Selection color, and choose a color from the color palette. If you want the color to be automatically set to contrast with the Grid/Graph's background, choose Automatic from the Selection color drop-down list.
The Selection color is applied in Flash Mode and Express Mode in MicroStrategy Web.
7 Click OK to return to the document.
You can also set the speed to automatic; the speed is then determined by the type of transition.
1 Open the document using the Document Editor in Design View. 2 Select the Grid/Graph or panel stack to update. 3 In the Property List: Flash section, select a type of transition animation from the Selected transition drop-down list. This is the animation that is used when users switch to Flash Mode in Web. 4 Select the speed from the Speed drop-down list. This determines how quickly the transition animation takes place for the object. If you select Automatic, the speed is determined by the type of transition.
You can also use the Properties dialog box to enable a transition animation.
To view the transition animation, you must open the document in Flash Mode in MicroStrategy Web.
493
1 Open the document in Design View or PDF View. 2 Switch to Flash View by clicking the Flash View icon on the toolbar. is not available, you View. If the Flash View iconSelecting the displaymust enable Flashfor For instructions, see modes available MicroStrategy Web, page 249. 3 From the File menu, select Export to Flash. Export to Flash option is unavailable, you must select If the export format. For instructions, see Selecting availableFlash as an export formats, page 252. 4 Name and save the file. Do not change the file type.
This view in MicroStrategy Web is called Full Screen mode, and it is particularly helpful when analyzing a dashboard document that contains multiple Grid/Graphs, sections, and images. Full Screen mode helps you create interfaces that are easy for users to read. For example, the first image below shows a Shipping Analysis document in MicroStrategy Web. The screen area at the top is used by the various MicroStrategy Web toolbars and menus. The same document is viewed in
Full Screen mode in the second image. More of the document is displayed in the same space.
495
MicroStrategy Webs core set of toolbar buttons and the Grouping panel still appear in Full Screen mode, so the user can interact with the document as usual. The toolbar buttons allow you to quickly switch viewing modes, save, print, export, and deliver the document, among other tasks. The Grouping panel allows you to display the different groups of data in the document.
Full Screen mode is available in MicroStrategy Web only; you cannot use it in Desktop. However, in Desktop you can select whether a document automatically appears in Full Screen mode when a user opens it in Web. The following procedure shows you how to ensure a document or dashboard opens in Full Screen mode by default. For more information on working with documents in MicroStrategy Web, see Display modes in MicroStrategy Web, page 9 or the MicroStrategy Document Analysis Guide.
To have a document or dashboard open in Full Screen mode
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 On the Document tab, select the Always open this document in full screen mode check box. 4 Click OK to return to the document. The next time this document is opened in MicroStrategy Web, it is displayed in Full Screen mode. Web users can switch between full screen mode and normal view by clicking the Full Screen Mode icon.
6
6.
Introduction
A widget is a Flash-based display of the results of a dataset report, allowing users to visualize data in different ways than traditional reports displayed as Grid/Graphs do. Widgets are sophisticated visualization techniques that can combine with rich interactivity to enable users to understand their data more effectively. You can use a variety of widget types, such as Gauge, Heat Map, and Stacked Area widgets, in MicroStrategy dashboards. Although each type of widget looks different and is used in a unique way, the main purpose of all widgets remains the same: to provide document analysts with a visual and interactive look into their data. For example, the Interactive Bubble Graph widget below allows document analysts to drill into each bubble in the graph by clicking it. Analysts can also
497
use the time animation toolbar at the top of the widget to watch the bubbles appear on the graph in chronological order.
For more information on Bubble Graph widgets in particular, including a detailed description of the data structure and a procedure to enable drilling, see Defining an Interactive Bubble Graph widget, page 531. A document designer defines widgets in Design Mode in Desktop, or Design Mode or Editable Mode in MicroStrategy Web. The designer and other users can interact with widgets in MicroStrategy Web, Desktop, and MicroStrategy Mobile devices, as shown in the table below.
View or Mode Desktop Design View Flash View HTML View Empty Grid/Graph (no data) N/A Widget * Grid/Graph Grid/Graph Placeholder Hidden Grid/Graph Placeholder Hidden Yes N/A N/A No N/A Widget Can Display As Interact with Widget? Save Widget Changes?
PDF View
N/A
N/A
MicroStrategy Web Design Mode Empty Grid/Graph (no data) N/A N/A
498
Yes Yes
Yes Yes
MicroStrategy Mobile Android Android widgets: Widget Grid/Graph All other widgets are displayed as Grid/Graphs iPad iPad widgets: Widget Grid/Graph All other widgets are displayed as Grid/Graphs, except for Date Selection widgets iPhone iPhone widgets: Widget Grid/Graph All other widgets are displayed as Grid/Graphs Exporting Export to Excel Grid/Graph Placeholder Hidden Widget * Grid/Graph N/A N/A Yes (iPhone widgets only) No Yes (iPad widgets only) No Yes (Android widgets only) No
Export to Flash
Yes
N/A
499
* Except for iPhone, iPad, Android, and SDK widgets, which cannot be displayed as widgets in Flash View/Mode. ** Except for the following widgets, which cannot be displayed as widgets in Interactive Mode or Express Mode: Cylinder, Date Selection widget created as a selector, Fish Eye Selector created as a selector, Interactive Stacked Graph, Thermometer, and Time Series Slider.
For instructions to change how widgets are displayed in the various views and modes of Desktop and MicroStrategy Web, see Determining how a widget is displayed, page 601.
Data Cloud: A list of attribute elements displayed in various sizes to depict the differences in metric values between the elements. The varying sizes allow a user to quickly identify the most significant, positive, or negative contributions. See Defining a Data Cloud widget, page 512 for more details and an example. Date Selection: A calendar selector that allows you to select which dates you want to see data about in a document or dashboard. You are able to see all of the dates of each month in the widget, which allows you to be able to select dates more easily. See Creating a Date Selection widget, page 650 for more details and an example. Fish Eye Selector: An interactive selector that magnifies an item when you hover the cursor over it. It allows a user to choose from a list of attribute elements, metrics, or images without having to see all of the elements, metrics, or images. Any item that a user hovers over or selects remains magnified, while the remaining items are minimized and hidden from view. This can be especially helpful when the user has to browse through a lengthy list. See Creating a Fish Eye Selector, page 638 for more details and an example. Funnel: A variation of a stacked bar graph that displays data that adds up to 100%. It allows a user to visualize the percent contribution of a metric to the whole. See Defining a Funnel widget, page 514 for more details and an example. Gauge: A simple status indicator that displays a needle that moves within a range of numbers displayed on its outside edges. An example of a gauge is a car's speedometer. See Defining a Gauge widget, page 518 for more details and an example. Graph Matrix: A group of area graphs that display actual values and line graphs that display forecasted values. It allows a user to quickly analyze various trends across several metric dimensions. See Defining a Graph Matrix widget, page 520 for more details and an example. Heat Map: A combination of colored rectangles, each representing an attribute element, that allow you to quickly grasp the state and impact of a large number of variables at the same time. See Defining a Heat Map widget, page 525 for more details and an example. Interactive Bubble Graph: A conventional bubble plot that allows you to visualize the trends of three different metrics for a set of attribute elements. See Defining an Interactive Bubble Graph widget, page 531 for more details and an example.
501
Interactive Stacked Graph: A combination of a check box list and area graph. The graph allows a user to see the contribution of various metric series to the change in value of a larger set of data. See Defining an Interactive Stacked Graph widget, page 538 for more details and an example. Media: Video, audio, images, or website content. One of the primary purposes of the Media widget is to present supplemental information about the data on a dashboard. It can also be used for instructional content or HTML content from a website. See Defining a Media widget, page 555 for more details and an example. Microcharts: One or more compact representations of data that allow analysts to quickly visualize trends. Use a Microcharts widget to quickly visualize the trend of a metric at a glance without having to know many additional details. The bar, sparkline, and bullet microcharts used in the Microcharts widget convey information that an analyst can understand just by looking at the graph once. See Defining a Microcharts widget, page 565 for more details and an example. RSS Reader: RSS (Really Simple Syndication) is a data format used to display updated Web content when you click a URL. An RSS document is called a feed, and it contains either a summary of the content from an associated website or the full text. The RSS Reader widget can help provide context to your business data. Use RSS Reader widgets on a dashboard to view and update RSS feeds as a user analyzes grids, graphs, and other objects in the same dashboard. See Defining an RSS Reader widget, page 588 for more details and an example. Thermometer: A simple status indicator that displays a thermometer set to a certain temperature level. The temperature level within the thermometer is a visual representation of a single metric value. See Defining a Thermometer widget, page 542 for more details and an example. Time Series Slider: An area graph that allows a document analyst to choose which section of the graph to view at a time. See Defining a Time Series Slider widget, page 545 for more details and an example. Waterfall: A group of clustered bars displayed from left to right. It highlights the increments and decrements of the values of metrics over time. The widget can help identify what is contributing to fluctuations in the metric values and can be used for what-if analyses. See Defining a Waterfall widget, page 548 for more details and an example.
Weighted List Viewer: A combination of the data visualization techniques of thresholds and graphical weighting in a single visualization. This enables the analyst to assess the performance of a group of items. See Defining a Weighted List Viewer widget, page 552 for more details and an example.
To successfully create a useful widget that can be used to analyze data, you must first correctly define the Grid/Graph. To do this, you must place report objects such as attributes and metrics on the Grid/Graph. The report objects and their placement on the Grid/Graph determine whether the widget can be successfully generated and display data in MicroStrategy Web. For example, a Grid/Graph that you want to display as a Gauge widget must have one attribute on the rows and one metric on the columns. These data requirements are detailed in the specific widget section below. Next, you specify a widget type, such as Time Series Slider or Bubble Grid, for the Grid/Graph. For detailed steps to add a widget to a document, see Creating widgets, page 597. MicroStrategy Web, you In Design Modeaand Editable Mode indefine it by placing reportcan add a widget to document and then objects such as attributes and metrics on it. For more information, see the MicroStrategy Web Help. The Media and RSS Reader widgets are created in different ways. For more information, see Defining a Media widget, page 555 and Defining an RSS Reader widget, page 588.
503
RSS Reader widget, which displays and updates RSS (Really Simple Syndication) feeds (see Defining an RSS Reader widget, page 588) Time Series widget, which displays data for a specific period of time in a line graph (see Defining a Time Series Slider widget, page 545)
You can create widgets that display on iPads that have MicroStrategy Mobile installed. These include: Date Selection widget, which displays as a interactive event calendar on the iPad Graph Matrix widget, which displays data using a variety of graph styles, such as the line graph, bubble graph, or grid Image Viewer widget, which displays images and image descriptions, and allows users to zoom in and out of the images, which can be uploaded by a Photo Uploader widget or images stored in a public location Map widget, which allows users to search and view information for locations on a map Photo Uploader widget, which allows users to upload images from mobile device by taking a new image or using an existing image on their mobile device Time Series widget, which displays data for a specific period of time in a line graph
You can create widgets that display on Android devices that have MicroStrategy Mobile installed. These include: Image Viewer widget, which displays images and image descriptions, and allows users to zoom in and out of the images, which can be uploaded by a Photo Uploader widget or images stored in a public location Interactive Grid widget, which displays data in a compact tabular layout Map widget, which allows users to search and view information for locations on a map Photo Uploader widget, which allows users to upload images from mobile device by taking a new image or using an existing image on their mobile device Time Series widget, which displays data for a specific period of time in a line graph
The Interactive Grid, Map, and Time Series widgets display as Grid/Graphs in Flash Mode in MicroStrategy Web. You can determine how mobile device widgets display in other MicroStrategy Web modes, and when exported to PDF and Excel. For more information on the alternative display setting, see Determining how a widget is displayed, page 601. For more information on these widgets, including instructions to create them, see Widgets for mobile devices, page 792.
SDK widgets
In addition, the following widgets are available. See the MicroStrategy Developer Library (MSDL), part of the MicroStrategy SDK product, for information to customize and use these widgets. With the MicroStrategy SDK, you can access additional MicroStrategy widgets, add third-party widgets, and create and use custom widgets. For more information and instructions, see the MicroStrategy Developer Library (MSDL), part of the MicroStrategy SDK product. For information on purchasing a MicroStrategy SDK license, contact your Account Executive. Google Graph Visualization: A simple chart of data. The widget is created using the Google API. Simple Grid: A simple tabular layout. Store Layout: A layout image of a retail store. Different departments in the store are displayed in different colors, depending on the conditions defined. For example, departments whose profit is less than 75% of their profit goal are displayed in red. Timeline: A timeline that displays a series of events. The timeline can be examined at the yearly, monthly, and weekly level as a series of bands. This lets users quickly spot trends, such as the times when call congestion is most likely to affect a call center. USA Map: A map of the United States, which acts as a selector to determine the data displayed in another control. For example, a user can click a region in the United States, such as Central, to display revenue data for the Central region in a target Grid/Graph.
If you are incorporating a custom widget into your MicroStrategy Web application and want to make multiple data providers available for the widget, see the MicroStrategy Developer Library
505
(MSDL) for information to expose the Secondary Data Provider area in the Flash tab of the Properties dialog box. This allows users to select more than one data provider for the widget. If you are designing a document using a custom widget and you see the Secondary Data Provider area in the Flash tab of the Properties dialog box, contact your customization specialist for information on how to use their custom implementation.
The Bubble Grid widget is most beneficial when it is used to perform analyses involving key business ratios, such as the number of customers in a store vs. the revenue generated per customer. For example, the widget can help analysts investigate questions such as Does the number of customers that visit a certain store correlate to the amount of money each customer spends? Analysts can use the widget to answer these types of questions in the context of business attributes, such as different stores, regions, and times of the day or year. Positive correlations in the data show that stores with a large number of customers generate a large amount of revenue, and negative correlations show the opposite. When analysts detect negative correlations
507
for stores in specific regions, they can investigate reasons for the issue and recommend changes such as adding more sales personnel to the stores.
Elements from the first (left-most) object are displayed on the X-axis of the widget. This object represents one of the business areas that can be analyzed in the widget. To analyze data along the X-axis relative to time, use a time-based attribute such as Hour, Day, or Month. If you use an Hour or Day attribute, apply a view filter to the Grid/Graph to limit the number of hours or days displayed in the widget at the same time. For information about using view filters on Grid/Graphs, see Using view filters on Grid/Graphs, page 331. Elements from the second attribute are displayed on the Y-axis of the widget. This attribute represents the other business area that can be analyzed in the widget.
At least two metrics on the columns. The values of these two metrics produce the bubbles in the widget, as described below:
The first (left-most) metric determines the size of the bubbles. The smaller metric values produce the smaller bubbles in the widget; the larger metric values produce the larger bubbles. The second metric determines the color of the bubbles. For example, if Profit is the second metric on the columns, the colors of the bubbles depict the range of profit values. You can determine which colors are used for minimum and maximum metric values, as described in Formatting for a Bubble Grid widget, page 509. This range of colors is depicted in the legend at the bottom of the widget, if the legend is enabled.
Any additional metrics are displayed in tooltips when an analyst hovers the cursor over a bubble in MicroStrategy Web. These metrics do not have an effect on the size or color of the bubbles in the widget.
A Bubble Grid widget does not need a separate selector to allow a user to interact with it. However, you can use a Bubble Grid widget as a selector. For an example and more information, see Using a Bubble Grid widget as a selector, page 622. For instructions to create a widget, see Creating widgets, page 597.
509
One metric on the columns. The metric values determine the amount of liquid displayed in the cylinder.
A Cylinder widget requires a selector to allow a user to interact with it. For information about selectors, including procedures to create them, see Providing interactivity to users: selectors, page 418. It is recommended that you place the corresponding Grid/Graph beneath the selector. This allows you to see the Grid/Graph's values as you select different attribute elements from the selector and see how they change the appearance of the Cylinder widget. For instructions to insert a Grid/Graph, see Adding a Grid/Graph to a document, page 298. For instructions to create a widget, see Creating widgets, page 597.
The formatting listed above is done in Design View in Desktop and in Design Mode and Editable Mode in MicroStrategy Web. In Flash Mode in MicroStrategy Web, you can change the: Colors and shading scheme of the cylinder. Minimum and maximum values for the cylinder. By default, the values range from 1 to 100.
511
If metric values on your report are larger than 100, you should change the maximum value. For example, if the metric values on the report range from 60,000 to 1,000,000, enter a number like 1,100,00 to accommodate larger values in the data. For instructions, see the MicroStrategy Web Help.
The Data Cloud widget displays as a widget in MicroStrategy Web and on an iPhone or iPad with MicroStrategy Mobile.
The data requirements for a Data Cloud widget are described below: One attribute on the rows. The elements of the first attribute are displayed in the widget. If you include additional attributes to the right of the first attribute, elements from all of the attributes are combined and displayed in the widget. One metric on the columns. This metric determines the size of the font of the attribute elements in the widget. Any additional metrics do not affect the font size, but they are displayed in the tooltips available in MicroStrategy Web. A Data Cloud widget does not need a separate selector to allow a user to interact with it. However, you can use a Data Cloud widget as a selector. For an example and more information, see Using a Data Cloud widget as a selector, page 623. You may want to place the corresponding Grid/Graph below the Data Cloud widget to display the exact metric values for the attribute elements displayed in the widget. For instructions to insert a Grid/Graph, see Adding a Grid/Graph to a document, page 298. For instructions to create a widget, see Creating widgets, page 597. You can add links to a Data Cloud widget. Linking allows users to connect from a widget in a document (the source) to another document or a report (the target). If you add a link to a Data Cloud widget, the Links menu is displayed when a MicroStrategy Web user hovers the cursor over an attribute element in the widget. The user can click a link in the Links menu to open the target. See Linking in widgets, page 659 for instructions and examples.
513
A widget also has additional formatting specific to the type of widget. For a Data Cloud widget, you can use Flash Mode or Interactive Mode in MicroStrategy Web to: Sort the attribute elements alphabetically. Align the Data Cloud widget within the borders of the widget (the options are left-alignment, center-alignment, and right-alignment). Determine the equation (square root, logarithm, or linear) of the widget:
Using the square root equation displays the data in abrupt increments. Use it if the widget has large value differences between each set of data. Using the logarithm equation displays your data in gradual, more smooth increments. Use it if the percentage data drops below 0%. Using the linear equation displays the data as a weighted average.
Change the font size of the attribute elements, by specifying the size of the smallest attribute. All other attribute elements are sized proportionally to the smallest. Specify the font colors of the attribute elements. Attribute elements in the Data Cloud widget alternate between the two font colors. Specify the background color of the widget. Specify the border color of the widget.
widget can also help identify potential problem areas in an organizations sales processes. For example, the following Funnel widget displays the percent contribution of revenue data by region. Each section of the funnel is a different region, and the size of each section is proportional to the amount of revenue that the region contributed.
515
A Funnel widget does not need a separate selector to allow a user to interact with it. For instructions to create a widget, see Creating widgets, page 597.
The position of the legend relative to the graph Look tab of the Graph Options dialog box The background fill of the legend area The line around the legend area The text of the legend The position of the markers relative to the text of the legend Note: The markers indicate the color of each series. The color of the markers Format the title: The text of the title The box around the title (the background fill and the line around it) Format Title dialog box Format Title dialog box Format Legend Marker dialog box Format Legend Area dialog box Format Legend Area dialog box Format Legend Text dialog box Look tab of the Graph Options dialog box
Formatting Option Format the funnel name: Whether to display it The text of the funnel name
Display Status tab of the Graph Options dialog box Format Funnel Group Label dialog box
Format the values of the metrics displayed in the funnel: Whether or not to display them The number format Format the series (data) labels: Whether or not to display them The text of the data labels Format the funnel itself: The tilt of the funnel The base width of the funnel The size of the gap between each funnel slice The maximum number of funnels that are displayed on each row Whether to display the funnel in 2D or 3D General tab of the Graph Options dialog box General tab of the Graph Options dialog box Explode Funnel slider on the General tab of the Graph Options dialog box General tab of the Graph Options dialog box Layout tab of the Graph Options dialog box Data Labels tab of the Graph Options dialog box Funnel Data Label dialog box Data Labels tab of the Graph Options dialog box Numbers tab of the Graph Options dialog box
Before formatting a Funnel widget in Desktop, complete the following instructions: 1 Set the View mode to Graph. 2 Edit the Grid/Graph that is displaying the widget by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode. 3 To exit edit mode, press ESC.
517
In Flash Mode or Interactive Mode in MicroStrategy Web, you can specify: Whether to show or hide the series labels Whether to display the labels outside or inside the funnel Whether to show or hide the series values Whether the series values are displayed inside or outside the funnel Whether the legend can be resized The minimum height for the funnel layer
You can place any number of attributes and metrics on the Grid/Graph that contains the widget; there is no maximum number of attributes and metrics. A Gauge widget requires a selector to allow a user to interact with it. For information about selectors, including procedures to create them, see Providing interactivity to users: selectors, page 418. It is recommended that you place the corresponding Grid/Graph beneath the selector. This allows you to see the Grid/Graph's values as you select different attribute elements from the selector and see how they change the appearance of the Gauge widget. For instructions to insert a Grid/Graph, see Adding a Grid/Graph to a document, page 298. For instructions to create a widget, see Creating widgets, page 597.
519
A widget also has additional formatting specific to the type of widget. For a Gauge widget, you can change: The number format of the metric values. For example, you can format numbers to appear as dollars and cents, as percentages, or even as scientific notation. For instructions, see Changing the number format of the metric values, page 610. The font of the text that appears in the gauge. For instructions, see Formatting the text on a cylinder, gauge, or thermometer, page 611. The minimum and maximum values (the Y1 Axis) that appear at the left and right of the gauge. For instructions, see Formatting the Y axis, page 615.
The formatting listed above is done in Design View in Desktop and in Design Mode and Editable Mode in MicroStrategy Web. In Flash Mode in MicroStrategy Web, you can: Show or hide the value that the gauge needle is pointing to Show or hide the title (either the series or category label) at the base of the gauge Determine whether the needles on the gauge use the default series colors from the graph, or the default needle colors from the Gauge widget
elements. Twelve graphs are displayed because data exists for four regions and three categories of products.
A separate area graph is produced for each combination of region and product category. For example, one area graph focuses solely on electronics product figures in the Northeast region. Values in that graph are plotted across quarter (on the X-axis) and revenue (on the Y-axis). The line graph at the top of the area graph represents revenue forecast metric values, or the amount of revenue the company predicted it would generate.
521
You can maximize a specific area graph by double-clicking it. The graph opens in a new window, as shown below.
Each area graph in a Graph Matrix widget has the following characteristics, as shown above. The X-axis provides the time scale. For example, the X-axis can represent weeks, quarters, or years. The Y-axis provides the metric values. For example, the Y-axis can represent revenue, profit, or units sold. The area graph shows the current values, allowing you to see how values changed over time. The area graph represents the values of the first metric on the Grid/Graph that contains the widget. The line graph at the top of the area graph shows the predicted, or forecasted, values. The line graph represents the values of any additional metrics on the Grid/Graph. The black reference line in the area graph (not displayed above) shows the average for only the specific graph you are looking at. The red reference line in the area graph (not displayed above) shows the average metric value for all of the graphs in the same row of the Graph Matrix widget. This allows you to easily compare one graph in the widget to another.
or Interactive Mode in MicroStrategy Web. For more information, see the MicroStrategy Web Help. A widget also has additional formatting specific to the type of widget. For a Graph Matrix widget, you can change: The formatting of the column and row axis headers, which display the attribute names. For instructions, see the Reports chapter of the MicroStrategy Advanced Reporting Guide or the Desktop Help. The formatting of the column and row values, which display the attribute element names. For instructions, see the Reports chapter of the MicroStrategy Advanced Reporting Guide or the Desktop Help. The color of the area graph series, which is the colored section of the area graph. For instructions, see Formatting the color of the bar risers, page 614. The font and color of the area graph labels. For instructions, see the Graphing chapter of the MicroStrategy Advanced Reporting Guide or the Desktop Help. The formatting of the area graph numbers. For instructions, see the Graphing chapter of the MicroStrategy Advanced Reporting Guide or the Desktop Help.
The formatting listed above is done in Design View in Desktop and in Design Mode and Editable Mode in MicroStrategy Web. In Flash Mode or Interactive Mode in MicroStrategy Web, you can specify: Whether every area graph uses the same scale and number interval on the Y-axes (that is, a uniform axis for all graphs). Whether to display horizontal reference lines. The red horizontal reference line provides the average for all graphs in the same row; the black line provides the average for each graph. Whether to show or hide the axis labels on the area graphs. Whether to show or hide a legend for the area graphs. The legend is displayed when a user clicks an area graph to maximize it. The transparency of the background of the widget. Whether to display all series as line graphs or to display the values of the first metric as area graphs. The area graph shows the current values, allowing you to see how values changed over time. The area graph represents the values of the first metric on the Grid/Graph that contains the widget.
525
For information on what each object is represented by on the widget, review the following example:
Some of the rectangles in the Heat Map widget above are hidden from view.
The large areas (such as the Large Blend area in the image above) represent different categories of mutual funds. These areas are generated by the first attribute on the rows of the Grid/Graph that contains the
widget. In this case, the first attribute is Mutual Fund Category. Notice that the name of each category is displayed in the headers of each of these areas. The colored rectangles (colored shades of red and blue in the image above) represent different mutual funds. These rectangles, such as the Vanguard Small Cap Index and Legg Mason Value Prim rectangles above, are generated by any additional attributes on the rows. In this case, a second attribute, Mutual Fund, is on the rows of the Grid/Graph. The size of each rectangle represents its relative weight. This is determined by the first metric on the columns of the Grid/Graph. This widget shows that Large Blend funds are weighted more heavily than Mid-Cap Blend funds in regard to net assets. In this case, the first metric on the columns of the Grid/Graph is Net Assets. The colors displayed in the widget represent different ranges of return year-to-date percentages generated by the mutual funds. (In the image above, blue denotes higher percentages, while red and purple denote lower percentages.) The colors applied to each rectangle are generated by the second metric on the Grid/Graph. (In the image above, the second metric on the report is Return YTD %.) You can define the colors used to denote these values. For steps, see the MicroStrategy Web Help.
Mode Mode in In Flashvariousand InteractiveHeat MapMicroStrategyisWeb, you can change aspects of the widget. This convenient because you make the changes and view the results immediately, without changing modes. For instructions, see the MicroStrategy Web Help. You can choose to create a dynamic heat map that an analyst can control using a selector. This type of heat map is considered dynamic because a user can use the selector to choose a different attribute element to view on the heat map. For steps to create a dynamic heat map, see Defining a dynamic Heat Map that uses a selector, page 527.
527
A standard Heat Map widget requires one attribute on the rows of the Grid/Graph and two metrics on its columns, as described in Defining a Heat Map widget, page 525. A dynamic Heat Map widget has the same requirements; however, you must also create the selector. Set the target of the selector to the Grid/Graph that is used as a widget. The target of a selector is the Grid/Graph that the selector affects. The source of a selector is the attribute whose elements are displayed in the selector. The source of the selector must be an attribute on the dataset that is not already used on the Grid/Graph. This allows a user to switch between different attribute elements in the selector to view different information on the heat map. For example, the Heat Map widget is selected for a Grid/Graph. This Grid/Graph has Category and Subcategory attributes on its rows and one of the metrics on its columns is the Revenue metric. However, you want to use a selector to see heat maps for categories and subcategories in specific regions. In this case, create a drop-down selector, set the Region attribute as its source, and set the Grid/Graph that contains the widget as its target. The Region attribute should not be added to the Grid/Graph because then all regions will be displayed on the heat map. In Flash Mode or Interactive Mode in MicroStrategy Web, a user can use the selector to choose different regions for which to view category and subcategory data.
Two metrics on the columns. If more than two metrics are placed on the Grid/Graph, they are displayed as options in the drop-down list within the Heat Map.
The first metric on the columns determines the size of the small rectangles within the larger rectangles. Items with lower values are represented by smaller rectangles. The second metric must be placed at the bottom of the columns. It determines the color of each rectangle. It must include values in the range of -1 to 1. This range is used to provide different shadings of color in the Heat Map widget.
You can choose to create a dynamic heat map that a user can control using a selector. This type of heat map is considered dynamic because a user can use the selector to choose a different attribute element to view on the heat map. For steps to create a dynamic heat map, see Defining a dynamic Heat Map that uses a selector, page 527. You can also use a Heat Map widget as a selector. For an example and more information, see Using a Heat Map widget as a selector, page 625. For instructions to create a widget, see Creating widgets, page 597. You can add links to a Heat Map widget. Linking allows users to connect from a widget in a document (the source) to another document or a report (the target). If you add a link to a Heat Map widget, a Links menu is displayed when a MicroStrategy Web user hovers the cursor over an attribute element in the widget. The user can click a link in the Links menu to open the target. See Linking in widgets, page 659 for instructions and examples.
529
scientific notation. This formatting is done in Design View (Desktop) and in Design Mode and Editable Mode (MicroStrategy Web). For instructions, see Changing the number format of the metric values, page 610. In Flash Mode or Interactive Mode in MicroStrategy Web, you can specify: Whether to display a legend for the Heat Map, and the colors of the legend. Whether to display the metric valuesfor instance, revenue by statein each section of the widget. The widget is divided into sections by attributes. For example, you add Customer Region, Quarter, and Revenue to the Grid/Graph that contains the widget. The widget is then divided first into the Customer Region section, and then into Quarters within the Customer Region section. If metric values are displayed, revenue values are displayed for each Quarter in each Customer Region section. Whether to display labels in each rectangle. If labels are displayed, you can set them to be proportional, with the size of each label reflecting the size of the rectangle. Whether scale boundaries are enabled. Scale boundaries can help you focus the widget on a specific range of data from a specific metric. By default, the minimum and maximum range for the color slider is determined automatically by the data in the widget. If the data changes, then the minimum and maximum can also change. You can instead set the minimum and maximum scale range for a specific metric, so that specific colors always mean specific metric values. Outlying metric values use solid colors, rather than shaded colors. The color of the header displayed on all attributes in the widget. Whether to allow attributes to be removed from the widget. Removed attributes can be added back to the Heat Map when needed. The color of the background, which displays behind all of the object sections and the widget legend. The color of the border that outlines the entire widget.
The Interactive Bubble Graph is interactive, unlike a standard bubble graph report. For example: Analysts can change which metric is displayed on which axis. the ability to change which displayed You can disableinformation, see Formattingmetric isInteractiveon for an which axis. For Bubble Graph widget, page 536.
531
Analysts can zoom into a section of the widget to enlarge it. can disable on a section the widget. Youinformation,the ability to zoom inan InteractiveofBubble Graph For see Formatting for widget, page 536.
Analysts can drill into the components of a bubble to see the underlying data within that bubble's data. To enable drilling in the bubble graph, the designer must add an additional attribute to the left of the other attribute on the rows of the Grid/Graph that contains the widget. For specific requirements, refer to Data requirements for an Interactive Bubble Graph widget, page 535; for more information on enabling drilling, see Enabling drilling in an Interactive Bubble Graph widget, page 532. Analysts can see a time-series animation that plots the bubble values through time. To enable time series animation in the graph, the designer must add an additional attribute at the far left of the rows of the Grid/Graph. For specific requirements, refer to Data requirements for an Interactive Bubble Graph widget, page 535.
For instructions to interact with the widget, see the MicroStrategy Document Analysis Guide.
Enabling drilling in an Interactive Bubble Graph widget
When you use an Interactive Bubble Graph widget in a document, you can choose to enable drilling on the widget by adding one additional attribute (a second attribute) to the right of the attribute in the rows of the associated Grid/Graph. This second attribute must be a child attribute of the parent attribute already on the rows. For example, a Grid/Graph contains Call Center and Region. Call Center is the child attribute of Region. (A document sample is shown in Enabling drilling using subtotals, page 534.) To enable drilling on the graph, the child attribute must be structured in a specific way. You can create this structure by either: Enabling drilling using a custom group, page 533 Enabling drilling using subtotals, page 534
Once the Grid/Graph contains the necessary objects (either a custom group or subtotals), you must open the document in MicroStrategy Web in Flash Mode or Interactive Mode to enable drilling within the widget. See the MicroStrategy Web Help for the procedure.
The requirements for an Interactive Bubble Graph with drilling enabled are: A second attribute placed to the right of the first attribute on the rows of the Grid/Graph.
This attribute must be the child attribute, while the first attribute is the parent attribute. This second attribute must have a specific data structure so that the first grid row displays the total for the child attribute. This can be achieved by using a custom group or subtotals, as described above.
Enable drilling on the widget in Flash Mode or Interactive Mode in MicroStrategy Web.
To enable both drilling and time series animation in an Interactive Bubble Graph widget, you must have at least three attributes on the rows of the associated Grid/Graph. The attribute on the left must be an attribute associated with time, and the second and third attributes must have a parent/child relationship as described above.
533
In the metric data, the first row represents the total (Average for the first two metrics, Sum for the third) of the other two rows. The first row must include totals for drilling to work properly.
For instructionsato add a Grid/Graph with formatting, see Adding a Grid/Graph to document, page 298. For instructions on displaying
subtotals, see the MicroStrategy Basic Reporting Guide.
For example, the following report is subtotaled across the level of Call Center, which is the child attribute of Region. The subtotals are displayed at the top of each region.
To enable drilling on the bubble graph, add one additional attribute (a second attribute) to the right of the attribute in the rows. This attribute must be a child attribute of the parent attribute already on the rows. For detailed information on this requirement, with an example, see Enabling drilling in an Interactive Bubble Graph widget, page 532. To enable time series animation, add one additional attribute (a second attribute) to the leftmost side of the rows. In Flash Mode or Interactive Mode in MicroStrategy Web, you must also enable the time-series analysis check box. For more information, see the MicroStrategy Web Help. To enable both drilling and time series animation, the Grid/Graph must contain a total of three attributes.
535
At least three metrics on the columns. The first three metrics are displayed along the X-axis, Y-axis, and Z-axis, in order from left to right, by default. For example, the metric on the top of the columns is displayed on the X-axis. The Z-axis value determines the size of the bubble. However, when viewing the widget, an analyst can change which metric displays along each axis.
An Interactive Bubble Graph widget does not need a separate selector to allow a user to interact with it. However, you can use an Interactive Bubble Graph widget as a selector. For an example and more information, see Using an Interactive Bubble Graph widget as a selector, page 626. For instructions to create a widget, see Creating widgets, page 597. You can add links to an Interactive Bubble Graph widget. Linking allows users to connect from a widget in a document (the source) to another document or a report (the target). If you add a link to an Interactive Bubble Graph widget, a Links menu is displayed when a MicroStrategy Web user hovers the cursor over an bubble in the widget. The user can click a link in the Links menu to open the target. See Linking in widgets, page 659 for instructions and examples.
The formatting listed above is done in Design View (Desktop) and in Design Mode and Editable Mode (MicroStrategy Web). In Flash Mode or Interactive Mode in MicroStrategy Web, you can determine: Whether to display the graph legend inside or outside the widget. How the size of the drilled-to (child) bubbles is calculated in reference to the parent bubble. Either the diameter or the area of the parent bubble can be used. Whether to display bubbles with a rounded, 3D effect or as a solid circle. The maximum size of the bubble radius. The colors of the bubbles in reference to a specific object. For instance, if you select the Brand attribute, each brand's bubble displays in a different color. Enable or disable zooming and changing the metric displayed on an axis in the widget. By default, an analyst can zoom in to a specific area of the widget, or quickly change which metrics are displayed on which axis in the widget using the drop-down lists displayed on each axis. You can enable or disable these options, which are referred to as interactive controls. Whether to display in scatter plot mode only. Scatter plot mode means that all bubbles are the same size, and only two metrics are displayed, for the X-axis and Y-axis. You can define the radius of the bubbles in the scatter plot, but it cannot be bigger than the maximum radius. Whether to enable or disable time series animation. series animation This option doesanot enable timeon the rows of theby itself. You must also place third attribute Grid/Graph that contains the widget. For more information about this specific requirement, see Defining an Interactive Bubble Graph widget, page 531. (If time series animation is enabled) Whether the time series animation control bar is automatically hidden from view. (If time series animation is enabled) The format of the time series animation control, including the color, background opacity, and size. (If time series animation is enabled) Font formatting for the time series labels (the attribute header).
537
Whether a user can click a bubble to drill to the data at the next level. option does not enable drilling by itself. You place Thisadditional attribute (a second attribute) to themust alsothe one right of attribute in the rows. For more information about this specific requirement, see Defining an Interactive Bubble Graph widget, page 531.
(If drilling is enabled) Whether a line appears between a drilled bubble and its corresponding drilled-to (child) bubble. The line allows you to better visualize which bubbles contain related information. Whether target Grid/Graphs and panel stacks are updated when a user hovers the cursor over a bubble in the widget or an item in the legend. only if the widget is a selector This option is appliedand panel stacks. Forused asinformationtoon update Grid/Graphs more how an Interactive Bubble Graph widget is used as a selector, see Using an Interactive Bubble Graph widget as a selector, page 626. For instructions to use a widget as a selector, see Viewing data related to a widget: Using a widget as a selector, page 621.
Whether the selection box (the lasso) automatically updates the targeted Grid/Graphs and panel stacks, if the widget is used as a selector. For example, when this option is selected, an analyst can drag a selection box around two brand bubbles in the widget to automatically display those brands in the targeted Grid/Graph. If the option is cleared, the analyst must click the Select icon to update the target. a selector. This option does not enable the widget to be used asGrid/GraphYou must enable attributes or attribute elements in the that contains the widget. For more information about this specific requirement, see Using an Interactive Bubble Graph widget as a selector, page 626.
By selecting individual attribute elements (for example, a list of years) using the check boxes, analysts determine what data is displayed on the area graph on the right. When all check boxes are selected, the area graph is at its maximum size because it is representing contributions from each individual element. This widget allows you to visualize total metric values as one large stacked area, and the individual pieces of that total as smaller stacked areas within the large stacked area. You can quickly analyze how the individual parts make up the whole, which is useful when making percent-to-total comparisons. To see how the individual parts make up the whole, click the name of the attribute element on the left; you can select multiple items by holding CTRL and selecting elements.
The requirements for this type of widget are as follows: One attribute on the rows of the Grid/Graph that contains the widget. This attribute is displayed on the graph's X-axis. In the image below, this is the Month of Year attribute. One attribute on the columns of the Grid/Graph. This attribute is represented by the check box list on the left. In the image below, this is the Region attribute.
539
One metric on the columns of the Grid/Graph. This metric is displayed on the graph's Y-axis. In the image below, this is the Revenue metric.
The attribute placed on the columns appears in the list of check boxes on the left side of the widget. For example, if you place a Category attribute on the columns and then switch to Flash Mode in MicroStrategy Web, the list of categories is displayed on the left as check boxes. You can select each check box to show or hide that specific data on the area graph.
Attributes placed on the columns must appear to the left of any metrics on the columns. The attributes placed in the rows appear on the X-axis at the bottom of the area graph in the widget. For example, if you place a Region attribute in the rows and then switch to Flash Mode in MicroStrategy Web, the regions are listed on the X-axis (the horizontal graph line) at the bottom of the area graph.
Only one metric on the columns. The metric values are displayed on the Y-axis of the graph.
Metrics must appear below (or to the right of) any attributes on the columns.
You can place any number of attributes on the Grid/Graph that contains the widget, but it can have only one metric. An Interactive Stacked Graph widget does not need a separate selector to allow a user to interact with it. However, you can use an Interactive Stacked Graph widget as a selector. For an example and more information, see Using an Interactive Stacked Graph widget as a selector, page 628. For instructions to create a widget, see Creating widgets, page 597.
541
This formatting is done in Design View (Desktop) and in Design Mode and Editable Mode (MicroStrategy Web). In Flash Mode in MicroStrategy Web, you can specify the: Color of the area graph's series. Color of the line that appears between different series. Whether target Grid/Graphs and panel stacks are updated when a user hovers the cursor over the graph or legend. only if the widget is a selector This option is appliedand panel stacks. Forused asinformationtoon update Grid/Graphs more how an Interactive Stacked Graph widget is used as a selector, see Using an Interactive Stacked Graph widget as a selector, page 628. For instructions to use a widget as a selector, see Viewing data related to a widget: Using a widget as a selector, page 621. For instructions, see the MicroStrategy Web Help.
display in the thermometer. In the image below, the thermometer level represents the number of units sold.
You can place any number of attributes and metrics on the Grid/Graph that contains the widget; there is no maximum number of attributes and metrics. A Thermometer widget requires a selector to allow a user to interact with it. For information about selectors, including procedures to create them, see Providing interactivity to users: selectors, page 418.
543
It is recommended that you place the corresponding Grid/Graph beneath the selector. This allows you to see the Grid/Graph's values as you select different attribute elements from the selector and see how they change the appearance of the Thermometer widget. For instructions to insert a Grid/Graph, see Adding a Grid/Graph to a document, page 298. For instructions to create a widget, see Creating widgets, page 597.
The formatting listed above is done in Design View (Desktop) and in Design Mode and Editable Mode (MicroStrategy Web). In Flash Mode in MicroStrategy Web, you can specify the: Colors and shading scheme of the thermometer The minimum and maximum values of the thermometer, which appear at the bottom and top of the thermometer
two metrics columns of If you includewidget, a line on theis displayed the Grid/Graph that contains the graph with the area graph.
545
You can place any number of attributes and metrics on the Grid/Graph that contains the widget; there is no maximum number of attributes and metrics. A Time Series Slider widget does not require a separate selector to allow a user to interact with it. However, you can add a selector to allow users to change the attributes that are displayed in the widget. If you add a selector, it is also recommended that you include the corresponding Grid/Graph as well. This allows the user to see the Grid/Graph's values as you choose different attribute elements from the selector. For instructions, see Defining a selector, page 423 and Adding a Grid/Graph to a document, page 298. A Time Series Slider widget can be used as a selector. For an example and more information, see Using a Time Series Slider widget as a selector, page 630. For instructions to create a widget, see Creating widgets, page 597.
A widget also has additional formatting specific to the type of widget. For a Time Series Slider widget, you can change: The font of the text that appears in the graph. For instructions, see Formatting the text on a graph, page 612. The color of the area graph series. For instructions, see Formatting the color of the bar risers, page 614. Whether or not the graph legend is displayed, and its formatting. For instructions, see Formatting the legend, page 616.
The formatting listed above is done in Design View (Desktop) and in Design Mode and Editable Mode (MicroStrategy Web). In Flash Mode in MicroStrategy Web, you can specify: Whether to display the graph legend inside or outside the graph. Whether the height of the Y-axis of the primary graph is fixed or automatically resized to the displayed data. Whether or not to view only a subset of the dataset on the graph. This data sampling option displays an equally-dispersed set of X-axis values on the graph, to provide an overall impression about the graphs value. You can specify the number of data points that are displayed. a subset only if are working with datasets You should view data points will you affect the overall meaning in which removing not of the graph. Whether or not to display all series as lines on the graph. By default, the first series in the graph is displayed as an area graph. The slider position, which determines the range of values that are displayed in the widget when the document opens. The slider can be given a default position, or return to the same position it was in when the document was last saved. Whether the slider or the primary graph is used as a selector. Target Grid/Graphs and panel stacks are updated when a user hovers the cursor over either a data point in the primary graph or a range of data in the slider. only if the widget is a selector This option is appliedand panel stacks. Forused asinformationtoon update Grid/Graphs more how a Time Series Slider widget is used as a selector, see Using a Time Series Slider widget as a selector, page 630. For instructions to use a widget as a selector, see Viewing data related to a widget: Using a widget as a selector, page 621.
547
The increments and decrements in a Waterfall widget can be calculated and displayed in any of the following ways: Increments and decrements are calculated and displayed in the widget according to the metrics that are included on the Grid/Graph and the order of those metrics. It is recommended that you use this method when the metrics are on the rows of the Grid/Graph and the attributes are on the columns of the Grid/Graph. This allows you to place the metrics along the X-axis in a specific order and view the increment and decrement bars in that order. To ensure that the metrics determine how increments and decrements are calculated and displayed, select the Increments/Decrements Provided check box. For instructions on accessing this check box, which is available in the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web, see Formatting for a Waterfall widget, page 550. Increments and decrements are automatically determined by the widget when it is displayed in MicroStrategy Web. They are calculated according to the metrics included on the Grid/Graph. It is recommended that you use this method when the metrics are on the columns of the Grid/Graph and the attributes are on the rows of the Grid/Graph. Using this method requires that you have placed metrics on the columns that depict the total value for each unit of time. To ensure that the widget automatically determines the increments and decrements, clear the Increments/Decrements Provided check box. For instructions on accessing this check box, which is available in the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web, see Formatting for a Waterfall widget, page 550.
549
The data requirements for a Waterfall widget are described below: At least one metric on the rows or columns. Any number of metrics and attributes can be placed on the rows and columns.
Bars based on the metric values are displayed in the widget. If attributes or metrics are placed on the rows, the attribute elements or metrics are displayed on the X-axis of the widget. If the rows contain both attributes and metrics, a combination of those objects is displayed.
the metrics on the generate If you wantand decrement barsGrid/Graph to place the the on increment in the widget, metrics the rows.
If attributes and/or metrics are placed on the columns, attribute elements and metrics are displayed in the legend. If the columns contain both attributes and metrics, a combination of those objects is displayed.
A Waterfall widget does not need a separate selector to allow a user to interact with it. However, you can use a Waterfall widget as a selector. For an example and more information, see Using a Waterfall widget as a selector, page 634. For instructions to create a widget, see Creating widgets, page 597.
The color of the bars (series). For instructions, see Formatting the color of the bar risers, page 614. The background color. The border color. Whether the data labels or titles are displayed along the X axis and Y axis. The format of the series data text. The format of the title. The number format of the metric values. For example, you can format numbers to appear as dollars and cents, as percentages, or even as scientific notation. This formatting is done in Design View in Desktop and in Design Mode and Editable Mode in MicroStrategy Web. For instructions, see Changing the number format of the metric values, page 610.
The formatting listed above is done in Design View (Desktop) and in Design Mode and Editable Mode (MicroStrategy Web). Instructions can be found in the Graphing chapter of the MicroStrategy Advanced Reporting Guide. In Flash Mode or Interactive Mode in MicroStrategy Web, you can specify: The colors for the increments and decrements bars. By default, shades of red are used for the decrements and shades of green for the increments. You can instead select a base color for the increments and for the decrements. The first increment/decrement series uses the base color, and subsequent series are colored in a shade of the base color. If the base color is dark, additional series use lighter shades, otherwise they use darker ones. The border color. Whether or not to apply shadow effects on the bars. Whether increments and decrements are calculated by the widget or based on the metrics (that is, if the data provides the amount of increase or decrease per period). Whether the final bar is calculated by the widget or provided by the Grid/Graph data. The final bar is located on the far right of the widget. The label or name for the final bar. By default, it is displayed as Final, but you can rename it as Final Value or End of 2008, for example. This option is available only if the final bar is calculated by the widget.
551
Whether to display or hide lines connecting adjacent bars of the same series. This option is only available if the widget contains a single series. Whether to show additional series in tooltips. This option is available only if the Grid/Graph contains attributes and metrics on different axes. Whether to stagger X axis labels if all the labels do not fit below the widget. By default, the labels are displayed on a single line rather than in staggered lines. If this option is selected, all the labels are displayed; none are removed from the widget. Whether to display or hide the horizontal target lines. You can specify the number of target lines, from zero to ten. When you return to Flash Mode, you can move the new target lines. Whether or not what-if analysis is enabled. What-if analysis allows users to modify the size of bars using bar handlers. Increasing or decreasing the size of a bar affects the values in the widget. A user can also review the history of his changes to the bar size, and reset the bars to their original values. Whether to display or hide bar handlers, which enable users to perform what-if analysis with the widget. If bar handlers are hidden, a user can display them by pointing to a bar. This option is available only if what-if analysis is enabled.
performing poorly are at the bottom. A stacked bar graph is included next to the grid; it indicates the relative contribution, or weight, of each row.
In summary, the Weighted List Viewer widget has the following characteristics: A grid that provides attribute and metric values with threshold colors applied to the values from top to bottom. The color bands on the grid reflect the range of values of the first metric on the Grid/Graph that contains the widget. In the example above, the top rows are green and represent the maximum value of the Order Count metric. The next rows are black, denoting neutral metric values, and gradually change into the red of the bottom rows. Red represents the minimum range of values of the Order Count metric. The green-to-black-to-red color gradient is automatically generated by the widget. You can specify whether to divide the metric values into two or three threshold color bands. (For the steps, see Formatting for a Weighted List Viewer widget, page 555.) A stacked contribution bar graph on the left that depicts the relative contribution or percent-to-total calculation of a metric. This bar reflects the values of the second metric on the Grid/Graph that contains the widget.
553
Specific colors are used to depict good, neutral, and poor performance:
Green indicates good performance Black indicates neutral performance Red indicates poor performance
You can change these color settings, as described in Formatting for a Weighted List Viewer widget, page 555.
The first metric on the columns is the threshold metric. This metric is used to set the color of the rows. These colors are also displayed in the grid on the right side of the widget. The second metric on the columns is the weighting metric that determines the percent-to-total value for each business attribute. It is used to set the relative size of each section of the contribution graph on the left side of the widget. Additional metrics are displayed in the grid, but do not have any effect on the threshold colors or contribution graph on the left side of the widget.
A Weighted List Viewer widget does not need a separate selector to allow a user to interact with it. However, you can use a Weighted List Viewer widget as a selector. For an example and more information, see Using a Weighted List Viewer widget as a selector, page 634. For instructions to create a widget, see Creating widgets, page 597.
555
on how to use the dashboard. You can also use the Media widget to enhance the look and feel of a dashboard. In the following dashboard, the Media widget in the top left corner shows a companys CEO addressing his employees on important trends in the latest figures.
By default, the video plays automatically when the document is opened. (This preference is determined by the document designer, as explained in Creating a Media widget, page 560). A document analyst can, at any time, pause, rewind, stop, or replay the video in the Media widget. One of the primary purposes of the Media widget is to present supplemental information about the data on a dashboard. For example, a regional manager can record a video that summarizes quarterly sales and discusses the significance of the data in a sales dashboard. Analysts can then view the dashboard in the context of this additional information and commentary. The Media widget can also be used for instructional purposes. For instance, a document designer can include audio or video files that explain how to use a dashboard. Analysts can use this information to focus on key data and take advantage of the dashboard's interactive features, allowing them to work with the dashboard more efficiently.
Additionally, you can display HTML content from a website in the widget. For example, you can display a section of your internal corporate website that contains a business presentation. Website content that is refreshed frequently, such as numeric indicators on system usage, can also be useful media to present in the widget. To create a Media widget, you must specify the media file to play in the widget. The media file used in the widget can come from an online source or be stored locally on your machine or remotely on the corporate network. The media is presented automatically when the dashboard is loaded. It can also be displayed on demand by selecting the Play button in the widget or by selecting a specific attribute, document, or dataset. You can also configure the Media widget to play a media file based on the attribute, document, or dataset report selected in the dashboard. For example, select a quarter in the document, and a manager's video about the revenue for that quarter is displayed. Similarly, you can choose a region to play a video about the performance of the stores in that particular region. For more information about playing a media file automatically when a specific attribute is selected in the dashboard, see Viewing media related to a specific attribute, document, or dataset, page 559. If your machine is running Microsoft Windows 2003 SP2 (R2) and Microsoft Internet Information Services (IIS) 6, you must add .flv files to the Multipurpose Internet Mail Extension (MIME) types in IIS Manager. See Configuring IIS 6 in Microsoft Windows 2003 SP2 (R2) to display Flash video, page 563 for instructions. You can export a dashboard containing a Media widget into a Flash file, so that users can view the widget and interact with it off-line, without a connection to MicroStrategy Intelligence Server or MicroStrategy Web Server. To ensure that the Media widget can play the media file off-line, the file name for the media file must be specified without a path. The media file must be stored in the same folder as the Flash file. When specified this way, the media file is not accessible when the dashboard is viewed online. For more information about Flash files and how to export dashboards, see the MicroStrategy Document Analysis Guide or the Desktop Help.
557
The Media widget can only play and display the file formats listed in the following table.
Media Type Video Audio Graphic Format .swf .flv .mp3 .gif .jpg .png .svg
graphic, video, or that To use athat the file has theaudio clip view is available on your network, ensure required or access privileges. Only specific HTML tags are supported by the Media widget. These HTML tags include the following: Anchor tag (<A>) Bold tag (<B>) Break tag (<BR>) Image tag (<IMG>) Italic tag (<I>) List item tag (<LI>) Paragraph tag (<P>) Underline tag (<U>)
The following HTML tags are not rendered in the widget, but content within the tags is displayed: <TABLE> <TR> <TD>
<DIV> <FONT>
tag may The <FONT>example, be removed if it contains a CLASS attribute within it, for <font class="header">Welcome </font>. The following HTML tags and any content within the tags are not rendered in the widget. <SCRIPT> <STYLE> <SPAN>
559
Follow the guidelines below to display media related to a specific attribute, document, or dataset report: Attribute names: Use the following format to specify the name of an attribute: {[name of attribute]}. For example, to display a video related to a specific marketing campaign, you can use the following format: http://www.example.com/MarketingCampaign Videos/{[Campaign]}.swf Use a + character to separate the names of different attributes or attribute elements. For example, if you are using a selector to filter the Store and Zip Code attributes, use the following format: http://www.example.com/videos/{[Store]+[ZipCode]} Document or dataset report names: Use the following format to specify the name of a document or dataset report: {[#name of document#]} or {[#name of dataset#]}
1 Open the document using the Document Editor in Design View. 2 Insert a Grid/Graph into the document, if one is not already in the document. For a procedure, see To add a Grid/Graph, page 299. 3 Right-click the Grid/Graph to turn into a widget, and select Properties. The Properties dialog box opens. 4 Click the Widget tab. 5 From the Widget drop-down list, point to Flash, and then select Media . In Flash Mode in MicroStrategy Web, the Grid/Graph displays as a Media widget. 6 You can change the Alternative display property, which determines how the widget looks in PDF View in Desktop, in Interactive Mode and Express Mode (DHTML) in MicroStrategy Web, and when exported to Excel and PDF. The widget can display as a placeholder or as a Grid/Graph, or can be hidden. For more information, see Determining how a widget is displayed, page 601. 7 Click OK to save the changes and return to the document.
560 Understanding and working with widgets
You must enable Flash Mode in the document so that you and other users can view the widget in Flash Mode in Web. 8 From the Format menu, select Document Properties. The Document Properties dialog box opens. 9 On the Document tab, in the Available display modes list, select the Flash check box. 10 You can specify that this document always opens in Flash Mode when it is initially opened in Web. To do this, select the Default radio button next to Flash. 11 Click OK to return to the document. 12 Save the document.
Specify the media content to display in the widget
You must specify the media content that the widget displays. You can also specify the play frequency options for the widget. 13 Open the document in Flash Mode in MicroStrategy Web. 14 Right-click the widget and select Properties. The Properties dialog box opens. 15 On the General tab, from the Content Type drop-down list, choose the type of media to present by selecting one of the following: Video Audio Web Content Image
specific video, audio, image file formats OnlyMedia widget. For a listandsupported formats,are supported in the of see Requirements for Media widgets, page 557.
561
16 Specify the location of the content in the Default Feed field, as described below: If the media is stored on a network location or website, specify the network location of the file or websites URL using the following format: http://www.example.com/SalesVideos/South.swf
in the Folder paths cannotform of \\computer_name\videos\ South.swf be used to define a Media widget. To display media for a specific attribute, document, or dataset, specify a dynamic path that includes the name of the object. For more information and examples, see Viewing media related to a specific attribute, document, or dataset, page 559.
is specified without path, the If the file nameoff-line in a Flash fileabut cannotMedia widget can display the file access the file to play it online. 17 If you selected Web Content as the Content Type and the Web content is located on a different Web domain than the one used for MicroStrategy Web, select the Use Proxy check box. 18 Select the Play Frequency tab. 19 To display the Play button in the widget, select the Show play button control check box.
If the Play button is not displayed, the media cannot be controlled by the user.
20 To play the media file automatically when the dashboard is loaded, select the Auto Play on Start check box. 21 From the drop-down list, select Continuous Play (Loop) to play the video continuously in a loop or select Play Once to play the video only once. 22 Click OK to apply the changes.
If the Media widget will not play the media file in MicroStrategy Web after you have followed the procedure above, define the path of the media file through Adobe Flash Player, as described below: 1 Open the Adobe Flash Player Settings Manager at http://www.macromedia.com/support/ documentation/en/flashplayer/help/settings_manager04. html. 2 Click the Global Security Settings tab. 3 Select Add location from the Always trust files in these locations drop-down-list. 4 Enter the path of the media file, such as http://www.example.com/SalesVideos/ or D:\media files. 5 Click Confirm to save the path.
Configuring IIS 6 in Microsoft Windows 2003 SP2 (R2) to display Flash video
If your machine is running Microsoft Windows 2003 SP2 (R2) and Microsoft Internet Information Services (IIS) 6, you must add .flv files to the Multipurpose Internet Mail Extension (MIME) types in IIS Manager. If you do not modify the MIME types in IIS, the Media widget cannot function properly in this environment. A procedure to add the flv files is included below. If your machine is operating in a different environment, this procedure is not required. discussed in the procedure below The third-partybyproduct(s)independent of MicroStrategy. is manufactured vendors MicroStrategy makes no warranty, express, implied, or otherwise, regarding this product, including its performance or reliability.
563
This procedure is only required if your machine is running Microsoft Windows 2003 SP2 (R2) and Microsoft IIS 6.
1 From your Windows Start menu, select Control Panel, and then select Administrative tools. The Administrative Tools window opens. 2 Double-click Internet Information Services (IIS) Manager. IIS Manager opens. 3 Expand the (local computer) folder, expand Web Sites, and then expand Default Web Site. 4 Right-click MicroStrategy, and select Properties. The MicroStrategy Properties window opens. 5 On the HTTP Headers tab, click the MIME Types button in the MIME Types area. The MIME Types dialog box opens. 6 Click New. The MIME Type dialog box opens. 7 In the Extension text field, type flv. 8 In the MIME Type text field type video/x-flv. 9 Click OK. The MIME Type dialog box closes. 10 Click OK. The MIME Types dialog box closes. 11 Click OK. The MicroStrategy Properties window closes. 12 Restart IIS.
Whether to show the content as a pop-up. You can determine whether the content is displayed inline or in a new window, and you can also specify the text of the button that is displayed in the widget. Whether to display the Play button in the widget. If the Play button is not displayed, the media cannot be controlled by the user. Whether to begin playing the feed data automatically or when the Play button is clicked. Whether to play the feed data once or loop it continuously.
565
with the goals for the regions, which are represented by the vertical lines within the bullet microcharts.
You can view these rows of microcharts in several ways: All the microcharts As a scrolling ticker that moves horizontally As scrolling rows that move vertically
For details on how to implement one of these displays, see Viewing and interacting with a Microcharts widget: operation modes, page 568. The number of rows in the widget represents the number of elements from the first attribute on the rows of the Grid/Graph that contains the widget. For example, the widget above has seven rows of regional data because the Region attribute on the Grid/Graphs rows has seven different elements, or regions. Some of the metrics on the Grid/Graph are used to create the microcharts in the widget, such as a sparkline or bar chart. Each of the following
Sparklines
Each type of microchart needs different data requirements, as described in Data requirements for a Microcharts widget, page 581.
567
1 Use Flash Mode in MicroStrategy Web to open a document containing a Microcharts widget. 2 Right-click the widget and select Properties. The Properties dialog box opens. 3 From the drop-down list, select Options. 4 To show or hide bar microcharts: a Click the Bar tab. b Select or clear the Show bar graph check box. 5 To show or hide sparkline microcharts: a Click the Sparkline tab. b Select or clear the Show sparkline graph check box. 6 To show or hide bullet microcharts: a Click the Bullet tab. b Select or clear the Show bullet graph check box. 7 Click OK to save your changes.
These modes include the following: Grid: This is the default operation mode for a Microcharts widget. In this mode, all the rows of microcharts are displayed at the same time, from top to bottom, as shown below:
While in Grid mode, if the rows of the Grid/Graph have at least three attributes, each attribute except the right-most attribute is combined and displayed as a row in the widget. For example, if Region is the first attribute and Call Center is the second attribute, rows are displayed for Northeast Boston and Northeast New York. You can specify that the widget groups and indents these rows in a hierarchical tree display. The groups can then be collapsed or expanded to show different levels of detail, with each level representing a different attribute. For an example, and steps to enable tree display, see Enabling Grid mode to view rows in a tree, page 576. Vertical Scroll: In this mode, you can view each row of microcharts as they automatically scroll from the top to the bottom. You can also manually navigate from one row to the next using the Previous and Next buttons on the right side of the widget, as shown below:
For steps to view microchart rows one at a time, see Enabling Vertical Scroll mode to view rows one at a time, page 577. Ticker: In this mode, microcharts and supplemental text are displayed in a scrolling ticker that moves from right to left, as shown below. You can add text next to each microchart to provide background information or
569
highlight a trend displayed in the microchart. This text is displayed alongside the microcharts as they scroll horizontally, as shown below:
For details, examples, and steps to view microchart rows as scrolling tickers, see Enabling Ticker mode to view microchart rows as scrolling tickers, page 578.
When an analyst views the Microcharts widget in KPI List mode, he can see KPIs such as Profit, Revenue, and Cost as separate rows of microcharts in a
compact list, called the KPI list. Each row of microcharts tracks a specific KPI over time, as shown in the image below:
After enabling KPI List mode, you must determine how many of the metrics on the Grid/Graph are used to generate each row of KPI microcharts. For example, the following Grid/Graph, which was used to create the widget shown above, contains nine metrics in its columns:
If you specify three as the number of metrics to use per KPI in this widget: The first three metrics are used to create a row of microcharts for the Revenue KPI. This set of metrics is indicated by the first circle in the image above. These three metrics produce the first row of the widget example above, labeled as Revenue. The fourth, fifth, and sixth metrics are used to create a row of microcharts for the Profit KPI, as grouped by the second circle. They produce the second row of the widget example above, labeled as Profit. The seventh, eighth, and ninth metrics are used to create a row of microcharts for the Cost KPI, as indicated by the third circle. They product the third row of the widget example above, labeled as Cost.
571
The number of metrics to use per KPI also determines the types of microcharts that are displayed in the widget, as explained below. If only one metric is used per KPI, only sparkline and bar charts and their associated metrics can be displayed in the KPI list, as shown below. The horizontal reference line is not displayed in the sparklines. Notice that not all the metrics in the widget are displayed, as indicated by the scroll bar.
If two metrics are used per KPI, only sparkline and bar charts and their associated metrics can be displayed in the KPI list, as shown below. The horizontal reference line is also displayed in the microcharts, unlike if one metric is used. The entire widget is displayed below; notice that some metrics are no longer listed as individual rows.
If three to six metrics are used per KPI, any additional metrics are displayed to the right of the sparkline or bar charts and their associated metrics in the KPI list. The KPI list below uses three metrics per KPI.
Notice that no additional metrics are displayed as individual rows in the widget.
If seven or more metrics are used per KPI, the KPI list can display sparkline, bar, and bullet microcharts. Any additional metrics are displayed to the right of the sparkline and bar microcharts. The KPI list below uses seven metrics per KPI.
widget from the Grid/Graph that in Thispreviouswas not createdGrid/Graph for this widgetwas used 21 the examples. The contains metrics on the Grid/Graph that contains the widget, so that seven metrics can be used for each of the three KPIs. For example, the first seven metrics are used to create the row of microcharts for the Revenue KPI. The following procedure describes how to view a list of KPIs as individual microcharts in the Microcharts widget.
Prerequisites
This procedure assumes that the Grid/Graph in Design Mode or Editable Mode contains only one attribute on its rows. A widget can be viewed in KPI List mode when there is only one attribute on the rows of the Grid/Graph that contains the widget. For an explanation of the required configurations for a widget that supports KPI List mode, see Viewing a list of KPIs as rows of microcharts: KPI List mode, page 570.
573
This procedure assumes you have already created a Microcharts widget; for instructions, see Creating widgets, page 597.
1 Use Flash Mode in MicroStrategy Web to open a document containing a Microcharts widget. 2 Right-click the widget and select Properties. The Microcharts Widget Properties dialog box opens. 3 From the drop-down list at the top left of the dialog box, select Mode. 4 On the Mode tab, from the Operation Mode drop-down list, select Grid or Vertical Scroll. Since the Grid/Graph that contains the widget has only one attribute on the rows, the KPI List Mode check box is selected by default.
Specifying the number of metrics to use per KPI
5 In the Metrics per KPI field, specify the number of metrics on the Grid/Graph to use to generate the rows of microcharts for the KPIs. For details about how the number of metrics to use per KPI affects the display of the widget, see the examples in Viewing a list of KPIs as rows of microcharts: KPI List mode, page 570.
Naming the metrics associated with microcharts
You can name the column that displays the metric associated with the sparklines or bullet charts. This metric is the same as the last data point within the sparklines and bullet charts. For example, in the widget below, the last data point in the microcharts is the same value that is displayed to
the right of the sparkline. Therefore, a name such as This Quarter is an appropriate label for the column with this associated metrics values, since the last data point is for the most recent quarter.
6 From the drop-down list at the top left of the dialog box, select Labels. 7 You can add a label for the metric associated with the sparklines to name the column that contains the metric values associated with the sparklines. To do this, on the Sparkline tab, in the Associated Metric field, type a name for the column that contains the metric values associated with the sparklines. For example, you can name this column This Quarter. This label is displayed in the column header and tooltip regardless of whether the sparklines are hidden from view. 8 You can add a label for the metric associated with the bullet charts, for example, to name the column that contains the metric values associated with the bullet charts. To do this, on the Bullet tab, in the Associated Metric field, type a name for the column that contains the metric values associated with the bullet charts. For example, you can name this column This Quarter. This label is displayed in the column header and tooltip regardless of whether the bullet charts are hidden from view. 9 Click OK to apply the changes to the widget.
575
If the rows of the Grid/Graph have at least three attributes, each attribute except the right-most attribute is combined and displayed as a row in the widget. For example, if Region is the first attribute and Call Center is the second attribute, rows are displayed for Northeast Boston and Northeast New York. You can specify that the widget groups and indents these rows in a hierarchical tree display. The groups can then be collapsed or expanded to show different levels of detail, with each level representing a different attribute. In the image below, rows are grouped by the Region attribute. The Northeast group is expanded to display the elements of the Call Center attribute, with the rows Boston and New York. You can accommodate up to ten attributes in the tree display.
When the rows are displayed in the tree display, you can set the aggregation function. The aggregation function determines how the totals for the groups are calculated. For example, if a group consists of several regions, the aggregation function can be defined as Average, to average the metric values across all the regions in the group.
576 Understanding and working with widgets
2011 MicroStrategy, Inc.
Enabling tree display and specifying the aggregation function must be done in Flash Mode in MicroStrategy Web, as described in the following procedure.
To allow users to view microchart rows in a tree display
This procedure assumes you have already created a Microcharts widget; for instructions, see Creating widgets, page 597. 1 Use Flash Mode in MicroStrategy Web to open a document containing a Microcharts widget. 2 Right-click the widget and select Properties. The Microcharts Widget Properties dialog box opens. 3 By default, a Microcharts widget is displayed in Grid mode. If it is not, enable Grid mode: a From the drop-down list at the top left of the dialog box, select Mode. b On the Mode tab, from the Operation Mode drop-down list, select Grid. 4 Select the Tree display check box. 5 Select the Aggregation function from the drop-down list. The options are: Sum Average Count Max Min
577
manually scroll from one row to another using the Previous and Next buttons in the widget. The following procedure describes how to enable Vertical Scroll mode in Flash Mode.
To allow users to view microchart rows one at a time
This procedure assumes you have already created a Microcharts widget; for instructions, see Creating widgets, page 597. 1 Use Flash Mode in MicroStrategy Web to open a document containing a Microcharts widget. 2 Right-click the widget and select Properties. The Microcharts Widget Properties dialog box opens. 3 From the drop-down list at the top left of the dialog box, select Mode. 4 On the Mode tab, from the Operation Mode drop-down list, select Vertical Scroll. 5 You can enable manual scrolling from one row to another. To do this, on the Vertical Scroll tab, select the Previous/Next buttons check box to display the Previous and Next buttons. These are used to manually scroll from one microchart row to another. 6 Define the speed of the vertical scrolling by selecting an option from the Motion drop-down list. 7 Click OK to apply the changes to the widget.
You can define two tickers in a Microcharts widget. Which ticker is displayed in the widget depends on the following: Ticker 1 is displayed when the third metric (the performance metric) on the Grid/Graph that contains the widget is equal to or greater than the target value. The target value is represented by the seventh metric. Consider this when defining the text that is displayed for this ticker. Ticker 2 is displayed when the third metric (the performance metric) on the Grid/Graph is less than the target value, which is represented by the seventh metric. Consider this when defining the text that is displayed for this ticker.
The following example uses variables to define the text that appears in Ticker 2. Recall that Ticker 2 is displayed when the third metrics (the performance metric) values are less than the target values represented by the seventh metric. The text in braces contains the variables for a microchart, attribute, or metric. {&sparkline} The {Region} Region has NOT reached its profit target of {[Profit Target]} {&bullet} The resulting ticker is displayed below. When you click the text, a larger version of the ticker is displayed.
The following procedure describes how to view the rows of a Microcharts widget in a scrolling ticker that automatically moves from right to left.
579
Prerequisite
This procedure assumes you have already created a Microcharts widget; for instructions, see Creating widgets, page 597.
To allow users to view microchart rows as scrolling tickers
1 Use Flash Mode in MicroStrategy Web to open the document containing the Microcharts widget. 2 Right-click the widget and select Properties. The Microcharts Widget Properties dialog box opens. 3 From the drop-down list at the top left of the dialog box, select Mode. 4 On the Mode tab, in the Operation Mode drop-down list, select Ticker. 5 On the Ticker tab, type a name for the ticker in the Title field. This name appears above the ticker. 6 Users can choose to manually scroll from one row to another. To allow this, select the Previous/Next buttons check box to display the Previous and Next buttons, which are used to manually move the ticker data across the screen. 7 Select or clear the Enable detail view check box to display or hide a detailed view of each row. The detail view displays a larger version of the row when you click the text within the scrolling row. This view is similar to the view in Grid operation mode. 8 Define the speed of the scrolling ticker by selecting an option from the Motion drop-down list.
Define the text that appears in the tickers
Ticker 1 is displayed when the third metrics (the performance metric) values are equal to or greater than the target values represented by the seventh metric. Ticker 2 is displayed when the third metrics values are less than the target values represented by the seventh metric.
9 To define the text that appears in the tickers, in the Ticker 1 and Ticker 2 fields, type values for the tickers. You can use the following variables to define the text for tickers: Microcharts: Type one of the following to display specific types of dynamic microcharts at run time: {&bullet} for bullet microcharts {&bar} for bar microcharts {&sparkline} for sparkline microcharts For example, {&sparkline} is replaced by the corresponding sparkline microchart when the document is executed. Using the ampersand (&) before variables for the microcharts such as {&bullet} or {&sparkline} ensures that the variables refer to dynamic data values in the widget. Attributes and Metrics: Enter attributes and metrics in braces (that is, {}) to display dynamic attributes and metrics at run time. For example, enter {name of attribute or metric} to display the corresponding values of the attribute or metric at run time. To specify attributes or metrics that are composed of more than one word, include brackets as shown in the following example: {[Revenue Forecast]}. 10 From the Ticker 1 color and Ticker 2 color drop-down lists, select a font color for Ticker 1 and Ticker 2, respectively. 11 Click OK to apply the changes to the widget.
581
Each type of microchart needs different data requirements, as described in the following table:
Microchart Type Simultaneous bar, sparkline, and bullet microcharts Report Object Requirements on the Grid/Graph These requirements produce all three types of microcharts, although bar charts are hidden by default. For instructions on how to show them, see To show or hide a type of microchart, page 568. At least two attributes on the rows, unless KPI List mode is used. For requirements for KPI List mode, see Viewing a list of KPIs as rows of microcharts: KPI List mode, page 570. The last (right-most) attribute on the rows determines the X-axis values in the bar and sparkline microcharts in the widget. The remainder of the attributes on the rows (the first, second, third, fourth, and so on) determine the total number of rows displayed in the widget. The elements from those attributes become individual rows in the widget. At least seven metrics on the columns. The first (left-most) metric on the columns determines the height of the bars in the bar microcharts and the peak points in the sparkline microcharts. The second metric creates the horizontal reference lines that are displayed in the sparkline microcharts. The third metric determines the length of the performance measure bar in the bullet microcharts. The bar represents the actual metric value. The fourth metric determines the maximum possible values in the bullet microcharts. The fifth metric determines the right-most boundary of the first color band, Band 1, in the bullet microcharts. The sixth metric determines the right-most boundary of the second color band, Band 2, in the bullet microcharts. The seventh metric determines the value of the vertical reference line in the bullet microcharts, which is typically the target value for the metric. Any additional metrics are displayed in the columns of the widget, after the microcharts and their associated metrics.
Report Object Requirements on the Grid/Graph Bar and sparkline microcharts are based on the same metrics and are therefore designed in a similar way. Bar microcharts are hidden by default; for instructions to display them, see Showing and hiding microchart types, page 567. At least two attributes on the rows, unless KPI List mode is used. For requirements for KPI List mode, see Viewing a list of KPIs as rows of microcharts: KPI List mode, page 570. The last (right-most) attribute on the rows determines the X-axis values in the bar and sparkline microcharts in the widget. The remainder of the attributes on the rows (the first, second, third, fourth, and so on) determine the total number of rows displayed in the widget. The elements from those attributes become individual rows in the widget. At least two metrics on the columns. The first (left-most) metric on the columns determines the height of the bars in the bar microcharts and the peak points in the line graphs in the sparkline microcharts. The second metric creates the horizontal reference lines that are displayed in the sparkline microcharts. If you place a third, fourth, fifth, and sixth metric on the columns, the metrics are displayed as individual columns in the widget. These columns are displayed after the microcharts and metrics associated with the microcharts. If you place a seventh metric on the columns, you can produce bullet microcharts. See Viewing and interacting with a Microcharts widget: operation modes, page 568 for more information.
583
Report Object Requirements on the Grid/Graph These requirements produce bullet microcharts, but sparkline and bar microcharts are automatically produced as well. By default, the bar microcharts are hidden, while the others are displayed. For instructions on how to hide the sparkline microcharts as well, see To show or hide a type of microchart, page 568. At least two attributes on the rows, unless KPI List mode is used. For requirements for KPI List mode, see Viewing a list of KPIs as rows of microcharts: KPI List mode, page 570. The last (right-most) attribute on the rows determines the X-axis values in the bar and sparkline microcharts in the widget. The remainder of the attributes on the rows (the first, second, third, fourth, and so on) determine the total number of rows displayed in the widget. The elements from those attributes become individual rows in the widget. At least seven metrics on the columns. The first (left-most) metric on the columns determines the height of the bars in the bar microcharts and the peak points in the sparkline microcharts. This applies even if you want to display only bullet microcharts. The second metric creates the horizontal reference lines that are displayed in the sparkline microcharts. This applies even if you want to display only bullet microcharts. The third metric determines the length of the performance measure bar in the bullet microcharts. The bar represents the actual metric value. The fourth metric determines the maximum possible values in the bullet microcharts. The fifth metric determines the right-most boundary of the first color band, Band 1, in the bullet microcharts. The sixth metric determines the right-most boundary of the second color band, Band 2, in the bullet microcharts. The seventh metric determines the value of the vertical reference line, which is typically the target value for the metric. Any additional metrics are displayed in the columns of the widget, after the microcharts and their associated metrics.
KPI List mode For KPI List mode, only one attribute can be included on the rows. This attribute should be time-based, since it controls the time series of the bar charts and sparklines in the widget. If only one attribute is placed on the rows, the widget can only be viewed in KPI List mode. For more information, see Viewing a list of KPIs as rows of microcharts: KPI List mode, page 570.
For instructions to create a widget, see Creating widgets, page 597. You can add links to an Interactive Bubble Graph widget. Linking allows users to connect from a widget in a document (the source) to another document or a report (the target). If you add a link to a Microcharts widget, a Links menu is displayed when a MicroStrategy Web user hovers the cursor over a bar chart or sparkline graph in the widget. The user can click a link in
the Links menu to open the target. See Linking in widgets, page 659 for instructions and examples.
Formatting the entire Microcharts widget Column headers Format the attribute values on the Grid/Graph that contains the widget, using Desktop or in Design Mode or Editable Mode in MicroStrategy Web. Format the font and color of the first metrics values on the Grid/Graph, using Desktop or in Design Mode or Editable Mode in MicroStrategy Web. Format the first metrics values on the Grid/Graph, using Desktop or in Design Mode or Editable Mode in MicroStrategy Web. Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web.
Metric values Note: You cannot format individual metric columns. Transparency of the background of the widget
585
Formatting Option Display the metrics for microcharts that are hidden from view
Dialog Box to Use Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. For example, even if bullet microcharts are disabled in the widget, you can choose to display the third, fourth, fifth, and sixth metrics for the bullet charts in the widget. Mode tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Note: Hiding the column headers is convenient if you plan to use text fields above the widget.
Hide columns that contain attributes or text, such as metric columns in KPI List mode
Mode tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Note: Hiding text columns is similar to removing attribute column headers in a grid report. It is often convenient to hide text columns if you plan to include multiple microcharts next to one another that share the same attributes. Mode tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web.
Lock the layout, which ensures that the following tasks cannot be performed in the widget: Sorting the data within columns Reordering columns Changing the size of columns
Formatting the bar microcharts Show or hide the bar microcharts Show or hide the minimum and maximum values for the bar microcharts Adjust the color of the bars (series) in the bar microcharts Add a descriptive column header name above the bar microcharts Bar tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bar tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bar tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bar tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web.
Formatting the sparkline microcharts Show or hide the sparkline microcharts Show or hide the markers on the line graph in the sparkline microcharts Bar tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Sparkline tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web.
Formatting Option Show or hide the horizontal reference line or sparkline background (reference area) Show or hide the metric column and values associated with the sparkline microcharts Color of the fluctuating line (series) in the sparkline microcharts Color of the horizontal reference line or sparkline background (reference area) Display a descriptive column header name above the sparkline microcharts Formatting bullet microcharts Show or hide the bullet microcharts Show or hide the vertical reference line or color bands Show or hide the legend for the bullet microcharts Show or hide the metric column and values associated with the bullet microcharts Color of the performance bar (positive and negative values) Color of the vertical target line Color of the reference bands Display a descriptive column header name above the bullet microcharts Display descriptive band names in the legend Display the bullet microchart from left to right, or right to left (inverted)
Dialog Box to Use Sparkline tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Sparkline tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Sparkline tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Sparkline tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Sparkline tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web.
Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web. Bullet tab of the Properties dialog box in Flash Mode or Interactive Mode in MicroStrategy Web.
587
Analysts can use RSS Reader widgets on a dashboard to view and update their favorite RSS news feeds as they analyze grids, graphs, and other objects in the dashboard.
For example, you are viewing a dashboard with sales figures for some of your local customers. You can configure the RSS Reader widget to display up-to-the-minute news about those customers. This allows you to view both sales data and news information about the same customers in one place. Consider another example. One of your reports provides sales figures for a group of stores in northern California. Using an RSS feed, you can display local industry news for that specific region, which can provide valuable background information about those sales figures. To extend this relationship between your business data and recent news, you can configure an RSS feed to be connected to specific attributes in your document. For example, you can click a customer's name on a report to view updated RSS news information about that customer. For more information on displaying news related to an attribute on your dashboard, see Viewing news related to a specific attribute, document, or dataset, page 591. You can display the RSS Reader widget as a widget in MicroStrategy Web, or on an iPhone with MicroStrategy Mobile. You can format how the RSS Reader widget is displayed on the iPhone, including how news items are displayed, which URLs are used to provide RSS feeds for the widget, and so on. For a complete list, see Formatting RSS Reader widgets for the iPhone, page 810. For more information on widgets for mobile devices, see Widgets for mobile devices, page 792.
The RSS widget supports both RSS 1.0 and RSS 2.0 formats.
Static vs. dynamic RSS feeds
You can configure an RSS widget to display one of the following types of RSS feeds: Static RSS Feeds: Static feeds display a default set of news about a general topic, such as business or technology. These feeds are considered static because their URLs are pre-configured to display information on a single topic. The following are some examples of static RSS feeds: http://rss.news.yahoo.com/rss/business http://rss.news.yahoo.com/rss/world http://www.washingtonpost.com/wp-dyn/rss/business/ index.xml
589
http://feeds.reuters.com/reuters/businessNews
these The URLs forrelated feeds can be modified to display specific information to data on your dashboard, as discussed below. Dynamic RSS Feeds: Dynamic feeds are URLs that have been modified to display information about a specific topic. You can use these versatile analysis tools in the RSS Reader widget to view:
News related to a specific topic. To create a dynamic feed that displays news about a specific topic, you must specify the topic in the RSS feed's URL and modify other parameters. For additional details and an example, see Viewing news related to a specific topic, page 590. News related to a specific MicroStrategy attribute, document, or dataset. To create a dynamic feed that displays news about the object, you must specify the object in the RSS feed's URL and adjust other parameters. For details and steps, see Viewing news related to a specific attribute, document, or dataset, page 591.
Depending on a feeds RSS provider, you can create a dynamic RSS feed by either modifying a static RSS feed's URL or using a new, dynamic URL. The method to use depends on the provider of the RSS feed. Regardless of the method that you use, you must enter appropriate parameters in the RSS feeds URL to retrieve and display news on a specific topic. These parameters include a query parameter, which defines the topic you are searching for, as well as language and country parameters.
This URL includes the necessary p= query parameter, as well as the URLs Universal Transformation Code (UTF) encoding and language properties. such the one above, parameter for UTF. Some URLs,specifyasthis parameter ininclude ause UTF-8 encoding.If you have to a URL, Similarly, to search on retail sales, you can modify the URL as follows: http://news.search.yahoo.com/news/rss?p=Retail+Sales& ei=UTF-8&fl=0&x=wrt
591
The RSS widgets template must contain the attribute. The attribute must be enabled as a selector. The RSS widget must be set as a target of the attribute.
For the Category attribute example above, this means that the Category attribute on the Grid/Graph that contains the widget must be enabled as a selector. Also, the widget must be set as the target of this attribute selector. This ensures that when an attribute element is selected from the Category attribute, news related to that category of products is displayed in the widget. Consider the following example. A Grid/Graph in a document displays sales information for a store in Delaware, which is an element of the Customer State attribute. You want to display local news on your dashboard so that a document analyst can correlate sales numbers to industry news for a particular state. To do this, set the RSS Reader widget as the target of the Customer State attribute. Use a dynamic RSS feed URL and a data field in the widget to ensure that the RSS Reader widget displays news related to the state selected in the document. A data field is dynamic text that is populated by the actual name of a report object (in this case, an attribute) at run time. For this example, the attribute data field to use in the RSS feed's query parameter is {[Customer State]}. For more information on data fields and instructions to create them, see Adding data fields to a document, page 53. A complete URL can look like the following: http://news.search.yahoo.com/news/rss?p={[Customer State]}&ei=UTF-8&fl=0&x=wrt Consider another example. You want to view news about a customer when you select that customer's name from a selector in your dashboard. To achieve this, you must set the RSS Reader widget as a target of the selector. You must also insert a data field for the Customer attribute in the RSS feed's URL. When a customer is chosen from the selector, the widget displays news about that customer. For this example, the attribute data field to use in the RSS feed's query parameter is {[Customer]}. A complete URL may look like the following: http://news.search.yahoo.com/news/rss?p={[Customer]}& ei=UTF-8&fl=0&x=wrt You can also display news related to a document or dataset report by inserting the document or dataset name in the query parameter of the RSS feed's URL. To do so, use either of the following formats in the RSS feed's URL:
Use a + character to separate the names of different attributes or attribute elements. For example, if you are using a selector to filter the Store and Zip Code attributes, type {[Store]+[ZipCode]}.
Document or dataset names: Use this format to specify the query parameter in the RSS feed's URL: {[#name of document/ dataset#]}.
1 Open a document using the Document Editor in Design View. 2 Insert a Grid/Graph into the document, if one is not already in the document. For a procedure, see To add a Grid/Graph, page 299. 3 Right-click the Grid/Graph to turn into a widget, and select Properties. The Properties dialog box opens. 4 Click the Widget tab.
593
5 Select RSS Reader from the Widget drop-down list. In MicroStrategy Web, the Grid/Graph displays as an RSS Reader widget. 6 You can change the Alternative display property, which determines how the widget looks in PDF View in Desktop, in Interactive Mode and Express Mode (DHTML) in MicroStrategy Web, and when exported to Excel and PDF. The widget can display as a placeholder or as a Grid/Graph, or can be hidden. For more information, see Determining how a widget is displayed, page 601. 7 Click OK to save the changes and return to the document.
Enable Flash Mode for MicroStrategy Web
You must enable Flash Mode in the document so that you and other users can view the widget in Flash Mode in MicroStrategy Web. 8 From the Format menu, select Document Properties. The Document Properties dialog box opens. 9 On the Document tab, in the Available display modes list, select the Flash check box. 10 You can specify that this document always opens in Flash Mode when it is initially opened in Web. To do this, select the Default radio button next to Flash. 11 Click OK to return to the document. 12 Save the document.
Specify the RSS feed to display in the widget
Specify the RSS feed to which the widget will connect. You can also specify the number of news articles that are displayed, the refresh frequency of the news articles, and other options. 13 Open the document in Flash Mode in MicroStrategy Web. 14 Right-click the widget and select Properties. The Properties dialog box opens. 15 Select the General tab. 16 To create a title that appears at the top right of the widget, enter the title text in the Feed Title field.
17 Type a URL, as described below, in the RSS Feed URL field. You can type only one RSS feed. For static RSS feeds, type the RSS feed's URL. For example, to view news from the Yahoo! Business News RSS feed, enter the following: http://rss.news.yahoo.com/rss/business. For dynamic RSS feeds, specify the base URL, any language or country parameters, and one of the following: To display news about a specific topic, insert the topic into the URLs query parameter. For example, to display MicroStrategy-related news using the p= query parameter in the Yahoo! RSS feed, enter the following: http://news.search.yahoo.com/news/rss?p=mstr&ei= UTF-8&fl=0&x=wrt. For additional details and an example, see Viewing news related to a specific topic, page 590. To display news related to an attribute, document, or dataset, insert an auto code for the object in the URLs query parameter. To display news for an attribute, you must also set the Grid/Graph that contains the widget as the target of the attribute selector. For details, examples, and complete steps, see Viewing news related to a specific attribute, document, or dataset, page 591. 18 Specify the rate at which news items are automatically refreshed. Type this value in minutes in the Default Refresh Frequency field. 19 Type a number in the Items shown at a time field to specify the maximum number of news items that a user can see at a time. The default value is 10. 20 Select or clear the Open full article when clicked check box to determine whether a news article is opened in a new window when it is selected in the widget. 21 If the RSS feed is accessed through a proxy server, select the Use Proxy check box. 22 Click Save to apply the changes. To view and interact with the widget, you must open the document in MicroStrategy Web. You can then format and adjust the widget; for more information, see Formatting for an RSS Reader widget, page 596 and the MicroStrategy Web Help.
595
Creating widgets
To create a widget in Desktop, you must first insert a Grid/Graph into a document and add report objects such as attributes and metrics to it. Alternatively, you can drag and drop the name of a dataset from the Datasets pane to the Layout area. Each type of widget requires a specific number, type, and arrangement of report objects on the Grid/Graph that contains the widget. For example, a Grid/Graph that you want to display as a Gauge widget must have one attribute on the rows and one metric on the columns. For the requirements for a specific type of widget, refer to the section that describes the widget in this chapter. For an overview of all of the types of widgets, see Understanding and working with widgets, page 500.
Unlike other widgets, the RSS Reader and Media widgets do not require attributes or metrics on their Grid/Graphs, unless the widget is a target of an attribute selector in the dashboard. For instructions on how to create a RSS Reader widget, see Creating an RSS Reader widget, page 593. For instructions on how to create a Media widget, see Creating a Media widget, page 560. For information on customizing and using the following SDK widgets. see the MicroStrategy Developer Library (MSDL), part of the MicroStrategy SDK product:
Google Graph Visualization Simple Grid Store Layout Timeline USA Map
After you add the required objects to the Grid/Graph, you select a widget type. In MicroStrategy Web, the Grid/Graph is displayed as a widget, and users can interact with it. For example, a user can choose what section of the graph to view in a Time Series Slider widget. A user can drill into the components of a bubble on an Interactive Bubble Graph widget to view the underlying data within that bubbles data. This interaction also includes some formatting aspects of widgets. Some widget formatting can be done in either Desktop or Editable Mode in
Creating widgets
597
MicroStrategy Web, while other formatting must be done in Flash Mode or Interactive Mode in MicroStrategy Web. For a complete list of formatting options for a specific type of widget, refer to the section describing that widget. and Editable Mode in In Design Modethen define it by placingWeb, you can add a widget to a document and report objects such as attributes and metrics on the Grid/Graph that contains the widget. For more information, see the MicroStrategy Web Help. You can also turn any existing Grid/Graph in your document into a widget that is displayed in MicroStrategy Web, as long as the Grid/Graph meets the data requirements for the selected type of widget. For example, your document contains a Grid/Graph with the Region attribute on the rows and the Profit Margin metric on the columns. You can assign a Gauge widget to this Grid/Graph. When you open the document in Flash Mode in MicroStrategy Web, the Grid/Graph is no longer displayed as a Grid/Graph but rather as a Gauge widget. Viewing the widget in Flash Mode in MicroStrategy Web allows you to better visualize the metric data in the Grid/Graph. In Editable Mode in MicroStrategy Web, the Grid/Graph connected to the widget is always displayed. In Design View in Desktop and Design Mode in MicroStrategy Web, the Grid/Graph is also displayed, but without data. You can determine how the widget is displayed in other Desktop views and Web modes. The widget can display as: The widget itself (Express Mode and Interactive Mode in Web only) A placeholder Empty space The Grid/Graph connected to the widget
For details and instructions, see Determining how a widget is displayed, page 601.
1 Open the document using the Document Editor in Design View. 2 Insert a Grid/Graph into the document, if one is not already in the document. For a procedure, see To add a Grid/Graph, page 299. Grid/Graph that you turn widget must the data The template requirements forinto atype of widget.followexample, a and that For Gauge widget requires one attribute on the rows and one attribute on the columns. Therefore, any Grid/Graph that you want to turn into a widget must have the same objects on its Grid/Graph. If it does not, the Grid/Graph is not displayed correctly as a widget in Flash Mode in MicroStrategy Web. For the requirements for each type of widget, refer to the section that describes that widget. 3 Right-click the Grid/Graph to turn into a widget, and select Properties. The Properties dialog box opens. 4 Click the Widget tab. 5 Select the type of widget from the Widget drop-down list. In Flash Mode in MicroStrategy Web, the Grid/Graph displays as this type of widget. 6 You can determine how the widget is displayed in different Desktop views and MicroStrategy Web modes, as outlined in the steps below. For details, see Determining how a widget is displayed, page 601. a To determine how the widget is displayed in HTML View and PDF View in Desktop, as well as when exported to PDF and Excel, select one of the following from the Alternative Display drop-down list: Show grid or graph to display the Grid/Graph to which the widget is attached. Show placeholder to display an empty Grid/Graph placeholder instead of the widget.
Creating widgets
599
b By default, the widget is displayed as a widget in Flash. To display it as a Grid/Graph instead, clear the Flash check box in the Display Widget As column. This setting affects the display of the widget in Flash View in Desktop, Flash Mode in MicroStrategy Web, and when exported to Flash. c By default, an iPhone widget is displayed as a widget on the iPhone. To display it as a Grid/Graph instead, clear the iPhone check box in the Display Widget As column.
d By default, an iPad widget is displayed as a widget on the iPad. To display it as a Grid/Graph instead, clear the iPad check box in the Display Widget As column. e By default, a widget is displayed as a widget in Interactive Mode and Express Mode in MicroStrategy Web. To display it according to the Alternative Display setting, clear the DHTML check box in the Display Widget As column.
You must enable Flash Mode in the document so that you and other users can view the widget in Flash Mode in MicroStrategy Web. 8 From the Format menu, select Document Properties. The Document Properties dialog box opens. 9 In the Available display modes list on the Document tab, select the Flash check box. 10 You can specify that this document always opens in Flash Mode when it is initially opened in MicroStrategy Web. To do this, select the Default radio button next to Flash. 11 Click OK to return to the document.
Format the widget
12 By default, many widgets automatically inherit some of the formatting of the underlying graph report. For example, the font colors and types defined for the graph report can be displayed in the widget. If you do not want the widget to inherit this formatting, clear the Inherit graph formatting check box in the Properties dialog box in Flash Mode or
Interactive Mode in MicroStrategy Web. For more information, see the MicroStrategy Web Help. 13 Each type of widget also has additional formatting specific to it. For example, the numbers of a Bubble Grid widget can display as dollars and cents, as percentages, or even as scientific notation. For a complete listing of all formatting available for a specific type of widget, see the section on that widget. Some widget formatting can be done in Desktop or in Editable Mode in MicroStrategy Web, while other formatting must be done in Flash Mode or Interactive Mode in MicroStrategy Web. For more information and instructions for formatting widgets in Desktop, see Formatting widgets in Desktop, page 609. For instructions to format widgets in MicroStrategy Web, see the MicroStrategy Web Help. 14 Save the document. To view and interact with the widget, you must open the document in MicroStrategy Web and switch to Flash Mode if the document does not initially open in Flash Mode. You can then format and adjust the widget; for more information, see the MicroStrategy Web Help. also be displayed as Most widgets canMicroStrategy Web. widgets in Interactive Mode and Express Mode in For instructions, see Determining how a widget is displayed below.
Creating widgets
601
View or Mode MicroStrategy Web Design Mode Editable Mode Express Mode Flash Mode Interactive Mode MicroStrategy Mobile Android See Widgets for mobile devices, page 792 for a list of Android widgets iPad See Widgets for mobile devices, page 792 for a list of iPad widgets iPhone See Widgets for mobile devices, page 792 for a list of iPhone widgets Exporting Export to Excel Export to Flash Export to PDF
Widget
Grid/Graph
Placeholder Hidden
Yes (without data) Yes Yes ** Yes * Yes ** Yes Yes Yes Yes Yes Yes Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
* Except for mobile device widgets and SDK widgets, which cannot be displayed as widgets in Flash View/Mode. ** Except for the following widgets, which cannot be displayed as widgets in Interactive Mode or Express Mode: Cylinder, Fish Eye Selector created as a selector, Interactive Stacked Graph, Thermometer, and Time Series Slider.
Widgets in Flash
In Flash Mode in MicroStrategy Web and Flash View in Desktop, the widget is displayed by default, and a user can interact with it. The changes can be saved in Flash Mode (Web), but not in Flash View (Desktop).
You can specify that the widget displays as its underlying Grid/Graph instead. For example, you may want to display the same data as both a widget and a Grid/Graph, to allow users to see information at a glance with the widget, and to see in-depth details with the Grid/Graph. SDK widgets and widgets for mobile devices cannot be displayed as widgets in Flash. They are displayed as Grid/Graphs in Flash.
Creating widgets
603
An empty placeholder could look like the following in Interactive Mode in MicroStrategy Web, if the container of the Grid/Graph has a background color of red and a fixed size.
Hide the Grid/Graph so that nothing is displayed. If you choose to hide the Grid/Graph, you can display a message in place of the widget. To do this, add a text field behind the widget. This text field is displayed only when the widget is hidden. For an example and a procedure, see Displaying a message behind a widget, page 607.
The following widgets cannot be displayed as widgets in Interactivea Mode or Express Mode: Cylinder, Date Selection widget created as
selector, Fish Eye Selector created as a selector, Interactive Stacked Graph, Thermometer, Time Series Slider, and widgets for mobile devices.
Exporting widgets
A widget exported to Excel or PDF displays according to the Alternative Display setting described above.
A widget exported to Flash displays as either a widget or a Grid/Graph, depending on the Flash setting. SDK widgets and widgets for mobile devices are always exported to Flash as Grid/Graphs.
These widgets display as widgets on the iPhone; all other widgets are displayed as Grid/Graphs. For MicroStrategy Mobile, you can determine whether the following widgets are displayed as widgets or Grid/Graphs in the iPad: Graph Matrix widget Image Viewer widget Map widget Photo Uploader widget Time Series widget
These widgets display as widgets on the iPad; all other widgets are displayed as Grid/Graphs. For background information on iPhone and iPad widgets, see Widgets for mobile devices, page 792.
Creating widgets
605
1 Open the document that contains the widget using the Document Editor in Design View. 2 Right-click the Grid/Graph containing the widget and select Properties. The Properties dialog box opens. 3 Click the Widget tab. 4 To determine how the widget is displayed if it cannot be displayed as a widget, select one of the following from the Alternative Display drop-down list: Show grid or graph to display the Grid/Graph to which the widget is attached Placeholder to display an empty Grid/Graph placeholder instead of the widget Hide grid or graph to hide the widget and display nothing
5 For each mode/view, do one of the following: To display the widget as a widget, select the check box for that mode/view. The Will render as column updates to list how the widget is displayed in that mode/view. To display the widget as specified in the Alternative Display option described above, clear the check box for that mode/view. The Will render as column updates to list how the widget is displayed in that mode/view.
Widgets can be displayed only as widgets or as Grid/Graphs in Flash Mode or on the iPhone or iPad. If you specify another Alternative Display option, such as Placeholder, the Will render as column for those modes does not change from Show grid or graph. Only iPhone widgets can be displayed as widgets on the iPhone. For all other widgets, the iPhone check box is disabled. Only iPad widgets can be displayed as widgets on the iPad. For all other widgets, the iPad check box is disabled.
The following widgets cannot be displayed as widgets in DHTML (that is, Interactive Mode and Express Mode): Cylinder, Fish Eye Selector created as a selector, Interactive Stacked Graph, Thermometer, and Time Series Slider. This property is unavailable for custom widgets, which are created in the MicroStrategy SDK product, or if custom visualizations have been disabled. For more information and instructions, see the MicroStrategy Developer Library (MSDL), part of the MicroStrategy SDK product. For information on purchasing a MicroStrategy SDK license, contact your Account Executive.
Creating widgets
607
Notice that the selector is still displayed, because it is separate from the widget. In Design View in Desktop, as well as in Editable Mode and Design Mode in Web, the Grid/Graph connected to the widget is displayed. If the Grid/Graph does not completely cover the text field, the text field is displayed as well.
To display a message behind a widget
1 Open the document that contains the widget using the Document Editor in Design View. 2 Right-click the Grid/Graph containing the widget, and select Properties. The Properties dialog box opens. 3 Select the Widget tab. 4 Select Hide grid or graph from the Alternative Display drop-down list. 5 Select the check box next to DHTML in the Display widget in column. This indicates that the widget should be displayed according to the Alternative Display setting. 6 Click OK to save the change and return to the document. 7 Add a text field; for steps, see Adding text and data to a document, page 51. 8 Right-click the text field, point to Order, and then select Send to Back. 9 Save the document.
Ensure that the size of the text field is no larger than the widget, and that the text field is placed so that the widget covers the entire text field. This is easiest to do in MicroStrategy Webuse Editable Mode or Design Mode to position the text field and Flash Mode to check whether the widget covers the text field.
609
Specify the color of the check boxes in an Interactive Stacked Graph widget. For instructions, see Formatting the color of the bar risers, page 614. Format the values that are displayed along the Y axis of a Gauge widget or Waterfall widget. You can also manually specify the minimum and maximum values for the Y axis, instead of allowing them to be calculated from the data. For instructions, see Formatting the Y axis, page 615. Display or hide the legend of a Funnel widget, Time Series Slider widget, or Waterfall widget. If it is displayed, you can format it. For instructions, see Formatting the legend, page 616.
In addition, you can format various widget properties for the entire document. These include properties that affect the graph axis labels, pie graph labels, and selectors. These properties must be formatted in Desktop; you cannot format them in MicroStrategy Web. For details and instructions, see Formatting widgets at the document level, page 619.
The number format applies to the values that appear when a user hovers the cursor over a rectangle in a Heat Map widget.
Waterfall widgets (see Defining a Waterfall widget, page 548) Weighted List Viewer widgets (see Defining a Weighted List Viewer widget, page 552 for an example)
1 Open the document in Design View in the Document Editor. Mode or Editable Mode in MicroStrategy You can also use Designsee the MicroStrategy Web Help. Web. For instructions, 2 Select the Grid/Graph containing the widget. 3 In the Property List: Appearance section, set View mode to Grid. 4 Edit the Grid/Graph by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode. 5 From the Format menu, select Metrics or a specific metric, then choose Values. The Format Cells dialog box opens. 6 Select the Number tab. 7 Choose a Category. The Settings and Sample sections of the dialog box change depending upon the category selected. 8 Use the Settings area to make your number formatting selections. For example, if you select Date as your category, the Settings area allows you to choose which date format to use, such as 4/12/03, April 12, 2003, 4/7/2003, and so on. If you select Fixed as the category, you can determine the number of decimal places to be displayed, whether you want numbers to be separated every three digits, and whether negative numbers are allowed. After you select a setting, the Sample area updates to provide you with an example of your selection. 9 Click OK to apply the number formatting. 10 To exit edit mode, press ESC.
611
This formatting is available for: Cylinder widgets (see Defining a Cylinder widget, page 510 for an example) Gauge widgets (see Defining a Gauge widget, page 518 for an example) Thermometer widgets (see Defining a Thermometer widget, page 542 for an example)
1 Open the document in Design View in the Document Editor. Mode or Editable Mode in MicroStrategy You can also use Designsee the MicroStrategy Web Help. Web. For instructions, 2 Select the Grid/Graph containing the widget. 3 In the Property List: Appearance section, set View mode to Graph. 4 Edit the Grid/Graph by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode. 5 From the Graph menu, select Formatting, and then Y1 Axis Label. 6 On the Font tab, format the font of the label. Options include color, size, font type, italics, and so on. For a full listing and descriptions of all the options, see the Desktop Help. 7 Click OK to save the changes. 8 Press ESC to exit edit mode.
Interactive Stacked Graph widgets (see Defining an Interactive Stacked Graph widget, page 538 for an example) Time Series Slider widgets (see Defining a Time Series Slider widget, page 545 for an example)
1 Open the document in Design View in the Document Editor. Mode or Editable Mode in MicroStrategy You can also use Designsee the MicroStrategy Web Help. Web. For instructions, 2 Select the Grid/Graph containing the widget. 3 In the Property List: Appearance section, set View mode to Graph. 4 Edit the Grid/Graph by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode.
Format the X Axis label
5 From the Graph menu, select Formatting, and then X Axis Label. The Formatting dialog box opens. 6 On the Font tab, format the font of the label. Options include color, size, font type, italics, and so on. For a full listing and descriptions of all the options, see the Desktop Help. 7 Click OK to save the changes.
Format the Y Axis label
8 From the Graph menu, select Formatting, and then Y1 Axis Label. The Formatting dialog box opens. 9 On the Font tab, format the font of the label. Options include color, size, font type, italics, and so on. For a full listing and descriptions of all the options, see the Desktop Help. 10 Click OK to save the changes. 11 Press ESC to exit edit mode.
613
The area graph series, bars, bubbles, and check boxes are the bar risers of the widgets.
To format the color of the bar risers
1 Open the document in Design View in the Document Editor. Mode or Editable Mode in MicroStrategy You can also use Designsee the MicroStrategy Web Help. Web. For instructions, 2 Select the Grid/Graph containing the widget. 3 In the Property List: Appearance section, set View mode to Graph. 4 Edit the Grid/Graph that contains the widget by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode. 5 For each series in the graph, do the following: Right-click the series in the graph and select Format Bar Riser. The Format Bar Riser dialog box opens. On the Fill tab, format the color of the bar riser. For a full listing and descriptions of all the options, see the Desktop Help. On the Line tab, format the color, style, and thickness of the line around the bar riser.
1 Open the document in Design View in the Document Editor. Mode or Editable Mode in MicroStrategy You can also use Designsee the MicroStrategy Web Help. Web. For instructions, 2 Select the Grid/Graph containing the widget. 3 In the Property List: Appearance section, set View mode to Graph. 4 Edit the Grid/Graph by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode.
To specify the minimum and maximum values
5 From the Graph menu, select Grids and Scales. The Numeric Axis Grids and Scales dialog box opens. 6 Click the Y1 Axis tab on the left of the dialog box. 7 Click the Scales tab at the top of the dialog box.
615
8 To specify the maximum value: a Select the Use Manual Setting for Maximum Value check box. b Enter the value in the Maximum Value field. 9 To specify the minimum value: a Select the Use Manual Setting for Minimum Value check box. b Enter the value in the Minimum Value field.
To format the Y axis values
10 Click the Numbers tab at the top of the dialog box. 11 From the Category drop-down list, select a number format, such as Currency or Fraction. The remaining options vary depending on the Category that is selected. Specify your options, and click OK to save the changes.
To format the font of the Y axis values
12 Right-click the Y axis label and select Format Y1 Axis Label. The Format Y1 Axis Label dialog box opens. 13 On the Font tab, format the font of the Y axis. Options include color, size, font type, italics, and so on. For a full listing and descriptions of all the options, see the Desktop Help. 14 Click OK to save the changes.
To exit edit mode
15 Press ESC.
The position of the markers relative to the text, and the color of those markers (markers indicate the color of each series)
This formatting is available for: Funnel widgets (see Defining a Funnel widget, page 514 for an example) Time Series Slider widgets (see Defining a Time Series Slider widget, page 545 for an example) Waterfall widgets (see Defining a Waterfall widget, page 548 for an example)
1 Open the document in Design View in the Document Editor. Mode or Editable Mode in MicroStrategy You can also use Designsee the MicroStrategy Web Help. Web. For instructions, 2 Select the Grid/Graph containing the widget. 3 In the Property List: Appearance section, set View mode to Graph. 4 Edit the Grid/Graph by double-clicking it. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode.
To show or hide the legend
5 From the Graph menu, select Graph Options. The Graph Options dialog box opens. 6 On the Look tab, do one of the following: To hide the legend, clear the Show Legend check box, then click OK. Press ESC to exit edit mode. You are now finished with this procedure. To show the legend, select the Show Legend check box.
7 From the Layout drop-down list, select one of the following options: Legend on Right Size Legend on Left Size
617
The markers indicate the color of each series. 8 From the Markers and Text drop-down list, select the position of the markers, such as to the right of or above the text of the legend. 9 Click OK.
To format the legend area (background fill and line)
10 Right-click the legend area and select Format Legend Area. The Format Legend Area dialog box opens. 11 On the Fill tab, select the background color for the legend area. For descriptions of all the options, see the Desktop Help. 12 On the Line tab, format the line around the legend area. For descriptions of all the options, see the Desktop Help. 13 Click OK.
To format the text of the legend
14 Right-click the legend text and select Format Legend Text. The Format Legend Text dialog box opens. 15 On the Font tab, format the font of the text. For descriptions of all the options, see the Desktop Help. 16 On the Line tab, format the line around the legend. For descriptions of all the options, see the Desktop Help. 17 On the Fill tab, select the background color for the legend. For descriptions of all the options, see the Desktop Help. 18 Click OK.
19 Repeat the steps below for each legend marker: a Right-click a legend marker and select Format Legend Marker. The Format Legend Marker dialog box opens. b On the Fill tab, select the background color for the legend marker. For descriptions of all the options, see the Desktop Help. c On the Line tab, format the line around the legend marker. For descriptions of all the options, see the Desktop Help.
d Click OK.
To exit edit mode
20 Press ESC.
These properties must be formatted in Desktop; you cannot format them in MicroStrategy Web.
To format the graph axis labels of widgets
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Click Flash in the category list on the left.
619
4 To determine whether category labels are staggered (displayed on more than one row), select one of the following: To stagger the category labels on multiple rows, select the Allow staggered axis labels check box. To display all category labels on the same row, clear the Allow staggered axis labels check box.
5 To determine whether category labels can be dropped, select one of the following: To drop category labels so that fewer labels are displayed, select the Use optimal number of labels for category axis to fit the available space check box. To display all category labels, clear the Use optimal number of labels for category axis to fit the available space check box.
6 To determine whether numeric axes (X1, Y1, and so on) labels can be dropped, select one of the following: To drop numeric axis labels so that fewer labels are displayed, select the Use optimal number of labels for numeric axis to fit the available space check box. To display all numeric axis labels, clear the Use optimal number of labels for numeric axis to fit the available space check box.
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Click Flash in the category list on the left. 4 To define the maximum space that the pie labels can occupy, use the arrows to select a value between 0 and 100 for the Maximum space allocated for pie labels (%).
As labels increase in size, the pie chart shrinks. For example, a value of 30 means that the labels can use up to a maximum of 30% of the space that the pie chart and data labels share. 5 Click OK to save the changes and return to the document.
To format the selectors of widgets
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Click Flash in the category list on the left. 4 To determine whether or not the button bar selector is padded with ten pixels, select or clear the Enable padding for button bar selectors check box. 5 Click OK to save the changes and return to the document.
Graph Matrix, page 623 Heat Map, page 625 Interactive Bubble Graph, page 626 Interactive Stacked Graph, page 628 Microcharts, page 630 Time Series Slider, page 630 Waterfall, page 634 Weighted List Viewer, page 634
In Flash Mode or Interactive Mode, a user can select elements from each of these widgets in a unique way. When you choose an element in the widget, data related to that element is displayed in all target Grid/Graphs and panel stacks. For example, clicking a bubble for the Southeast region in an Interactive Bubble Graph updates all target Grid/Graphs and panel stacks with Southeast data. The following sections describe how to use selectors in Flash Mode and Interactive Mode for each type of widget. Before you can use a widget as a selector, you first choose the target Grid/Graph and/or panel stack in Desktop or in either Design Mode or Editable Mode in MicroStrategy Web. For the detailed steps to create widgets used as selectors, see Defining the widget used as a selector, page 635.
For steps to enable a Bubble Grid widget as a selector, see Defining the widget used as a selector, page 635.
623
For example, the Electronics category and Southeast region are selected in the Graph Matrix widget below. Therefore, data related to the Southeast region and Electronics category is displayed in the target Grid/Graph on the right.
cannot attribute. If You select anselect multiple elements from the samecorresponding you attribute name from the headers, all attribute element selections are cleared. For example, if you select Category in the widget above, the Electronics category is no longer highlighted and data for all categories is displayed in the target Grid/Graph on the right. The Category and Region attributes in the Graph Matrix widget can be used as selectors because they are enabled as selectors in Editable Mode, as shown below. Notice that all categories and regions are hyperlinked because they are enabled as selectors.
When you hover the cursor over a graph in the widget, the cursor is displayed as a hand pointer to indicate that the graph is a selector. If you click the graph, the two corresponding attribute elements in the headers are automatically selected. Therefore, all target Grid/Graphs and panel stacks display data related to those two elements. For example, if you select the graph at the intersection of the Mid-Atlantic region and Electronics product category, all data for Electronics sales in the Mid-Atlantic region is displayed. When you hover the cursor over a graph and click a specific data point in the graph, all data related to that data point is displayed in all target Grid/Graphs and panel stacks only if the time-based attribute on the Grid/Graph that contains the widget is enabled as a selector. You can also perform this task after maximizing a graph.
For steps to enable a Graph Matrix widget as a selector, see Defining the widget used as a selector, page 635.
625
widget, the target graph at the bottom is updated with data related to that region.
A user can also select multiple bubbles, by dragging a selection box (or lasso) around the bubbles. For example, a user drags a selection box around the two Electronics and Books bubbles in the middle of the widget. If the selection box is set to automatically update the target, the target graph displays data related to those bubbles. Otherwise, the user must click the Select icon in the button bar to update the target graph. To use a widget as a selector, you first choose the target Grid/Graph and/or panel stack in Desktop. You can also do this in Design Mode or Editable Mode in MicroStrategy Web.
627
In Flash Mode or Interactive Mode in MicroStrategy Web, you can ensure that target Grid/Graphs and panel stacks are updated when a user hovers over a bubble or an item in the legend, instead of clicking it. For details and steps for these two procedures, see Defining the widget used as a selector, page 635.
For example, the Region attribute in an Interactive Stacked Area widget is enabled as a selector. When a user selects a region from the widget, the target grid is updated with data related to that region.
To use a widget as a selector, you first choose the target Grid/Graph and/or panel stack in Desktop. You can also do this in Design Mode or Editable Mode in MicroStrategy Web. For an Interactive Stacked Graph widget, you must then switch to Flash Mode in MicroStrategy Web to determine which part of the widget is enabled as a selector. In Flash Mode, you can also ensure that target Grid/Graphs and panel stacks are updated when a user hovers over the graph or legend, instead of clicking it. For details and procedures, see Defining the widget used as a selector, page 635.
629
Metric columns cannot be used as selectors. When multiple attributes are set as selectors, the selections occur independently of each other.
You can also use the sparklines and bar charts in the widget as selectors by enabling a time-based attribute, such as Month, on the Grid/Graph as a selector. When you hover the cursor over a sparkline or bar chart, and then click a specific data point, all data related to that data point is displayed in all target Grid/Graphs and panel stacks in the document. For steps to enable a Microcharts widget as a selector, see Defining the widget used as a selector, page 635.
information on Time Series Slider widgets, see Defining a Time Series Slider widget, page 545. In Desktop, or in Design Mode or Editable Mode in MicroStrategy Web, you must define one or more of the objects on the Grid/Graph that contains the widget as selectors. Next, switch to Flash Mode to use the primary graph at the bottom of the widget as a selector. A user can hover over and select an individual data point in the graph to display related data in the target Grid/Graphs and panel stacks. For example, a user can select the data point for January 2006 revenue, and all data in the target Grid/Graphs and panel stacks is updated. The following document is shown in Flash Mode in MicroStrategy Web. Revenue data related to the last data point in the Time Series Slider widget, in this case December 2009, is shown in the grid report below the widget.
631
If you click the data point for January 2009, the grid report displays the revenue data related to that date, as shown below.
This example uses the primary graph as the selector, but you can change it to use the slider instead. Instead of clicking a single data point (in this case, a single month) you can instead select a range of months. In the following
example, the slider is set to January 2009 through June 2009, and the grid report displays the data for that time frame.
To change from using the primary graph as the selector to using the slider, you must format the properties of the widget in Flash Mode in MicroStrategy Web. For more information, see the MicroStrategy Web Help. While the widget in this example targets a Grid/Graph, it could target multiple Grid/Graphs, a panel stack, or multiple panel stacks instead. To use a widget as a selector, you first choose the target Grid/Graph and/or panel stack in Desktop. You can also do this in Design Mode or Editable Mode in MicroStrategy Web. In Flash Mode in MicroStrategy Web, you can ensure that target Grid/Graphs and panel stacks are updated when a user hovers over a data point in the primary graph, instead of clicking the data point. For details and steps for these two procedures, see Defining the widget used as a selector, page 635.
633
the attribute changes to a lighter shade to indicate that the attribute is selected. widget When two or more attributes in theof each are set as selectors, both of the selections occur independently other. The stacked contribution bar graph on the left side of the widget can also be used as a selector. When you hover the cursor over the graph, the cursor is displayed as a hand pointer to indicate that the graph is a selector. Since each section of the graph represents a row in the grid, the graph can be used to trigger all of the selectors enabled in the widget. Clicking a section of the stacked graph updates the Grid/Graphs within the dashboard with a set of data related to the attribute element you clicked. If only one attribute is set as a selector in the stacked graph, when you click that section in the graph, the dashboard displays data for only that attributes elements. For steps to enable a Weighted List Viewer widget as a selector, see Defining the widget used as a selector, page 635.
635
For instructions, see To ensure that targets are updated when a user hovers the cursor over the widget, page 638. in document To access Flash ModeForMicroStrategy Web, the modes, seemust have Flash Mode enabled. steps to enable display Selecting the display modes available for MicroStrategy Web, page 249.
To use a widget as a selector
You have already created a widget that contains the report objects to use as selectors. The widget must be a Bubble Grid, Data Cloud, Heat Map, Interactive Bubble Graph, Interactive Stacked Graph, Time Series Slider, or Waterfall widget. For instructions, see To turn a Grid/Graph into a widget, page 599. You have created the panel stack or Grid/Graph to use as the target. For instructions, see To insert a panel stack, page 399 and To add a Grid/Graph, page 299. The selector and target must have an attribute in common.
1 Open a document using the Document Editor in Design View. 2 Double-click the Grid/Graph containing the widget. A red hashed border displays around the Grid/Graph, indicating that edit mode is enabled, and the menu options and toolbar change. 3 Do one of the following: Right-click the attribute, custom group, or consolidation in the Grid/Graph to use as the selector, and choose Edit Control. The Template Control dialog box opens. Right-click the Metrics column in the Grid/Graph, and choose Edit Control. The Template Control dialog box opens.
4 Select the target Grid/Graph or panel stack in the list of available controls on the left. Click > to add it to the list of selected targets on the right. You can select multiple targets. The attribute, custom group, or consolidation you selected in the Grid/Graph is the source, and the selected Grid/Graph is the target. The Action Type of the selector is set to Select Element.
5 To ensure that the user can select more than one element in the widget, select the Show option for All check box.
The data labels along the X and Y axes of a Bubble Grid widget can be used as selectors if the Show option for All check box is selected. The attribute names in the headers of a Graph Matrix widget, Microcharts widget, or Weighted List widget can be used as selectors if the Show option for All check box is selected. A user can select more than one element from the checklist in the Interactive Stacked Graph widget if the Show option for All check box is selected. The attribute elements in the legend of a Waterfall widget can be used as selectors if the Show option for All check box is selected.
6 To ensure that the element displayed in the selector changes if an element is chosen in another selector, select Allow selection to be updated by other selectors. 7 Click OK to apply the changes and return to the document. 8 Press ESC to exit edit mode. For Interactive Stacked Graph widgets, you must determine which part of the widget is enabled as a selector. This step must be completed in Flash Mode in MicroStrategy Web. For procedures, refer to To determine which part of an Interactive Stacked Graph widget is enabled as a selector, page 637.
To determine which part of an Interactive Stacked Graph widget is enabled as a selector
637
4 You can ensure that target Grid/Graphs and panel stacks are updated when a user hovers over the cursor over the graph or legend. To do so, select the Change Selection on Mouse Over check box. 5 Click OK to apply the changes.
To ensure that targets are updated when a user hovers the cursor over the widget
The following procedure ensures that target Grid/Graphs and panel stacks are updated when a user hovers the cursor over: A data point in the primary graph of a Time Series Slider widget. A bubble or an item in the legend of an Interactive Bubble Graph widget. The graph or legend of an Interactive Stacked Graph widget.
1 Open the document in Flash Mode in MicroStrategy Web. 2 Right-click the widget and select Properties. The Properties dialog box for the widget opens. 3 Select the Change Selection on Mouse Over check box. 4 Click OK to apply the changes.
selector. A Fish Eye Selector in Flash Mode is shown below, targeting a Grid/Graph.
For a Fish Eye Selector defined as a widget, you can use MicroStrategy Web to select whether or not a Fish Eye Selector displays as a widget in Interactive Mode and Express Mode. If it does not display as a widget, it displays as a Grid/Graph. For instructions to define its DHTML display, see Determining how a widget is displayed, page 601. The same dashboard is shown below in Interactive Mode in MicroStrategy Web. The Fish Eye Selector is defined to not display as a widget in DHTML. The Fish Eye Selector was created using a widget, so the selector is now displayed as a Grid/Graph. (Widgets are created with Grid/Graphs, as discussed in Understanding and working with widgets, page 500.) All the employees are not shown in this sample, because the list is so long. Notice that the previous selection, Jack Kieferson, is far down the list. Because the
639
list is so long, names even further down the list may not appear in the same screen as the graph, which is why the Fish Eye Selector is so useful.
In non-Flash modes, the widget can instead be hidden or displayed as an empty Grid/Graph placeholder. For examples, see Determining how a widget is displayed, page 601. If the Fish Eye Selector was created as a selector rather than a widget, in Interactive Mode the dashboard looks like the sample shown below. The Fish Eye Selector displays as a standard selector. You can set the style of the selector, which in this example is Button Bar. Again, all the employees are not shown, because the list is so long. Notice that the selection shown in
Flash Mode, Jack Kieferson, is not even shown in this image, because he is so far down the list.
These examples target a Grid/Graph, but a panel stack can also be the target of a Fish Eye Selector. However, a Fish Eye Selector created as a widget cannot switch panels on a panel stack. The table below summarizes the differences between a Fish Eye Selector created as a widget and as a selector.
Widget Display in Flash Mode Display in non-Flash modes Fish Eye Selector Selector Fish Eye Selector
Can be any of the following: Selector displayed in the closest Grid/Graph used as a selector DHTML style Empty Grid/Graph placeholder Hidden Fish Eye Selector Yes No Yes Yes Yes Yes
Target panel stacks and Grid/Graphs Switch panels on a panel stack Replace selector item text with images
641
Selector Only if the selector is on a panel stack (see Determining how the target of a selector displays when no data exists, page 458) Create a selector
Method of creating
For instructions to create a Fish Eye Selector as a widget, see Creating a Fish Eye Selector as a widget, page 643. For instructions to create a Fish Eye Selector as a selector, see Creating a Fish Eye Selector as a selector, page 646.
Selector. An analyst can select a flag to see relevant data in the target Grid/Graph on the right.
To view images related to a specific attribute element, metric, or panel, you must specify its name when you specify the location of the image. In the example above, images of countries are named the same as the elements of the Country attribute. You specify the image when you format the Fish Eye Selector; for a complete list of the formatting options, see Formatting Fish Eye selectors for Flash Mode, page 649.
643
Grid/Graphs, page 486.) If you want the Fish Eye Selector to switch panels or display as a standard selector such as a listbox or button bar in non-Flash modes, create it as a selector instead. For instructions, see Creating a Fish Eye Selector as a selector, page 646. Flash Mode as widget. A Fish Eye Selector always displays inwhether or not aaFish EyeYou can use MicroStrategy Web to define Selector displays as a widget in Interactive Mode and Express Mode. For instructions, see Determining how a widget is displayed, page 601.
To create a Fish Eye Selector (using a widget)
1 Open the document using the Document Editor in Design View. 2 Insert the Grid/Graph to be used as a selector into the document, if one is not already in the document. For a procedure, see To add a Grid/Graph, page 299. 3 Select the Grid/Graph to turn into a widget. 4 In the Property List: Flash section, choose Fish Eye Selector from the drop-down list in Widget. 5 Create the Grid/Graph or panel stack to be used as the target, if it is not already in the document. For instructions, see To add a Grid/Graph, page 299 or Layering data on dashboards: panels and panel stacks, page 391.
10 Press ESC or click anywhere in the documents Layout area outside of the Grid/Graph to exit edit mode.
Specify the non-Flash display
11 Right-click the Grid/Graph, and select Properties. The Properties dialog box opens. 12 Click the Widget tab. 13 You can change the Alternative display property, which determines how the widget looks in PDF View in Desktop, in Interactive Mode and Express Mode (DHTML) in MicroStrategy Web, and when exported to Excel and PDF. The widget can display as a placeholder or as a Grid/Graph, or can be hidden. For more information, see Determining how a widget is displayed, page 601. 14 Click OK to save the changes and return to the document.
Enable Flash Mode for Web
You must enable Flash Mode in the document so that you and other users can view the Fish Eye Selector in MicroStrategy Web. 15 From the Format menu, select Document Properties. The Document Properties dialog box opens. 16 In the Available display modes list on the Document tab, select the Flash check box. 17 You can specify that this document always opens in Flash Mode when it is initially opened in Web. To do this, select the Default radio button next to Flash. 18 Click OK to return to the document. 19 Save the document. To view and interact with the Fish Eye Selector, you must open the document in MicroStrategy Web and switch to Flash Mode if the document does not initially open in Flash Mode. In Flash Mode, and in Interactive Mode if the Fish Eye Selector is displayed as a widget, you can format the Fish Eye Selector; for a list of the available formatting options, see Formatting Fish Eye selectors for Flash Mode, page 649.
645
1 Open the document using the Document Editor in Design View. 2 Expand the document section where you want the selector by clicking the plus sign next to the section name. 3 Click the Selector icon in the toolbar, and then select Fish Eye. When you move the cursor to the Layout area, the pointer becomes crosshairs. 4 Click in the desired section of the Layout area. If you click and drag in the section, you can size the selector. The selector is added to the document. 5 Right-click the new selector, and select Properties. The Properties dialog box opens.
You can also change these properties using the Property List.
6 Click the Selector tab. 7 Select an Action Type from the drop-down list: Select attribute element: The selector displays a list of the elements from the attribute selected in the Source field, when the document is displayed in MicroStrategy Web.
Select metric: The selector displays a list of the metrics available in the Grid/Graphs selected as the Target, when the document is displayed in MicroStrategy Web.
text fields within the target listed Metrics in is displayed. For example, aare notstack iswhen the as a document panel selected Target and contains a metric in a text field. That metric is not shown as an item in the selector. Select panel: The selector displays a list of the panels available in the panel stack selected as the Target, when the document is displayed in MicroStrategy Web.
set Panels If DHTML style is youto Check Boxes, Selectpanels is unavailable, since cannot display multiple simultaneously. Select a different DHTML style to display panels. 8 If you chose Select attribute element as the Action Type, select a Source from the drop-down list. The Source drop-down list contains all of the attributes in all of the datasets in the document. The selector displays the attribute elements of the attribute selected as the Source. 9 From the list of Available targets on the left, select Grid/Graph(s) and/or panel stack(s) and click > to add them to the list of Selected targets. If the Action Type is set to Select panel, you can only select a single panel stack. The panels in this panel stack are displayed in the selector. If the Action Type is set to Select attribute element or Select metric, you can select single or multiple Grid/Graphs or panel stacks, or any combination of Grid/Graphs and panel stacks. The target Grid/Graph displays the attribute elements or metrics that the user chooses in the selector.
10 The Fish Eye Selector is viewable only in Flash Mode in MicroStrategy Web. By default, it is displayed as the Listbox style in all other modes and views; to change that, select a different DHTML style. The styles are listed below: Drop-down Slider Listbox
647
Selector; for a list of the available formatting options, see Formatting Fish Eye selectors for Flash Mode, page 649. also format the Fish Eye Selector for display You canYou can format the selector in either Desktopin non-Flash modes. or in MicroStrategy Web. For information and instructions, see Formatting selectors, page 476.
These formatting options are applied when the Fish Eye Selector is displayed as a widget. A Fish Eye Selector always displays in Flash Mode as a widget. When it is not displayed as a widget, how the selector displays is determined by how it was created: If the Fish Eye Selector was created as a widget, it can be hidden or displayed as a Grid/Graph, a placeholder, or a widget. For directions and examples, see Determining how a widget is displayed, page 601. If the Fish Eye Selector was created as a selector, it is displayed using the DHTML style and formatting. For information and instructions, see Defining a selector, page 423 and Formatting selectors, page 476.
For instructions to format Fish Eye Selectors for Flash Mode using MicroStrategy Web, see the MicroStrategy Web Help.
649
You can use MicroStrategy Web to define whether or not a Date Selection widget displays as a widget in Interactive Mode and Express Mode. If it does not display as a widget, it displays as either a Grid/Graph (if it was created as a widget) or as a standard selector such as a listbox or button bar (if it was created as a selector). For instructions to define its DHTML display, see the MicroStrategy Web Help. The same dashboard is shown below in Interactive Mode in MicroStrategy Web. The Date Selection widget is defined to not display as a widget in DHTML. The Date Selection widget was created using a widget, so the selector is now displayed as a Grid/Graph. Notice the scroll bar at the left: all the dates are not shown in this sample, because the list is so long. Because
the list is so long, dates even further down the list do not appear in the same screen as the graph, which is why the Date Selection widget is so useful.
In non-Flash modes, the widget can instead be hidden or displayed as an empty Grid/Graph placeholder. For examples, see Determining how a widget is displayed, page 601. If the Date Selection widget was created as a selector rather than a widget, in Interactive Mode the dashboard looks like the sample shown below. You can set the style of the selector, which in this example is left as the default,
651
Listbox. Again, all the dates are not shown, because the list is so long. The scrollbar allows the user to view and select dates further down in the list.
These examples target a Grid/Graph, but a panel stack can also be the target of a Date Selection widget. However, a Date Selection widget created as a widget cannot switch panels on a panel stack. The table below summarizes the differences between a Date Selection widget created as a widget and as a selector.
Widget Display in Flash Mode Display in non-Flash Mode Date Selection widget Selector Date Selection widget
Can be any of the following: Can be either: Grid/Graph used as a selector Selector displayed in the closest DHTML style Empty Grid/Graph placeholder Date Selection widget Hidden Date Selection widget Yes No Yes Yes
Widget Target of another selector Method of creating Yes Create a Grid/Graph and turn it into a widget
For instructions to create a Date Selection widget as a widget, see Creating a Date Selection widget as a widget, page 653. For instructions to create a Date Selection widget as a selector, see Creating a Date Selection widget as a selector, page 655.
1 Open the document in the Document Editor. 2 Insert the Grid/Graph to be used as the Date Selection widget into the document, if one is not already in the document. For a procedure, see Adding a Grid/Graph to a document, page 298.
653
3 Select the Grid/Graph to turn into a Date Selection widget. 4 In the Property List: Flash section, choose Date Selection from the drop-down list in Widget. List pane is not displayed, click If the Propertythe panel on the left. If the panel Property List atat the bottom of is not displayed all, select Property List from the View menu. 5 Create the Grid/Graph or panel stack to be used as the target, if it is not already in the document. For instructions, see Adding a Grid/Graph to a document, page 298 or Layering data on dashboards: panels and panel stacks, page 391. Grid/Graph The targetQuarter. or panel must contain a date attribute, such as Day or 6 Double-click the Grid/Graph to use as the Date Selection widget. A red hashed border displays around it, indicating that the Grid/Graph is in edit mode. 7 Right-click the attribute or metric to use as the selector, and choose Edit Control. The Template Control dialog box opens. 8 Select the target Grid/Graph or panel stack in the list of available controls on the left, and click > to add it to the list of selected targets. You can select multiple targets. 9 Click OK to return to the document. 10 Press ESC or click anywhere in the documents Layout area outside of the Grid/Graph to exit edit mode.
Specify the non-Flash display
11 Right-click the Grid/Graph, and select Properties. The Properties dialog box opens. 12 Click the Widget tab. 13 Change the Alternative display property, which determines how the widget looks in PDF View in Desktop, in Interactive Mode and Express Mode (DHTML) in MicroStrategy Web, and when exported to Excel and PDF. The widget can display as a placeholder or as a Grid/Graph, or can be hidden. For more information, see Determining how a widget is displayed, page 601.
You must enable Flash Mode in the document so that you and other users can view the Date Selection widget in MicroStrategy Web. 15 From the Format menu, select Document Properties. The Document Properties dialog box opens. 16 In the Available display modes list on the Document tab, select the Flash check box. 17 You can specify that this document always opens in Flash Mode when it is initially opened in Web. To do this, select the Default radio button next to Flash. 18 Click OK to return to the document. 19 Save the document. To view and interact with the Date Selection widget, you must open the document in MicroStrategy Web and switch to Flash Mode if the document does not initially open in Flash Mode. In Flash Mode, you can format the Date Selection widget; for a list of the available formatting options, see Formatting Date Selection widgets for Flash Mode, page 658.
655
To apply the style to an existing selector, set the Flash style property (found in the Property List or the Properties dialog box) to Date Selection. Flash Mode as widget. A Date Selection widget always displays inwhether or not aaDate You can use MicroStrategy Web to define Selection widget displays as a widget in Interactive Mode and Express Mode. For instructions, see the MicroStrategy Web Help.
Prerequisite
The following procedure assumes that you have already created the target Grid/Graph or panel stack, which must contain a date attribute, such as Day or Quarter. For instructions, see Adding a Grid/Graph to a document, page 298 or Layering data on dashboards: panels and panel stacks, page 391.
To create a Date Selection widget (using a selector)
1 Open a document in the Document Editor. 2 Expand the document section where you want to place the selector by clicking the plus sign next to the section name. 3 Click the Selector icon in the toolbar, and then select Date Selection. When you move the cursor to the Layout area, the pointer becomes crosshairs. 4 Click in the desired section of the Layout area. If you click and drag in the section, you can size the selector. The selector is added to the document. 5 Right-click the new selector, and select Properties. The Properties dialog box opens.
You can also change these properties using the Property List.
6 Click the Selector tab. 7 Select Select attribute element from the Action Type drop-down list.
8 Select a Source from the drop-down list. The Source drop-down list contains all of the attributes in all of the datasets in the document. The selector displays the attribute elements of the attribute selected as the Source. 9 From the list of Available targets on the left, select Grid/Graph(s) and/or panel stack(s) and click > to add them to the list of Selected targets. You can select single or multiple Grid/Graphs or panel stacks, or any combination of Grid/Graphs and panel stacks. The target Grid/Graph displays the attribute elements that the user chooses in the selector. 10 The Date Selection style is viewable only in Flash Mode in MicroStrategy Web. In modes and views other than Flash, the default display is the Listbox style; to change that, select a different DHTML style. The DHTML styles are listed below: Drop-down Slider Listbox Radio Buttons Check Boxes Button Bar Link Bar
11 For Slider, Radio Buttons, Check Boxes, and Button Bar selector styles, the Orientation option is available. You can select whether to display the selector horizontally (on a single line from left to right) or vertically (in a single column). 12 By default, the selector shows the All option, which allows the user to display all the attribute elements or metrics in the Target at the same time. To disable the All option, clear the Show option for all check box. This option is not available set to Slider Allow multiple selections if the Styleisisselected. and the check box 13 By default, the All option (described in the previous step) is displayed as (All) in the selector. You can overwrite this by entering text into the Alias for All field.
657
14 By default, the Allow multiple selections option is cleared for the Slider, Listbox, Link Bar, and Button Bar styles. To allow the user to choose multiple items in the selector, select the Allow multiple selections check box. The Allow multiple selections check box allows the user to choose more than one item in the selector. For all other styles, this check box is unavailable and the option is disabled, since those styles do not support multiple selections. The one exception is Check Boxes, where the option is enabled. 15 For List Box (when Flash View is enabled), you can allow an item to be selected if the user hovers the mouse over it without clicking. By default, the user must select an item to change the target of the selector. To change this behavior, select the Change selection on mouseover property. If the user points the mouse away from the selector without clicking an item, the target reverts to its previous state. 16 Click OK to return to the document.
Month+Year (the calendar header) Day (the names of the days) Day number (the date)
These formatting options are applied when the Date Selection widget is displayed as a widget. A Date Selection widget always displays in Flash Mode as a widget. You can define whether or not a Date Selection widget displays as a widget in Interactive Mode and Express Mode. For instructions, see Determining how a widget is displayed, page 601. When it is not displayed as a widget, how the widget displays is determined by how it was created: If the Date Selection widget was created as a widget, it can be hidden or displayed as either a Grid/Graph or a placeholder. For directions and examples, see Determining how a widget is displayed, page 601. If the Date Selection widget was created as a selector, it is displayed using the DHTML style and formatting. For information and instructions, see Defining a selector, page 423 and Formatting selectors, page 476.
For instructions to format Date Selection widgets for Flash Mode using MicroStrategy Web, see the MicroStrategy Web Help. For information on the differences between creating a Date Selection widget as a widget or as a selector, see Creating a Date Selection widget, page 650.
Linking in widgets
Linking allows users to connect from a widget in a document (the source) to another document or a report (the target). For example, you can link a widget displaying sales information by customer region to a related document, such as the top ten employees by profit. In MicroStrategy Web, the user can click the link in the widget to view this document and compare data. overview of linking. focuses This section provides only aninstructions to createItthem. Foron links in widgets, with examples and background information on linking in general, see Chapter 7, Linking from Documents. If a link is added to an attribute in the widget's Grid/Graph, the name of the target report or document displays in the tooltip associated with the attribute when the widget is displayed. In the image below, two documents have been added as links to the Region attribute. When the user hovers the cursor over
Linking in widgets
659
the Web region, the Links menu is displayed. The user can select a linked document from the menu to open it.
in (in all modes Links are functional onlyyouMicroStrategy Web both Desktop except Design Mode), although can create them in and MicroStrategy Web. You can add links to the following widgets: Data Cloud Heat Map Interactive Bubble Graph Microchart
linking from each type of the For examples ofReport Services Documentwidget, seeGuide. MicroStrategy Analysis
created. These prompts are listed as the Any other prompt option in the list of prompts in the interface. The prompt answer methods are briefly described in the table below. See Specifying how prompts are answered in the target, page 684 for an expanded description of each method, with an example.
Prompt Answer Method Answer with the same prompt Prompt user Default answer Dynamically Requirements Same prompt in the target and source None None Attribute element prompt in target Value prompt in target (available only in MicroStrategy Web Target prompt must not be required Attribute element prompt in target Hierarchy prompt in target Hierarchy prompt in target Prompts in the Target Are Answered By... The prompt answer from the source The user (prompts are displayed when the target is executed) The default prompt answer for the target prompt The object selected in the source (for example, the attribute element that the user clicked on)
Nothing (no prompt answer is provided from the source and the user is not prompted) List of elements created by the link designer Used to pass attribute elements from conditional metrics to the target The object selected in the source (for example, the attribute element that the user clicked on) Any object to the left of or above the user selection in the source
Linking in widgets
661
Know what types of prompts the targets require and how they will be answered. The following table describes prerequisites for different prompt answer methods.
Prompt Answer Method Prerequisite Answer with the same prompt Default answer Dynamically The same prompt is used in the target and the source. The target prompt contains a default answer. The target prompt is an attribute element prompt or value prompt. The object that the user selects to execute the target answers the target prompt. Note: To select Dynamically for value prompts, you must use MicroStrategy Web. For instructions, see the MicroStrategy Web Help. Static element list Empty answer Current unit The target prompt is an attribute element prompt. The prompt should not be required. The target prompt is a hierarchy prompt. The object that the user selects to execute the target answers the target prompt. All valid units The target prompt is a hierarchy prompt. The object(s) that the user selects to execute the target answers the target prompt.
1 Open the document using the Document Editor in Design View. 2 Double-click the widget Grid/Graph to enable edit mode. A red hashed border displays around the Grid/Graph, and the menu options and toolbar change. 3 Right-click the attribute to use as link, and then select Edit Links. The Link Editor opens.
Define the link
4 If this is not the first link created for the object, click New. If it is, continue with the next step.
5 Click ... (the browse button) to find and select the target report or document.
Apply prompt answers
6 Select a prompt in the Target prompts list. 7 Select a Prompt Answer Method from the following list (unless otherwise indicated, each method is available for all prompt types): Answer with the same prompt. The same prompt answers that were used to execute the source are used in the target. To use this method, the target and the source must use the same prompt. Prompt user. The user is prompted to provide answers manually when the target is executed. Default answer. The prompt is answered by the default prompt answer for the prompt in the target report. Empty answer. The prompt in the target is ignored, which means that the prompt is not answered. No prompt answer is provided from the source and the user is not prompted to provide answers. If the prompt is required, the prompt is still executed when a user clicks this link, since a prompt answer must be provided. Dynamically. The prompt is answered using the object selected in the source. Available for attribute element prompts and value prompts only. To select Dynamically you must use MicroStrategy Web. Forfor value prompts,the MicroStrategy instructions, see Web Help. Static element list. This method overrides the prompt answers from the source with a list of elements. Once you select this method when you are creating the link, the Element List area becomes available, allowing you to select the elements that will be passed as answers to the element list prompt in the target. Available for attribute element prompts only. Current unit. Similar to the Dynamic prompt answer method, where the prompt is answered using the object selected in the source. Available for hierarchy prompts only.
Linking in widgets
663
All valid units. Any object to the left of or above the user selection in the source is used as the prompt answer for the target. In other words, this method passes all the selections made on the source, rather than just the selection made for the link. Available for hierarchy prompts only.
each of methods, see For examples of promptsthe prompt answerthe target, page 684. Specifying how are answered in For a list of prompt types, see the Building Query Objects and Queries chapter in the MicroStrategy Basic Reporting Guide. 8 Repeat the above steps, starting with Apply prompt answers, page 663, for each prompt in the target.
Specify the prompt answer method for any other prompts
Any other prompts are those prompts that are not in the target when you are creating the link, such as prompts added to the target later. By default, the Prompt user method is selected for these prompts, but you can change the method. For more information on how these prompts occur, including examples, see Specifying how prompts are answered in the target, page 684. 9 Select Any other prompt in the Target prompts list. 10 Select a Prompt Answer Method from the following list; only these methods are available for the Any other prompt option: Answer with the same prompt Prompt user Default answer Empty answer
See the previous list of prompt answer methods for brief descriptions of each.
Rename the link
11 By default, links are named Link1, Link2, and so on. To rename the link, click Rename, and replace the name with new text. You can help identify the link for analysts by using the name of the target report and/or describe how its prompts are answered.
12 To create additional links from the same object, continue with the steps below. Otherwise, continue with Specify whether a new window is used, page 665. For an example of multiple links, see Linking from a document to multiple targets, page 676. 13 Click New, and define the link as described above, starting with Define the link, page 662. 14 By default, the first link that is created is set as the default link, which is used when a user clicks the object in MicroStrategy Web or double-clicks it in Desktop. To set a different link as the default, select it in the list at the top of the dialog box, and click Set as default. For details on default links, see Specifying the default link when multiple links are available, page 684. 15 You can set the order that the links are displayed in the right-click menu. Select a link in the list at the top of the dialog box, and click Move Up or Move Down to re-order the links.
Specify whether a new window is used
For all the links on an object, you can specify whether the target opens in the same window as the source (replacing the source) or in a new window when a user clicks the link. 16 By default, the target report or document opens in the same window as the source. To have the target open in a new window, which allows both the source and the target to be visible simultaneously, select the Open in a new window check box. 17 Click OK to close the Link Editor. 18 To exit edit mode, press ESC. You are returned to the source document.
Linking in widgets
665
7
7.
Introduction
A link is a connection in a document to another document, a report, or a web page. A link lets an analyst execute another document or report (the target) from a document (the source), and to pass parameters to answer any prompts that are in the target. For example, if a user is viewing a document containing regional sales, he can click a particular region to execute another document that displays sales for the stores in that region. This is a form of drilling, where the user has drilled from region to store. The source document could also link to the underlying dataset report, to display profit and cost values as well. The source could link to a web page that contains economic information about the region.
About links
Linking documents is a tool to present investigative workflows. You can use links to navigate from data at one level to different levels of aggregation. For example, a document contains data about salaries and bonuses at the departmental level. One link on department can display a document with information about individual employees, while a second link displays
2011 MicroStrategy, Inc. About links
667
information for the various business units. Another link executes a breakdown by the projects that the department is currently working on. Or you can use an object (such as an attribute element) on a document to trigger the execution of another document or a report that is substantially different from the original document. For example, a user viewing an Employee detail document can click a link to execute a Regional Sales Breakdown document, or click a link on a Profit and Loss report to view a Departmental Summary dashboard. Different objects on a document can have different links. For example, the Region attribute in a regional revenue document can link to a yearly revenue document, while the Revenue metric can link to a document with revenue forecasts and other key performance indicators. A link can also connect a text field or an image to a web page. When the document is viewed as a PDF or on the Web, a user can click the link to navigate to the links target, which opens in a new window. If you prefer, you can define the link so that the target opens in the same window as the document, effectively replacing it. functional only Links areMode), although in MicroStrategy Web (all modes except for Express you can create them in both Desktop and MicroStrategy Web. To allow a user to link from a text field or an image to a web page in PDF View in Desktop, as well as in all nonFlash modes in MicroStrategy Web, define the control as a hyperlink. For details and examples, see Defining hyperlinks in documents, page 706. Links can: Be created on a text field or image (the source) Be created from an attribute, metric, hierarchy, or object prompt on a Grid/Graph (the source)
You can execute a web page from a text field or image only.
Open the target in either a new window or the same window (replacing the source) Answer prompts in the target in a variety of ways, including using existing prompt answers from the source, using the objects selected in the source, running the prompts, sending a list of elements, and others
2011 MicroStrategy, Inc.
Are functional in MicroStrategy Web, although you can create them in Desktop and MicroStrategy Web
This chapter explores the many options exposed by links and how they can be used to create new opportunities for guided analysis. The following table describes different options that allow a user to interact with a document. The table helps you to decide what to create to achieve your goals.
To: In: Create: A text field or image that is defined as a hyperlink.
PDF View in Desktop A user can click a hyperlink on an image or a text field to open a web page. Hyperlinks work in PDF View in Desktop and in Express Mode, Interactive Mode, and Editable Mode in MicroStrategy Web. See Defining hyperlinks in documents, page 706. Link to a web page MicroStrategy Web A link. A user can click a link on an image or a text field to open a web page. Links work in all modes, except Express Mode, in MicroStrategy Web. See Linking to a web page, page 677. Link to a report or a document MicroStrategy Web A link. A user can click a link on an image, a text field, or an object in a Grid/Graph (displayed as a grid or a widget) to run another document or a report. Links work in all modes, except Express Mode, in MicroStrategy Web. See Linking to other documents and to reports (drilling), page 681. Link to a report or document & pass context MicroStrategy Web A link containing prompt information. This is the same as the link described above, except that the target document/report contains a prompt and the link contains information to answer that prompt. Information can therefore be passed from the source document to the target. See Specifying how prompts are answered in the target, page 684. Link on a Grid/Graph (not an object on a Grid/Graph) MicroStrategy Web A link to the dataset. You can link a Grid/Graph to its related dataset report. This type of link creates a text field, separate from the Grid/Graph, that executes the dataset report. See Linking to the dataset reports of Grid/Graphs, page 345.
About links
669
Create: Enable drilling in the Grid/Graph. (A new object or link does not have to be created.) You can drill on a Grid/Graph in Interactive Mode and Editable Mode in MicroStrategy Web. You can drill down, up, or across attributes, custom groups, and consolidations displayed in a Grid/Graph, if drilling is enabled. See Drilling in Grid/Graphs, page 348.
Selector. A selector allows the user to: Change panels in a panel stack Display different elements of attributes, custom groups, or consolidations in a panel stack using dynamic text fields Selectors are functional in Interactive Mode, Editable Mode, and Flash Mode in MicroStrategy Web. See Providing interactivity to users: selectors, page 418 and Layering data on dashboards: panels and panel stacks, page 391.
Selector. A selector allows a user to display different metrics or different elements of attributes, custom groups, or consolidations in a Grid/Graph. Selectors are functional in Interactive Mode, Editable Mode, and Flash Mode in MicroStrategy Web. See Providing interactivity to users: selectors, page 418.
Link URL using the object ID and link syntax. When you manually construct the link URL, rather than using the Link Editor, a user can email, export, or subscribe to the target. However, you need to know and understand the link syntax and find the object ID. See Emailing, exporting, and subscribing to documents and reports, page 711.
For information on how these various options work together, see How links, drilling, and selectors work together, page 709.
671
MicroStrategy Web, links are functional only in MicroStrategy Web (all modes except for Express Mode). Hyperlinks allow you to link to a web page and are functional in PDF View in Desktop as well as in non-Flash modes in MicroStrategy Web.
When a user clicks the logo, your home page is displayed. For more information on links that open a web page, including a more detailed example and instructions, see Linking to a web page, page 677.
complete Theall regionsdocument is not shown; the full document contains data for and all categories. If you click the link indicated by the hand pointer, the following report is executed. It provides data for the selected Region (Central), Category (Books), and Year (2006).
If you click the link on the text 2006 Revenue instead, the following report is executed. It is the same report as the previous, but contains all regions and
673
all categories, but only 2006 data. (Only a portion of the report is shown below.)
The source document is shown below in Design View. Text fields on the source document provide the metric data and the header labels. They are underlined to indicate the links, even in Design View.
The metric text fields have been expanded so that you can read the entire text.
For a more detailed explanation of the links on this document, see Passing metric conditions: Using the Static element list prompt answer method, page 692.
When you click Southwest, the Revenue Rank with Region prompt report is executed, as shown below. (This report, unlike other reports and documents in this section, is reproduced in its entirety.) Notice that only employees in the Southwest are included in the report.
This is because the Revenue Rank with Region prompt report includes a prompt on Region. The link answers the prompt dynamically, meaning that the object selected in the source (Southwest in this case) is passed to the target report as the prompt answer.
675
appears with information from the widget and a Links option, which lists the available links, as shown below.
When you click Top 2 Employees by Call Center, that report is executed, as shown below. (This report, unlike other reports and documents in this section, is reproduced in its entirety.) Notice that only call centers in the Mid-Atlantic are included in the report.
This is because the Top 2 Employees by Call Center report includes a prompt on Region. The link answers the prompt dynamically, meaning that the object selected in the source (Mid-Atlantic in this case) is passed to the target report as the prompt answer. For more information on linking from widgets, including examples and instructions, see Linking in widgets, page 659.
If you right-click a region and point to Links, a list of all the links for that object is displayed, as shown below.
The Revenue rank within region link was used in the previous example. If you choose Quarterly report for region instead, a different report is displayed, as shown below. Note that Southwest has been passed in the link because the report is filtered on Southwest.
677
effectively replacing it. Links are functional in the following modes in MicroStrategy Web: Editable Flash Interactive
in hyperlink Links are not functionalthatDesktop. Useina PDF View instead, which is similar to a link except it functions in Desktop, as well as in all non-Flash modes in MicroStrategy Web. For instructions and examples, see Defining hyperlinks in documents, page 706. For example, you can define a link on a logo in the Document Header. When a user clicks the logo, your home page is displayed. For images of this example, see Linking a document to a web page, page 672. You can also link a text field to a web page. In the following example, Region is linked to a dummy web site, www.example.com. The various regions are underlined, indicating that a link exists. When a user hovers the cursor over a region, the pointer changes to a hand, also indicating a link. This is shown below, in Interactive Mode in MicroStrategy Web.
When a user clicks a region, the www.example.com website is displayed. For instructions to re-create this example, see Creating a link to a web page, page 680. the You can add pop-up text to display information aboutor a link. In the above examples, the pop-up text can display the URL description of the website. For instructions, see Creating a pop-up tooltip, page 162.
Naming links
When you create a link, you can name it. By default, the first link is named Link1, the second Link2, and so on, but you can change the names. Since the name appears in the link, it should be descriptive and informative to help
users identify the target of the link. Instructions to name the link are included in Creating a link to a web page, page 680.
679
An auto text code providing information on a property of the document or dataset, such as the document name or a prompt answer
For more information on the syntax of dynamic data fields, see Inserting a blank text field and typing an object name, page 57. For more information on the syntax of auto text codes, see Displaying document and dataset report information: Auto text codes, page 59.
1 Create a document in Design View in the Document Editor, in either Desktop or MicroStrategy Web. MicroStrategy Tutorial, select 01 Basic Report, If you are usingRegion, Employee, and the Revenue metric as which contains shown in the example, as the dataset report. This report is saved in the Reports\MicroStrategy Platform Capabilities\ Advanced Reporting Guide directory. 2 Add Region, Employee, and the Revenue metric to the Detail section. 3 Right-click {Region} in the Layout area, and select Edit Links. The Link Editor opens. 4 By default, the Navigate to this URL option is already selected. 5 Type the target URL in the box below the Navigate to this URL option. The sample uses www.example.com. Notice that http:// is automatically filled in for you. 6 By default, in MicroStrategy Web, the target opens in the same window as the source. To have the target open in a new window, which allows both the source and the target to be visible simultaneously, select the Open in a new window check box. applies to Region This settingyou selectedalltolinks defined forEditor). (that is, the object that open the Link
7 Click OK to return to the Document Editor. 8 Create text fields in the Detail Header section containing the following text. This serves as the header for the document. Region Employee Revenue
9 Save the document. To use the link, open the document in MicroStrategy Web, in any mode except Design Mode or Express Mode.
The link connects an object in one document (the source) to another document or a report (the target). The only difference between linking to a document or report and to a web page is that you can answer prompts when
681
you link to a document/report. Answering prompts allows the link to pass information from the source document to the target.
For moretoinformation on creating and using links to a web page, see Linking a web page, page 677.
Links can provide drilling in documents, when you define the links to navigate from data at one level to different levels of aggregation. For example, if a user is viewing a document containing regional revenue, he can click a particular region to execute another document that displays sales for the call centers in that region. Essentially, the user has drilled down from Region to Call Center. The original document is shown below, in Interactive Mode in MicroStrategy Web.
After the user clicks the link on Central, this document is executed:
The drilling is accomplished by linking to a prompted document and passing prompt answers in the link. For details on passing prompt information, see Specifying how prompts are answered in the target, page 684. A second link on region in the source (that is, the first document) can take the user from the regional sales document to another document that displays sales by country. The user has then drilled up from Region to Country. In the following sample, the user has drilled from Central to all countries.
Links do not have to simulate drilling; they can also connect to reports and documents that are not different levels. The same regional document could contain another link to the underlying dataset report, which displays profit
and cost values as well sales, all at the regional level. Another link can execute a document with additional information about the selected region, such as employees, market saturation, and so on. While you can create links in Desktop and in MicroStrategy Web, they are functional only in MicroStrategy Web, in all modes except Design Mode and Express Mode.
In previous versions, linking or drilling to reports and documents was accomplished with drill links.
Components of a link
When you create a link, you specify the following components: The name of the link. By default, the first link is named Link1, the second Link2, and so on, but you can change the names. Since the name appears in the link, it should be descriptive and informative to help users identify the target of the link. The target of the link. The target is the report or document that is executed when a user clicks the link. The prompt to be answered and how to apply prompt answers to it, if the target contains prompts. A list of the prompts in the target is provided. For each prompt, select a prompt answer method. For example, a prompt can use the existing prompt answers from the source, can be run so that the user must answer it, or can be answered with the object selected in the source. Other prompt answer methods exist; see Specifying how prompts are answered in the target, page 684 for a full listing, with descriptions. The list of prompts contains an option named Any other prompt, which controls any prompts that are not in the target when the link is created. These can be either:
Prompts added to the target after the link is created Prompts that are created as the result of an answer to one of the original prompts in the target, such as a prompt-in-prompt answer
For more information about the Any other prompt option, see Specifying prompt answers for any other prompts not listed, page 699. If you create multiple links for the same object, you specify the default link, which is used when a user clicks the object. To choose any of the other links,
683
the user must right-click the object. In Flash mode, the default link is the only link that is available. See Specifying the default link when multiple links are available, page 684 for more details on how the other links are displayed. For an example of multiple links, see Linking from a document to multiple targets, page 676. For all the links on an object, you can specify whether the target opens in the same window as the source (replacing the source) or in a new window. By default, the target opens in the same window as the source, effectively replacing it. You can instead choose to open the target in a new window, which allows both the source and the target to be visible simultaneously.
prompts are listed as the Any other prompt option in the list of prompts in the interface. The prompt answer methods are briefly described in the table below. An expanded description of each, with an example, follows the table.
Prompt Answer Method Answer with the same prompt Prompt user Default answer Dynamically Requirements Same prompt in the target and source None None Attribute element prompt in target Value prompt in target (available only in MicroStrategy Web) Target prompt must not be required Attribute element prompt in target Hierarchy prompt in target Hierarchy prompt in target Prompts in the Target Are Answered By... The prompt answer from the source The user (prompts are displayed when the target is executed) The default prompt answer for the target prompt The object selected in the source (for example, the attribute element that the user clicked on)
Nothing (no prompt answer is provided from the source and the user is not prompted) List of elements created by the link designer Used to pass attribute elements from conditional metrics to the target The object selected in the source (for example, the attribute element that the user clicked on) Any object to the left of or above the user selection in the source
prompt types, see For a listinofthe MicroStrategy the Building Query Objects and Queries chapter Basic Reporting Guide. For a more extensive description of each prompt type from an analysts perspective, with images of each prompt as it appears to users, see the Answering Prompts and Refreshing Data chapter of the MicroStrategy Basic Reporting Guide. Answer with the same prompt. The same prompt answers that were used to execute the source are used in the target. For example, the Regional Revenue document links regions to another document called Yearly Revenue. The dataset reports of the documents contain the same prompt, which prompts the user to select the regions. In Interactive Mode in MicroStrategy Web, execute the Regional Revenue document and select Mid-Atlantic, Northeast, and Southeast when
685
prompted. Click Mid-Atlantic to execute the link. The Yearly Revenue document displays data for all three regions, although only one region was selected in the link. For an expanded description of this example, with samples, see Answering target prompts with the source prompt answers, page 688. Prompt user. When the target is executed, the user is prompted to provide answers manually. For example, the Regional Revenue document links regions to a report called Yearly Revenue, which is prompted for regions. Click MidAtlantic on the Regional Revenue document to execute the link to the Yearly Revenue report. The regional prompt is displayed, although a region was selected on the source document. The Prompt user prompt method does not pass information to the target, so the user must answer the prompts manually. Default answer. The prompt is answered by the default prompt answer for the prompt in the target. If the target prompt does not have a default answer, the Empty answer method is used. That is, the prompt is not answered, unless it is required, in which case the user is prompted. For example, continue with the same Regional Revenue document and Yearly Revenue report described above. This time, however, the Default answer prompt method is used in the link, and the regional prompt has a default answer of Central. When you click Mid-Atlantic on the Regional Revenue document, the Yearly Revenue report displays data for Central. Dynamically. The object selected in the source is passed to the prompt in the target. If this object does not answer the target prompt, the Empty answer method is used. That is, the prompt is not answered, unless it is required, in which case the user is prompted. Available for attribute element prompts and value prompts only. prompts, To select the dynamic prompt answer method for valuethe you must use MicroStrategy Web. For instructions, see MicroStrategy Web Help. For example, a document contains Employee, Region, and various metrics. Region is linked to a report called Revenue Rank with Region prompt. If a user clicks the Southwest region to run the link, Southwest is passed to the target to answer the prompt on region. The report displays data for the Southwest region only. If the user clicks Northwest instead, Northwest is passed to the target and the report displays data for the Northwest region only. Linking from an attribute in a Grid/Graph, page 675 shows samples for this example of the Dynamic prompt answer method.
Empty answer. The prompt in the target is ignored, which means that the prompt is not answered. No prompt answer is provided from the source and the user is not prompted to provide answers. prompt after the Thelink, the must notisbe required, otherwise,answereduser clicks the prompt executed and must be before the target can execute. The Empty prompt answer method, when used in conjunction with the dynamic prompt answer method (described above), allows a source document to answer one prompt in a target with the user selection, while ignoring any other prompts. For example, a source document contains a Grid/Graph, which has Region in the rows, and Category and Revenue in the columns. Both Region and Category link to the same target report, which prompts for Region and Category. If you click Central in the source document, the target report is executed, with data for all categories for the Central region. If you click Books in the source, the target is executed, with data for all regions for the Books category. The prompt for the selected attribute is answered using the dynamic prompt answer method, while the prompt for the other attribute is ignored, using the Empty answer prompt method. No prompt answer is provided to the target, but the user is not prompted, either. For a more detailed explanation of the Empty answer prompt answer method, including samples, see Ignoring target prompts: Using the Empty answer prompt method, page 689.
Static element list. This method answers the target prompt with a list of elements. This allows you to pass fixed conditions to the target. Once you select this method when you are creating the link, the Element List area becomes available, allowing you to select the elements that will be passed as answers to the element list prompt in the target. Available for attribute element prompts only. Use Static element list when you link from a conditional metric. Conditional metrics are filtered by attribute elements, and this prompt method allows you to pass those elements to the target. For an example, and more details on this method, see Passing metric conditions: Using the Static element list prompt answer method, page 692.
The prompt answer methods listed below are available for hierarchy prompts only. The source document used in these examples contains Year, Region, and Revenue. The source report links Region to the target report, which
687
contains the Geography hierarchy and Revenue, with a hierarchy prompt in the report filter. Current unit. Similar to the Dynamic prompt answer method, where the prompt is answered using the object selected in the source. If the user selects an attribute header rather than a specific attribute element, the Empty answer method is used. That is, the prompt is not answered, unless it is required, in which case the user is prompted. For example, if the link uses this prompt answer method, when the user clicks Central in the target document, the target displays all the revenue for the Central region. The report is filtered on Region only. All valid units. Any object to the left of or above the user selection in the source is used as the prompt answer for the target. In other words, this method passes all the selections made on the source, rather than just the selection made for the link. If the user does not select any valid objects (for example, the user selects an attribute header rather than a specific attribute element), the Empty answer method is used. That is, the prompt is not answered, unless it is required, in which case the user is prompted. For example, if a user selects Central in the target report, a year is also selected (see Prompt answer methods for hierarchy prompts, page 695 for the image). When the user clicks Central in the source, if the link uses this prompt answer method, the target report displays the revenue from the Central region, but only for the year that was selected in the target. The report is filtered on Region and Year. For a more detailed comparison of these two methods, including samples, see Prompt answer methods for hierarchy prompts, page 695.
MicroStrategy Web. Notice that when you hover over a region, the link name is displayed (Yearly Revenue in this case).
Click Mid-Atlantic to run the link. The Yearly Revenue document displays data for all three regions, as shown below, although you clicked only one region.
689
For example, the following document contains a Grid/Graph. The Grid/Graph has Region on the rows, and Category and Revenue in the columns. Region contains a link, as shown in the following image:
Note that only the selected region (Central) is displayed in the target. All categories are also displayed. Note also that the document is linked to a report, rather than another document. Return to the source document, which contains a link on Category as well, as shown in the following image:
This is the same target report as the other link, however, only the selected category (Books) is displayed. All the regions are displayed. How does this work? The target report contains two prompts, one for Region and one for Category, but the user makes only one selection (a region or a category), yet is not prompted for the other. This is because the prompts in the link definition use different prompt answer methods. The link on region uses the following prompt answer methods: Region prompt: Dynamic Category prompt: Empty answer
This passes the selected region to the target, to answer the region prompt, and ignores the category prompt. Likewise, the link on category uses the following prompt answer methods: Region prompt: Empty answer Category prompt: Dynamic method
This passes the selected category to the target, to answer the category prompt, and ignores the region prompt. required for either of these prompts when Prompt answers cannot beanswer method is used. If they are, the the Empty answer prompt prompts must be answered by the user when the target report is executed, even if the prompt answer method is Empty Answer.
691
Passing metric conditions: Using the Static element list prompt answer method
When you use the Static element list method, you select the elements that are passed as answers to an element list prompt in the target. This allows you to pass the elements from a conditional metric in the source to the target. For example, a source document contains Region, Category, and metrics for 2005 Revenue, 2006 Revenue, and 2007 Revenue. The document links from the conditional metric headers (the text 2005 Revenue, 2006 Revenue, and 2007 Revenue) to a target report, as shown below in Editable Mode in MicroStrategy Web. Note that only a section of the document is shown below; the document contains data for all regions.
The name of the link (2006 Revenue Data) implies that the condition from the selected metric (in this case, Year = 2006) is passed to the target. The target report executes and displays as shown below. Notice that the report is filtered for 2006. You can confirm that by comparing the revenue amounts. Revenue for Books in the Central region in the target is $83,697, which is the same as the 2006 Revenue amount in the source document for the same region and category. Notice also that Last Years Revenue for Books in the
Central region is $64,368, matching with the 2005 Revenue amount in the source document.
Note that the complete report is not shown; the full report contains data for all regions. If the link from the 2007 Revenue metric on the source document is chosen instead, the same target report is executed, but with different results, as shown below:
693
The target report is filtered by the condition on the conditional metric (Year = 2007), and the data has changed accordingly. Last years revenue for books in the Central region is $83,697, matching the figure in the original document. Again, only a portion of the report is shown in the sample; all regions and categories are included in the report. How does this work? You cannot pass the elements in the condition of a conditional metric directly to the target; you instead add those elements to a static element list in the link. If you do any elements to the Empty method isnot addThat is, the prompt iselement list, theunless it answer used. not answered, is required, in which case the user is prompted. In this example, the target report is prompted for Year. The header for each conditional metric in the source document contains a link to the target. In the link, the Year prompt uses the Static element list prompt answer method. For the link from the 2005 Revenue metric, the list contains 2005. For the link from the 2006 Revenue metric, the list contains 2006, and so on. Next, prompts for Region and Category are added to the target report. To retain the scenario shown above, the new Region and Category prompts must use the Empty answer prompt method. The prompts are not answered; no data about Region or Category is passed from the source to the target. The region and category selections can be passed to the target if the Dynamic prompt method is used for these prompts instead, as in the links on the metrics in the following document. Note that the links on the metrics are new, and that the link name reflects that the region and category information is passed to the target. The link name is very important to help a user understand what the target report will contain.
Note that only a portion of the source document is shown; all regions and categories are included on it. When you select the link, the target report is displayed. This report is shown in its entirety.
Only the Region (Central) and Category (Books) selected in the source document are included on this target report. The report is also filtered by Year, as before.
695
prompt answer method. Like the Dynamic method, only the attribute element that is selected is passed to the target. For example, the following document is used as the source. It contains Year, Region, and Revenue. As shown below, Region contains two links, one that passes the current region only (using the Current unit prompt answer method) and another that passes the selected year and region (using the All valid units prompt answer method).
The source report contains the Geography hierarchy and the Revenue metric. It is filtered by a hierarchy prompt on Geography. Notice that 2005 and Central are selected in the image above. If you select the Current Year and Region link, 2005 and Central are passed to the target as the prompt answers. This is confirmed in the report filter details, as shown in the report sample below. Only Central is returned, with a revenue amount ($1,823,715) that matches the revenue amount in the source report.
If you click the Current Region Only link instead, although 2005 and Central are still selected, only Central is passed as a prompt answer to the target report. The report is filtered by Central only; all years are included. The
revenue amount is therefore much higher ($6,912,934 instead of $1,823,715), as shown below.
The valid units for the All valid units prompt are any elements that are to the left of or above the user selection in the source. For example, add Call Center and Employee to the right of Region in the source report, as shown below.
697
If you select the Current Region Only link, only Central is displayed on the target report, with the same revenue amount ($6,912,934) as in the previous scenario.
If you select the Current Year and Region link instead, Central is returned, with 2005 revenue only (again, the same as in the previous scenario), as shown below.
The link could be on Call Center instead, as shown in the source report below.
If you click the Year, Region, and Call Center Revenue link, the target report is filtered by these attributes (the selection and the attributes to the left of it), as shown below. Note that the revenue amount ($1,498,233) is less than the amount ($1,823,715) displayed in the previous report that filtered for 2005 and Central. The difference of $325,481 is Call Center Fargos 2005 revenue contribution, as shown in the document above.
Note that throughout this section, the target report has not changed, although the last report shown above displays Call Center, while all the other target report samples displayed Region. This is because the target report contains the Geography hierarchy; the lowest attribute from that hierarchy that is passed in the prompt is displayed on the report. In this case it is Call Center; in the others it was Region. on hierarchy prompts For more informationReporting Guide. in general, see the MicroStrategy Basic
These prompts are listed as the Any other prompt option in the list of prompts in the Link Editor. You can choose any of the following prompt answer methods for the Any other prompt option: Answer with the same prompt Prompt user
699
By default, the Any other prompt option uses the Prompt user method. For more information on each method, see Specifying how prompts are answered in the target. For example, a Regional Revenue document contains a link to another report called Yearly Revenue (the target). When the link was created, Yearly Revenue contained only a prompt for Region. The link uses the Dynamic prompt answer mode to answer that prompt, so the region that the user selects to access the link answers the prompt. The user is not prompted when the target is executed. However, after the link was created, a second prompt, for Category, is added to the Yearly Revenue report. Now a user selects Central in the Regional Revenue document, and clicks the link for Yearly Revenue. The report does not execute immediately, but instead the Category prompt appears. The user must select a category to continue or, since the prompt is not required, can include all categories by clicking Finish. In the sample shown below, the user answered the prompt with the Book and Movie categories.
Because the Category prompt was added after the link was created, the prompt uses the prompt answer method assigned to Any other prompt. Since the creator of the link did not change that method, it is still defined as the default of Prompt user. If you edit the Yearly Revenue link in the Regional Revenue document now, the Category prompt is displayed in the list of prompts. Its prompt answer mode is defined as Prompt user, although you can change it. You can also select a different prompt answer mode for Any other prompt.
Change the Category prompt to Empty answer. Change the Any other prompt option to Default answer. Create a prompt on Subcategory, and add the following as default answers: Literature Cameras Comedy Rock
Add the new Subcategory prompt to the Yearly Revenue report. Re-execute the Regional Revenue document. Right-click Central, point to Link, and then select Yearly Revenue. You are not prompted at all. The target is filtered by Region and Subcategory, but not Category, as shown below.
The Region prompt is answered dynamically (by your selection of Central). The Category prompt is ignored and therefore does not show up in the report filter. The Subcategory prompt uses the default answers defined in the prompt (Literature, Cameras, Comedy, and Rock).
701
Prompt Answer Method Answer with the same prompt Default answer Dynamically
To create a link
1 Open the document in Design View in the Document Editor, in either Desktop or MicroStrategy Web.
2 Open the Link Editor: To create a link from a text field or image, right-click the object and select Edit Links. To create a link from an object on a Grid/Graph or widget, right-click a Grid/Graph displayed as a grid, and select Edit Grid (in MicroStrategy Web, you only have to click the Grid/Graph). Rightclick an object in the Grid/Graph and select Edit Links.
4 Select Run this report or document. 5 Click ... (the browse button) to find and select the target report or document.
Apply prompt answers
6 Select a prompt in the Target prompts list. 7 Select a Prompt Answer Method from the following list (unless otherwise indicated, each method is available for all prompt types): Answer with the same prompt. The same prompt answers that were used to execute the source are used in the target. To use this method, the target and the source must use the same prompt. Prompt user. The user is prompted to provide answers manually when the target is executed. Default answer. The prompt is answered by the default prompt answer for the prompt in the target report.
703
Empty answer. The prompt in the target is ignored, which means that the prompt is not answered. No prompt answer is provided from the source and the user is not prompted to provide answers.
required, the still executed when If the prompt issince a promptprompt ismust be provided. a user clicks this link, answer Dynamically. The prompt is answered using the object selected in the source. Available for attribute element prompts and value prompts only. You to for valuemust use MicroStrategy Websee select DynamicallyWeb prompts. For instructions, the MicroStrategy Help. Static element list. This method overrides the prompt answers from the source with a list of elements. Once you select this method when you are creating the link, the Element List area becomes available, allowing you to select the elements that will be passed as answers to the element list prompt in the target. Available for attribute element prompts only. Current unit. Similar to the Dynamic prompt answer method, where the prompt is answered using the object selected in the source. Available for hierarchy prompts only. All valid units. Any object to the left of or above the user selection in the source is used as the prompt answer for the target. In other words, this method passes all the selections made on the source, rather than just the selection made for the link. Available for hierarchy prompts only. answer methods, see For examples of each of the prompttarget, page 684. For aSpecifying how prompts are answered in the list of prompt types, see the Building Query Objects and Queries chapter in the MicroStrategy Basic Reporting Guide. 8 Repeat the above steps, starting with Apply prompt answers, for each prompt in the target.
Specify the prompt answer method for any other prompts
Any other prompts are those prompts that are not in the target when you are creating the link, such as prompts added to the target later. By default, the Prompt user method is selected for these prompts, but you
can change the method. For more information on how these prompts occur, including examples, see Specifying prompt answers for any other prompts not listed, page 699. 9 Select Any other prompt in the Target prompts list. 10 Select a Prompt Answer Method from the following list; only these methods are available for the Any other prompt option: Answer with the same prompt Prompt user Default answer Empty answer
list See the previouseach.of prompt answer methods for brief descriptions of
Rename the link
11 By default, links are named Link1, Link2, and so on. To rename it, click Rename, and replace the name with new text. You can help identify the link for analysts by using the name of the target report and/or describing how its prompts are answered.
Create another link on the same object
To create additional links from the same object, continue with the steps below. Otherwise, continue with Specify whether a new window is used, page 706. For an example of multiple links, see Linking from a document to multiple targets, page 676. 12 Click New, and define the link as described above, starting with Define the link, page 703. 13 By default, the first link that is created is set as the default link, which is used when a user clicks the object in MicroStrategy Web or double-clicks it in Desktop. To set a different link as the default, select it in the list at the top of the dialog box, and click Set as default. For details on default links, see Specifying the default link when multiple links are available, page 684. 14 You can set the order that the links are displayed in the right-click menu. Select a link in the list at the top of the dialog box, and click Move Up or Move Down to re-order the links.
705
For all the links on an object, you can specify whether the target opens in the same window as the source (replacing the source) or in a new window when a user clicks the link. 15 By default, the target report or document opens in the same window as the source. To have the target open in a new window, which allows both the source and the target to be visible simultaneously, select the Open in a new window check box. 16 Click OK to return to the source document.
does MicroStrategy Web, Thisapop-up textdisplaynot displayorinany other information.but you can add tooltip to the URL The tooltip also displays as pop-up text, but only in MicroStrategy Web. For more information, see Creating a pop-up tooltip, page 162.
The procedure below re-creates this example of dynamic text fields, while the second procedure (To define a hyperlink on an image, page 708) re-creates the hyperlinked image shown at the beginning of the section.
To define a hyperlink that uses dynamic text fields
1 Create a new document in the Document Editor, choosing the 01 Basic Report as the dataset report. This report is saved in the Reports\MicroStrategy Platform Capabilities\Advanced Reporting Guide directory. 2 Drag and drop Region from the Datasets pane to the Grouping panel. (This is not required for hyperlinks; it just re-creates the sample.) 3 Drag and drop Region from the Datasets pane to the Region Header section. 4 Right-click the Region text field in the Layout area, and select Edit Text.
707
5 Type the following before {Region}: Region: 6 Type a space, and then press ENTER. 7 Drag and drop Revenue from the Datasets pane to the Detail section, next to the Region text field. 8 Right-click the Region text field in the Layout area, and select Properties. The Properties dialog box opens. 9 Select the Is hyperlink check box. 10 In the Hyperlink field, type the following: www.example.com/{Region} Notice that http:// is automatically filled in, so do not delete it. 11 By default, the target of the hyperlink opens in the same window as the current document in MicroStrategy Web, effectively replacing the current document. To have the target open in a new window in MicroStrategy Web, select the Open in new window check box.
1 Open the document in Design View in the Document Editor. 2 Add an image. For instructions, see Inserting images in a document, page 130. 3 Select the image. 4 In the Property List, select True from the Is hyperlink drop-down list. 5 Type www.microstrategy.com in the Hyperlink field. Notice that http:// is automatically filled in for you, although you can delete it if necessary.
6 By default, the hyperlink opens in the same window as the current document in MicroStrategy Web, effectively replacing the current document. To have the target open in a new window, set the Open in new window property to True.
Northeast can be underlined because it is any of the following: A link (to another document or a report) A selector (that displays a different attribute element in a Grid/Graph) A drill (to another level of aggregation, as defined by a drill path) Any combination of these possibilities
If Northeast is a link, a selector, and a drill, what happens when the user clicks it? It functions as a selector, because you can access the link and the drill from the right-click menu, unlike selectors. When a user clicks
709
Northeast in the example shown above, the graph on the right displays the values for Northeast, as shown below:
If Northeast has a default link and a drill, the link is executed when Northeast is clicked, as shown below. By definition, a default link is the action that occurs when the link is clicked, so it takes precedence over the drill. In this case, the target document is executed, displaying information about employees in the Northeast region.
For more information, including instructions and examples, on each of these, see: Linking to other documents and to reports (drilling), page 681 Providing interactivity to users: selectors, page 418 Drilling in Grid/Graphs, page 348
Create multiple links for the same object Run a report or document Access a web site Open the target in a new window Answer prompts
For more information, including examples and instructions, see Linking to a web page, page 677 and Linking to other documents and to reports (drilling), page 681. You can manually create a link URL that performs any of the actions available in the Link Editor. This method also allows the following additional functionality:
Execute a report by supplying a template and a filter Subscribe to the target Email the target Export the target
However, you need to know and understand the link syntax and find the object ID. For instructions and examples, see Appendix F, Creating Links Manually.
711
8
8.
ADVANCED DOCUMENTS
Introduction
This section describes more advanced things you can do with MicroStrategy Report Services documents. This includes: Creating multi-layout documents, page 714 Using datasets in documents, page 730 Transaction-enabled documents: Interacting with data sources, page 754 Using prompts in documents, page 766 Improving document performance in MicroStrategy Web: Incremental fetch, page 769 Caching documents, page 775 Portable documents: Reusing documents across projects, page 778
713
Advanced Documents
table PDF file, not in Theentire of contents is shown as alayouts, you mustPDF View. To see the table of contents for all export the document to a PDF. PDF View does not show entries for all layouts.
Advanced Documents
In another example, two documents must be sent as one PDF. The first document contains a wide Grid/Graph that must be printed in landscape view. The second document, which uses a different dataset report, is a narrower document that should be printed in portrait. If you put them into the same document, extra blank pages are printed, as shown in the diagram below.
A multi-layout document solves this problem, by combining the two documents into a single document. Each layout has a separate orientation, so that the wider layout can be set to display in landscape, while the narrower layout can be set to display in portrait.
715
Advanced Documents
In Design View, the layouts are displayed as tabs, as shown below, so that you can easily switch between layouts. Tabs are also displayed in all modes in MicroStrategy Web.
a layout in a document, tabs are If you do not createchanges in the way the documentnot displayed and you do not see any works. In PDF View, the layouts are also displayed as tabs, as shown below.
You can also create a cover page for a document. The cover page does not display a page number or any of the information from the following pages (which are placed into a second layout). The cover page could display the title of the document, print date, and other information. To print the page numbers and document title on the remaining pages, place the information in the second layouts Layout Footer or Layout Header. This section includes more information about and examples of multi-layout documents, specifically in the following areas: Properties for each layout, page 717 Properties for the document, page 719 Creating layouts, page 721
Advanced Documents
Importing layouts into a document, page 725 Renaming, moving, deleting, and switching between layouts, page 726 Exporting multi-layout documents, page 727
717
Advanced Documents
Document Headers and Footers When you add a layout, the Document Header and Document Footer sections are replaced by the Layout Header and Layout Footer. The Layout Header/Footer prints at the beginning/end of the layout. For more information on the different sections, see Understanding and working with document sections, page 34.
Which sections are displayed and which are hidden in Desktop and in MicroStrategy Web You can hide or display sections in different views or in all views for a specific layout. The same section in other layouts is not changed, allowing you to hide and display different sections for different layouts. For more information, see Hiding or displaying sections for a finished document, page 181.
Border and background color You can choose the border and background color for each layout. If the document contains only one layout, the border and background is applied to the entire document. For instructions, see Formatting the border or background of a document or layout, page 213.
Incremental fetch Incremental fetch divides large layouts into pages, thereby loading the data in batches (or blocks) rather than all at the same time. This improves the usability and performance of a large document or layout, by reducing the load and overall memory usage on the web server. If the document contains only one layout, the incremental fetch settings are applied to the entire document. For instructions and examples, see Improving document performance in MicroStrategy Web: Incremental fetch, page 769.
Paper size, margins, page orientation, scaling, and horizontal fit/overflow These page setup options allow you to modify the document's appearance before printing to ensure that the end result (the printed document) appears as desired. Each layout can have different settings; for example, one layout can print landscape while another prints portrait. For details on each option and instructions to modify them, see Modifying page setup options, page 231.
Autostyles An Autostyle is a collection of formatting properties saved for various control types (text fields, lines, and so on). It is applied only to the current layout, not the entire document. If the Page Header/Footer is shared
Advanced Documents
among layouts, any formatting changes applied to those sections are applied throughout the document. See Formatting a document using predefined formats (Autostyles), page 215 for more information on Autostyles; see Applying an Autostyle to a document, page 216 for instructions on applying an Autostyle to a document. Automatic maintenance of selector targets When targets are automatically maintained, all attribute and metric selectors in the layout automatically target all Grid/Graphs and panel stacks that are in the same panel or document section as the selector. Any new Grid/Graph or panel stack added to the layout is automatically defined as the target of all attribute and metric selectors in the same panel or document section. You cannot change the target of an any attribute or metric selector in the layout. For more information, including instructions to enable and disable it, see Automatically maintaining targets for selectors, page 443. For background information about selectors in general, see Providing interactivity to users: selectors, page 418.
Bookmarks,a which are links to areas of the PDF, are created by default for multi-layout document.
Excel exporting properties, such as how to display images in Excel For instructions on defining the Excel exporting properties, see Specifying default export options, page 253.
719
Advanced Documents
General exporting options, such as whether to export all layouts or only the current layout For information on how multi-layout documents are exported, see Exporting multi-layout documents, page 727. For instructions on defining the export properties, see Specifying default export options, page 253.
Datasets All the datasets used in any layout in the document are displayed in the Datasets pane, allowing you to use objects from any dataset in any layout. If you delete a dataset, it is deleted from the entire document, not just the current layout. For more information about datasets in general, see Using datasets in documents, page 730.
Watermarks A watermark, which can be text or an image, typically identifies or decorates pages. It is a faint design appearing in the background of all pages of all layouts in a document. For instructions and examples, see Adding watermarks to documents, page 217.
Default grid Autostyle A default grid Autostyle defines the default formatting for new Grid/Graphs added to a document. The grid Autostyle is a pre-defined report style and applies to all layouts in the document. For instructions on using them, see Defining default formatting for control types: control defaults, page 196.
Whether conditional formatting is displayed Conditional formatting, which is similar to thresholds in reports, formats specific controls depending on predefined criteria. A user can show or hide all of a document's conditional formatting using a toolbar icon. This applies to all layouts in the document, not just to the current layout. For instructions, see Showing and hiding conditional formatting, page 208. For more information on conditional formatting in general, including examples, see Using prompts in documents, page 766.
Page Headers and Footers By default, Page Headers and Page Footers are shared for all layouts, although you can change this setting to have separate page sections for each layout. For more information, see Using a separate Page Header and Page Footer for a layout, page 725.
Advanced Documents
Creating layouts
To create a multi-layout document, you simply add a layout to a document. For example, you need to create a document that contains a Grid/Graph displayed across the page in landscape view, followed by several pages printed in portrait view. This multi-layout document is shown below as a PDF.
721
Advanced Documents
The following procedure walks you through creating this multi-layout document. It uses data from the MicroStrategy Tutorial, specifically the Revenue vs. Forecast report, located in the Public Objects\ Reports\Subject Areas\Sales and Profitability Analysis
Advanced Documents
folder, and the Employee Headcount by Region report, located in the Public Objects\Reports\Subject Areas\Human Resources Analysis folder. The procedure does not include formatting steps, as that is beyond the scope of this section.
You can also import an existing documents layouts into another document; for more information, see Importing layouts into a
document, page 725.
To create the multi-layout document example
1 Create a new document, using Revenue vs. Forecast as the dataset report. (The reports location in the Tutorial sample project is provided above.) 2 Hold down the SHIFT key while dragging and dropping Revenue vs. Forecast from the Datasets pane to the Detail Header. This adds the Grid/Graph with the original formatting. 3 In the Page Footer, add a page number. To do this: a Click in the Page Footer section to make it active. b Point to Auto Text on the Insert menu, and then select Page Number. The auto text code {&PAGE} is placed in a text field. c Edit the {&PAGE} field to add Page: and a space before the code. The text field should look like the following: Page: {&PAGE} 4 In the Document Header, add a text field containing the following, to label the Grid/Graph: Revenue vs. Forecast 5 To set the page orientation, select Page Setup from the File menu. The Page Setup dialog box opens. 6 Select Page. 7 Select Landscape for the Orientation. 8 Click OK to return to the Document Editor.
723
Advanced Documents
9 Select Layout from the Insert menu. The New Document dialog box opens. 10 Click the General tab. 11 Select the Blank Document template and click OK. Two tabs are added, with the default names of Layout1 and Layout2. Layout2 is active. tabs, see Renaming, For information on renaming thelayouts, page 726. moving, deleting, and switching between 12 To add the dataset for Layout2, select Add Dataset from the Data menu. The Select a report dialog box opens. 13 Select the Employee Headcount by Region report in the Subject Areas\Human Resources Analysis folder. 14 Right-click Employee Headcount by Region in the Datasets pane and select Set as Grouping and Sorting Dataset. This allows you to group the layout. 15 Drag Region from the Datasets pane and drop it onto the Grouping panel. 16 In the Layout Header, add text fields containing the following, to label the layout and the data fields: Employee Headcount Region Headcount
17 Drag and drop Region and Employee Headcount from the Datasets pane to the Region Header. 18 To check the page orientation of this layout, select Page Setup from the File menu. The Page Setup dialog box opens. Note that this layout is set to the default orientation, which is Portrait. Click OK to return to the document. 19 Expand the Page Footer, if it is not open. Notice that the page information from Layout1 is duplicated here, since by default the Page Header and Page Footer are shared. You can change this setting; see Using a separate Page Header and Page Footer for a layout, page 725 for information.
Advanced Documents
20 Click the Layout1 tab. Notice that the section containing the words Revenue vs. Forecast is now called Layout Header. It was called Document Header before you added a layout. 21 Save the document. 22 Switch to PDF View. Accept the default answers for the prompts. The document should resemble the sample shown on page 722.
1 Open a document in Design View in the Document Editor. 2 Select Import Document from the File menu. The Select a Document dialog box opens. 3 Select the document to import, then click Open. You are returned to the document, which now contains the imported layouts and datasets.
You can instead choose to use different page sections for each layout, as described in the following procedure. When the page sections are shared, you can edit them in any layout. When they are not shared, any edits you make in a particular Page Header or Page Footer affect only the current layout. Also,
725
Advanced Documents
the word (shared) does not appear in the name of the document section, as shown below:
If you choose to use a separate Page Header and Page Footer for one layout, other layouts still use the shared Page Header and Page Footer. For example, a document contains three layouts, which share the Page Header and Page Footer by default. You can specify that Layout1 uses its own Page Header and Page Footer. Layout2 and Layout3 still share the Page Header and Page Footer. Alternatively, you can specify that all three layouts have their own Page Headers and Page Footers.
To use a separate Page Header and Page Footer for a layout
1 Click the tab of the layout to have a separate Page Header and Page Footer. 2 Select Document Properties from the Format menu. The Properties dialog box opens. 3 Select Layout. 4 Clear the Use shared page header/footer check box. 5 Click OK to return to the Document Editor.
Advanced Documents
1 In Design View, right-click a layout tab and select Rename. 2 Type the new name, and then press ENTER.
To change the order of the layouts
1 In Design View, right-click the layout tab to move, and select either Move Left or Move Right.
To delete a layout
1 In Design View, right-click the layout tab to delete and select Delete. The selected layout is removed, although the dataset it used is still in the Datasets pane. If only one layout remains, the Document Header/Footer replaces the Layout Header/Footer.
727
Advanced Documents
Before you export, set the export options to control how the document is exported. If you allow users to be prompted when they export a document, they can choose to export all layouts or only the current layout. options, including All export the document. Forwhether to export all layouts, apply to all layouts in detailed descriptions of those options, see Specifying default export options, page 253. Exporting to Excel all the layouts of the multi-layout example created previously (see page 722 for the sample) creates the following Excel spreadsheet:
Only a portion of the spreadsheet is shown. Notice that the worksheets are named for the document, not the layouts. The name of the document and the Excel spreadsheet (shown at the top of the image) is multilayout example; the names of the worksheets are multilayout example, 1 of 2 and multilayout example, 2 of 2, as shown in the tabs at the bottom of the image. You can choose to export only the current layout, instead of all layouts. (The current layout is the layout selected in PDF View.) If you export the current
Advanced Documents
layout to Excel, the name of the single worksheet is the name of the document. Exporting a multi-layout document to PDF works similarly. By default, the layouts are displayed as bookmarks, whether you export all layouts or only the current layout. You can choose whether or not to include bookmarks in the PDF; for instructions, see Including or hiding bookmarks in PDFs, page 240. If the PDF will be viewed on a Kindle or Nook, you should expand all layouts so that the Kindle or Nook user can view all the data. of a multi-layout document that You can create a tabletotalcontents forpages. For examples, see The displays an accurate number of table of contents in a multi-layout document: Example, page 245 and The table of contents in a grouped multi-layout document: Example, page 246. The following procedure specifies the export options so that all the layouts are exported, and also exports both layouts to Excel, as shown above. For instructions on setting the default export options for Excel, see Specifying default export options, page 253.
To export all layouts of a multi-layout document to Excel
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. 3 Click Export. 4 Select Export All layouts. on the other export For detailsfor export, page 250.options, see Formatting a document 5 Click OK to return to the document. 6 Click PDF View on the toolbar. 7 From the File menu, select Export to Excel. 8 If the Export to Excel dialog box opens, ensure that Export All layouts is selected.
729
Advanced Documents
9 Click OK. The document opens as an Excel spreadsheet. Be sure to save it before exiting Excel.
Advanced Documents
The same report is used as a dataset in a document, and each of its objects are used in the Detail section. The document contains four rows as well.
731
Advanced Documents
Elements from the secondary datasets are displayed only if they also appear in a primary dataset.
Grid/Graphs. An a These rules do not affectGrid/Graph even ifelement fromalsosecondary dataset is displayed in a it does not appear in a primary dataset. Datasets are joined following these rules: If a document contains one primary dataset, then all secondary datasets are joined to the primary dataset using left outer joins. If a document contains at least two primary datasets, all primary datasets are joined using compound joins. The results are used to left outer join all secondary datasets. If a document does not contain any primary datasets, all datasets are joined using inner joins.
For examples, see Defining a dataset as primary or secondary, page 733. For a compound join, Intelligence Server joins the data in the datasets as described below: If the datasets have any of the same attributes, the common attribute elements are matched. Then beginning with the first row of each dataset and continuing to the last, it creates a row in a virtual datasetthe complete set of joined rows held in memoryconsisting of all attributes, consolidations, custom groups, and metrics. You can determine whether sections that do not have metric data are displayed and whether grouping elements that contain null values are displayed. For examples and instructions, see Displaying grouping elements that contain null values, page 750 and Removing sections that do not have metric data, page 752.
Metrics come from their respective datasets and exist only at the level of that dataset. The compound join saves memory space and processing time on the Intelligence Server executing the document. For examples of joining datasets, see Defining a dataset as primary or secondary, page 733 and Joining multiple datasets: Examples, page 738. also pull A document canand Querydata from any number of MDX cube, Freeform SQL, Builder reports, which facilitate joining data across multiple sources.
Advanced Documents
Dataset 2 contains Region and the Profit metric, filtered for Mid-Atlantic, Northeast, Northwest, and South
Dataset 3 contains Region and the Customer Count metric, filtered for Mid-Atlantic, Northwest, Southeast, and Southwest
A document contains all three datasets. The Detail section contains Region and the three metrics. By default, all three datasets are primary datasets.
2011 MicroStrategy, Inc. Using datasets in documents
733
Advanced Documents
Since the datasets are joined together using compound joins, all of the elements from all three datasets are therefore displayed in the seven rows of results. A metric value is displayed only when that region appears in the dataset report that contains the metric. For example, Southwest shows a value only for Customer Count because Southwest appears only in Dataset 3 (the Customer Count dataset). Similarly, Mid-Atlantic shows values for all three metrics because Mid-Atlantic is the only region included on all three datasets.
Change the join behavior: Dataset 1 and Dataset 2 = primary Dataset 3 = secondary
Dataset 1 and Dataset 2, as primary datasets, are joined with compound joins, and all their regions are displayed on the document. Those results are left outer joined with Dataset 3, so the only regions from Dataset 3 that appear in the document are the regions that also appear in one of the
Advanced Documents
primary datasets. In this case, Southwest appears only in Dataset 3, so it is not displayed in the results. Only six rows are displayed, as shown below:
Change the join behavior: Dataset 1 and Dataset 3= primary Dataset 2 = secondary
Again, only six regions are displayed, but now Southwest is shown instead of South, since South is available only in Dataset 2.
Change the join behavior: Dataset 1 = secondary Dataset 2 and Dataset 3 = primary
735
Advanced Documents
This time, Central does not appear because it is available only on Dataset 1, a secondary dataset.
Change the join behavior: Dataset 1 = primary Dataset 2 and Dataset 3 = secondary
Since the document has only one primary dataset, all the other datasets are joined to the primary dataset with left outer joins. Only the four regions from the primary dataset are displayed in the document. Those are the regions that have Revenue values, since Revenue is the metric in Dataset 1. South, which is only in Dataset 2, and Southwest, which is only in Dataset 3, are not displayed. Northwest is in both Dataset 2 and Dataset 3, but since it is not in the primary dataset, it is not displayed.
Change the join behavior: Dataset 1 and Dataset 3 = secondary Dataset 2 = primary
Advanced Documents
Since Dataset 2 is primary, only the four regions that are in that dataset are displayed.
Change the join behavior: Dataset 1 and Dataset 2 = secondary Dataset 3 = primary
Similarly, since Dataset 3 is primary, only the four regions that are in that dataset are now displayed. Notice that these regions all have values for the Customer Count metric, since that is the metric in that dataset.
Since the document does not contain any primary datasets, all datasets are joined using inner joins. Only the one region (Mid-Atlantic) that is in all the datasets is displayed.
737
Advanced Documents
1 From the Document Editor in Design View, make sure that the Datasets pane is displayed. (If it is not displayed, press F8 or select Datasets from the View menu.) 2 Right-click the dataset in the Datasets pane, point to Join Behavior, and select either Primary or Secondary.
Advanced Documents
attributes. Dataset 1 (the grouping and sorting dataset) contains the metrics Revenue and Units Sold, while dataset 2 contains the metric Profit.
A document contains these two reports as datasets. When the document is executed, it creates a virtual dataset by joining the two datasets. In this case, because the attributes and the filter are the same, the result displayed in the Detail section has the same number of rows as the original reports, but it can display all three metrics together, as shown below.
Each Grid/Graph in the document shows the data from its respective dataset, with no impact from the other datasets. For example, if we add Year to the Grouping panel and add a grid for each of the datasets to the Year Header, the grids display a summary of the year values, as shown below:
739
Advanced Documents
Advanced Documents
The grouping and sorting dataset contains all of the attributes that are in the other datasets, so the grouping and sorting dataset contains a superset of the attributes in the other datasets.
741
Advanced Documents
The following image shows the Revenue metric supplied by the grouping and sorting dataset for Region, Year, and Category. In this example, the following was selected for all three datasets: Year: 2002 and 2003 Region: Mid-Atlantic Category: All
The Detail section of the document is calculated at the level of Region, Year, and Category with the metrics coming from the respective datasets. In this example, each metric comes from a different dataset. Since the Revenue metric is from the grouping and sorting dataset, it is calculated at the Region-Year-Category level. The Profit metric originated in Dataset 2, so it is calculated at the Region-Year level. Finally, the Cost metric is from Dataset 3 and is calculated by Region-Category. This is shown in the following image. Notice that there are eight rows in the Detail sectionone row for each combination of Region, Year, and Category.
Metrics are never displayed at a level of greater detail than the level in the dataset report that they come from. The value for the Profit metric repeats for all four categories, because Dataset 2 contains only two values for Profit.
Advanced Documents
743
Advanced Documents
The Detail section is at the level of Region, Year, and Category with the metrics coming from the respective datasets. Because no relationship exists between the attributes, they cannot be joined in a meaningful way, as shown below.
The holes in the data occur because metrics cannot be any more detailed than in their datasets. So, Revenue cannot be calculated for the South region because that level of granularity does not exist in the grouping and sorting dataset, which is the origin of the Revenue metric. Since the grids in this document are meaningful and predictable, they can be used for data reporting. If the same document is grouped by Year, eight rows of data are still returnedone row for each Year, with the remaining six rows, which do not have a Year attribute, placed in a separate grouping section. Again, the data cannot be joined in a meaningful way because no relationships exist between the attributes.
Advanced Documents
745
Advanced Documents
1 Open the document using the Document Editor in Design View. 2 From the Data menu, select Add Dataset. The Select a report dialog box opens. 3 Locate and select the dataset report that you want to add. 4 Click Open.
Advanced Documents
1 From the Document Editor in Design View, make sure that the Datasets pane is displayed. (If it is not displayed, press F8 or select Datasets from the View menu.) 2 In the Datasets pane, right-click the dataset that you want to remove and select Delete From Document. A dialog box opens asking you to verify that you want to remove it. 3 Click Yes to proceed.
1 Open the document using the Document Editor in Design View. Make sure the Datasets pane is displayed. Datasets not If the menu, or pane isF8. displayed, select Datasets from the View press 2 In the Datasets pane, right-click the dataset that you want to edit and select Edit. The Desktop Report Editor opens. 3 Make necessary changes, then save and close the report. You are returned to the Document Editor.
747
Advanced Documents
For more information on editing a report, see the MicroStrategy Advanced Reporting Guide.
For more information on how toingroup or sort data, see Chapter 3, Grouping and Sorting Records a Document.
When you change the grouping and sorting dataset of a document, all the grouping fields (the attributes that the document is grouped by) that are associated with the old grouping and sorting dataset but do not exist in the new one are removed. These items are also removed from the corresponding headers and footers. For example, if the document described above is grouped by Region and Call Center, the document has a Region Header, Region Footer, Call Center Header, and Call Center Footer sections. If you change the grouping and sorting dataset from Dataset 1 to Dataset 2, the document is no longer grouped by Call Center, because Dataset 2 does not contain Call Center. It is still grouped by Region, however, since that attribute exists in both datasets. The Call Center Header and Call Center Footer are removed from the document, but not the Region Header or Region Footer.
To change the grouping and sorting dataset
1 Open the document using the Document Editor in Design View and make sure the Datasets pane is displayed. 2 If the document contains multiple layouts, click the tab of the layout to modify.
Advanced Documents
3 In the Datasets pane, right-click the dataset and select Set As Grouping and Sorting Dataset. The name of the new grouping and sorting dataset in the Datasets pane is bolded.
749
Advanced Documents
document. All the objects from the base report are displayed in the Datasets pane.
If you add the Grid/Graph with formatting or as a shortcut, the subset report is used. The view filter is applied. Only objects on the grid of the report are displayed in the Grid/Graph.
create view filters in as the Grid/Graph You canshortcut. These view Grids/Graphs, as longdocument, that is, is not a filters are local to the they do not affect the report results, only the Grid/Graph defined in the document. For more information about view filters in documents, see Using view filters on Grid/Graphs, page 331. For more information on Grid/Graph shortcuts, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306. For more information on creating Grid/Graphs, see Adding a Grid/Graph to a document, page 298. For more information on view filters and report objects in reports, see the MicroStrategy Advanced Reporting Guide.
Advanced Documents
available. The document contains Region, Revenue, Year, and Profit in the Detail section. As shown below, the document contains three rows:
Now, group the document by Region. When you execute the document, only two regions, Northeast and Northwest, are displayed in the page-by options. When you select Northeast, only the row for Northeast is shown, as displayed below:
If you select All for the page-by, two rows are displayed, as shown below:
One of the rows from the original document is missing, the one containing the data for 2009. You are grouping by region and that row does not contain any information about regions. The row for 2009 is not displayed, because it contains null values for Region and by default, groups that contain null elements are removed. To see the information for 2009, clear the Remove the groups that contain null elements check box. The page-by options are now Northeast, Northwest, NULL, and All. When All is selected for the page-by, the document displays with three rows, as shown below:
751
Advanced Documents
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Advanced. 4 By default, the Remove the groups that contain null elements check box is selected. To display any grouping elements sections that contain null elements, clear this check box. 5 Click OK to return to the Document Editor.
You do not want to see the blank line for 2007 since it does not give you any data for profit. You can select the Trim the sections for which no data was available (this applies only to metric values) check box. This removes the
Advanced Documents
row for 2007, since no metric data for Profit is available for 2007. The results are shown below:
define Dataset 2 as a primary dataset An alternative solution is to instructions and details, see Defining and Dataset 1 as secondary. For a dataset as primary or secondary, page 733. In another example, a document contains two dataset reports. Dataset 1 contains Region and Revenue, filtered to display Northeast and Northwest only. Dataset 2 contains Year and Profit. Data for three years (2007-2009) is available. The document contains Region and Revenue in the Detail section. You want to display: A Grid/Graph that contains three years of Profit in the Document Header A row for each region, with year and profit information
You do not want to group the document by region. The document looks like the following:
The Grid/Graph contains the three rows of yearly profit data. The document contains three rows, one of which is blank, a product of the cross join between the two datasets. Since you want only a row for each region, and the blank row is not providing any information about region or revenue, it can be removed. To do this, select the Trim the sections for which no data was
753
Advanced Documents
available (this applies only to metric values) check box. The resulting document is shown below:
1 Open the document using the Document Editor in Design View. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Advanced. 4 Select the Trim the sections for which no data was available (this applies only to metric values) check box. 5 Click OK to return to the Document Editor.
Advanced Documents
For example, an analyst can view a list of employees with time off requests, choose to accept or reject each request, then update their data to display the new status of each request. In a document displaying a list of products that need to be restocked for a store, an analyst can change the quantity to reorder for each product, then submit their changes. Analysts can use Transaction Services-enabled documents to interact with the data in Express Mode in MicroStrategy Web, and when viewed on an iPhone, iPad, or Android with MicroStrategy Mobile. You must have the Transaction Services product to create and use Transaction Services-enabled documents. Detailed steps to create a transaction-enabled document or dashboard in MicroStrategy Web are below.
755
Advanced Documents
Prerequisites
You must have the Transaction Services product. You must have the Web Configure Transaction privilege. This procedure assumes that the Transaction Services report that you want to link to the Grid/Graph or text fields has already been created. This report must contain the input object for each value that you want to allow users to change. For steps to create a Transaction Services report, see the MicroStrategy Advanced Reporting Guide. This procedure assumes that you have already created a document or dashboard with the following:
A Grid/Graph that contains a separate attribute form or metric to link to each input object on the Transaction Services report. Each attribute form that you want to link to an input object must be visible in the Grid/Graph. To choose the attribute forms displayed for an attribute in the Grid/Graph, right-click the header of the attribute, point to Attribute Forms, then select the attribute forms to display. For steps to add a Grid/Graph to a document/dashboard, click Help in MicroStrategy Web. To allow users to edit the values of attribute forms in a grid, you must place only attributes on the grids rows, and only metrics on the grids columns.
1 In MicroStrategy Web, open the document in Design or Editable Mode. 2 Do one of the following, depending on which type of control that you want to use in the document: To link a Grid/Graph to the Transaction Services report, right-click the Grid/Graph, then select Configure Transaction. The Configure Transactions Editor opens. To link the text fields on a panel stack (called a field group) to the Transaction Services report, right-click any text field in the panel stack, then select Configure Transaction. The Configure Transactions Editor opens.
3 Select a Transaction Services report. To do this, click ... (the browse button). Navigate to and select the Transaction Services report to link to.
Advanced Documents
4 You can choose to automatically recalculate subtotals and derived metrics when a user edits a value in the document, or refresh the values only when the user manually chooses to recalculate the data. This option is only available for Grid/Graphs linked to a Transaction Services report. Do one of the following: To automatically recalculate the subtotals and derived metrics, select the Automatically recalculate values after data change check box. To recalculate the subtotals and derived metrics manually, clear the Automatically recalculate values after data change check box.
5 You can display a row of check boxes beside each row of data in a grid, to allow the user to choose which rows of data to update using the Transaction Services report. This option is only available for grids. This option is only applied to grids in which all attributes are on the rows and all metrics are on the columns. Do one of the following: To allow users to select rows of data using the check boxes, select the Mark rows for selection (tabular grids only) check box. To display data in the grid without the check boxes, clear the Mark rows for selection (tabular grids only) check box.
6 You can choose to display an indicator next to grid cells or text fields displayed in the document, to mark the values that the user has changed. Do one of the following: To display an indicator next to the changed values, select the Flag cells/fields with modified data check box. To display the changed values without an indicator, clear the Flag cells/fields with modified data check box.
7 A list of each input object in the Transaction Services report is displayed in the Transaction Input column. Perform the following steps for each input object: a Do one of the following, depending on which control type to link the report to: To link a Grid/Graph to the Transaction Services report, from the Grid Object drop-down list, select the attribute form or metric to link to the input object.
757
Advanced Documents
To link the text fields in a panel stack to the Transaction Services report, from the Field drop-down list, select the text field that you want to link to the input object. b Choose whether users can edit the value of each input object. Do one of the following: To allow the user to edit the value of the input object, select the Editable check box. To prevent the user from editing the value of the input object, clear the Editable check box. c From the Control Style drop-down list, select the type of control to use to display and edit the value of the input object. Select one of the following: available options may vary depending on type Theinput object. For information on how eachthe data is of the control displayed in Web or on a mobile device, see the table in Input object controls that support transactions, page 763 below. To allow users to type a single line of text in a text field, select Text Field. To allow users to type multiple lines of text in a text box, select Text Area. To allow users to turn a switch on or off to specify a numeric value, select Switch. To allow users to choose a specific time, select Time Picker. To allow users to select a date from a calendar, select Calendar. To allow users to choose a value from a list, select List. You can automatically generate the values displayed in the list, display the elements of an attribute (for a document viewed in Web or on a mobile device with MicroStrategy Mobile), or manually specify the values. To allow users to choose a value on a slider, select Slider. To allow users to click a button to choose an image, select Toggle. d To specify the display options for the input object control, click the Control Properties icon next to the Control Style drop-down list to expand the Control Properties, then select the appropriate options to
Advanced Documents
format the control. The table in Input object controls that support transactions, page 763 below contains a list of the options available for each type of control, and steps to format them. 8 Repeat the appropriate steps above to define and format the control that you want to display for each input object. 9 Click OK to save your changes and return to the document.
To create the action selector button or link
10 From the Insert menu, point to Selector, then select one of the following: To allow users to click a button to recalculate, discard, or submit their changes, select Action Selector Button. To allow users to click a link to recalculate, discard, or submit their changes, select Action Selector Link. You can create a custom selector button by using the link option above, and then placing the link text over an image. For steps to add an image, see the MicroStrategy Web Help.
11 Click the section of the Layout area in which you want to place the selector. Right-click the selector, then select Properties and Formatting. The Properties and Formatting dialog box opens. 12 From the left, click General, then type the text you want to display on the button or link in the Display Text field. 13 By default, a descriptive title bar is displayed for the selector. You can determine whether or not to display the title bar. Do one of the following: To display the title bar, select the Show Title Bar check box and type the title to display in the field. To display the selector button or link without the title bar, clear the Show Title Bar check box.
14 From the left, click Selector. From the Action Type drop-down list, select one of the following: To allow the user to submit the changes that they have made to the data in the document, select Submit.
759
Advanced Documents
To allow the user to recalculate the values of derived metrics and subtotals, reapply number and date formatting, and update other values calculated by the Analytical Engine, select Recalculate. does not support button or link MicroStrategy Webmetrics displayedusing a fields. To allowto recalculate derived in text users to recalculate the values of derived metrics in your Transaction Services-enabled documents, consider displaying your data in a Grid/Graph.
To allow the user to discard their changes and display the values of the input objects from when they were last submitted, select Discard Changes.
15 You can choose to display a message asking for confirmation when a user clicks the action selector button or link. This option is only available if the Action Type is set to Submit or Discard Changes. Do one of the following: To display the confirmation message, select the Require confirmation check box. To submit or discard changes without displaying a confirmation message, clear the Require confirmation check box.
16 You can determine which action MicroStrategy Web performs after a user submits his changes. This option is only available if the Action Type is set to Submit. Select one of the following under Subsequent Actions: To return to the document without performing any additional actions, select the No subsequent action option. To refresh the display of the document, select the Refresh the current document option. To run a specific report or document, select the Run a new report or document option. Click ... (the browse button), navigate to and select the report or document you want to run, and click OK.
Advanced Documents
17 If you have chosen to have a report or document automatically run after the user submits his changes, you can specify whether the report or document will be executed using data cached on the mobile device. If you choose to have the report or document run without using data cached on the mobile device, the report or document will automatically be executed using data cached on the Intelligence Server, if available. If no cached data is available on the mobile device or Intelligence Server, the report or document will be executed against the data source. This option is only available if the Action Type is set to Submit and the Run a new report or document option is selected. Do one of the following: have the report or automatically You can choose tothe data source eachdocument run, ensuring that executed against time it is the report or document displays the most recent data. To do so, you must disable caching for the report or document. For steps, as well as background information on caching reports and documents displayed on mobile devices, see the Mobile Design and Administration Guide. To run the report or document without using data cached on the mobile device, select the Force Live Execution check box. To run the report or document using data cached on the mobile device, clear the Force Live Execution check box.
18 You can display a custom confirmation message to the user after his changes are submitted. This option is only available if the Action Type is set to Submit. Do one of the following: To display a custom message, select the Display message after submit check box, then type a confirmation message in the field. To apply the users changes without displaying a custom message, clear the Display message after submit check box.
19 A Transaction Services-enabled document that is pre-cached is run in the background, and its results are stored on the mobile device on which it is executed, improving the speed with which the document is run. You can choose to update document results cached on a mobile device after the user submits his changes, by using the Invalidate Mobile Device Cache setting to mark a documents results as in need of updating. If the document is defined to be pre-cached, the document will be automatically pre-cached each time the user submits his changes. If the document is not defined to be pre-cached, the document will be automatically executed using data cached on the Intelligence Server the next time the document is run, or executed against the data source if no
761
Advanced Documents
cached data is available. For background information on pre-caching, see the Mobile Design and Administration Guide. This option is only available if the Action Type is set to Submit. Do one of the following: To have document pre-cached each time the user submits their changes, select the Invalidate Mobile Device Cache check box. To allow the user to submit their changes without marking the data cached on the mobile device as in need of updating, clear the Invalidate Mobile Device Cache check box.
20 By default, the selector button or link automatically targets (updates) each Grid/Graph and panel stack in the section in which the button or link is placed. You can choose the targets of the selector manually instead. To do so, select Click here, then use the right arrow to move the Grid/Graph or panel stack to target from the Available list to the Selected list. For detailed steps, see the MicroStrategy Web Help. 21 Click OK to save your changes and return to the document. 22 Repeat the appropriate steps above to define each action selector button or link that you want to add to the document.
Advanced Documents
1 You can choose to replace the control with an image and display the control only when the user clicks the image. Select the Show icon when collapsed check box. 2 To display a preview of the text in the Text Area control, select the Preview check box, then type the number of characters to display in the field. This option is only available when the Show icon when collapsed check box is cleared. 3 To specify a width for the control, type the width in inches in the Width field. 4 To specify the maximum number of characters that can be typed into the text field, type the number of characters in the Maximum Length field. 1 To specify the value used for the input object when the switch is in its off position, type the value in the Off Value field. 2 To specify the value used for the input object when the switch is in its on position, type the value in the On Value field.
Switch The Switch style displays as: A check box in Web or on an Android device An on/off switch on an iPhone or iPad Time Picker The Time Picker style displays as: An interactive clock in Web A wheel-style prompt on an iPhone, iPad, or Android device
Warning: Users must have a browser with HTML5 support to view the Time Picker control as an interactive analog clock display. On browsers without HTML5 support, the control is displayed as a digital clock. 1 Type the time interval to display between each value in the Interval field, in minutes. For example, if the interval is 5, users can select 2:00, 2:05, 2:10, and so on.
763
Advanced Documents
Control Style Calendar The Calendar style displays as: A calendar in Web Dates on a selectable wheel on an iPhone, iPad, or Android device List The List style displays as: A drop-down list in Web A wheel on an iPhone A list on an iPad or Android device
Steps to Format 1 To specify the earliest date a user can choose in the calendar, select the Minimum value check box, click the calendar, and then select the date. 2 To specify the latest date a user can choose in the calendar, select the Maximum value check box, click the calendar, and then select the date.
1 You can display the list automatically when the document is viewed, or display the list only when a user selects its grid cell or text field. Do one of the following: To display the list automatically, select the Show by default check box. To display the list when its grid cell or text field is selected, clear the Show by default check box. 2 To specify a width for the list, select the Width check box. In the field, type the width in inches. 3 You can automatically generate the values displayed in the list, or manually determine the values. If determined manually, you can specify the text displayed for each choice that is presented to the user, and the value to use to update, insert, or delete data. Select one of the following under Input type: To display automatically generated values, select Calculated. - Specify the lowest and highest selectable values in the list by typing a value in the Minimum value field and the Maximum value field. - To specify the interval displayed between each value in the list, type a value in the Interval field. For example, if the minimum value is 0 and the interval is 10, users can specify 0, 10, 20, 30, and so on. To use manually entered values, select Manual. Perform the following steps for each value: - In the Value field, type the value to use when the choice is selected. - In the Label field, type the text to display for the choice. - To add choices to the list, click the Add icon. - To delete a choice from the list, click the Delete icon next to the choice. - By default, when the text field or grid cell of the list is set to a value for which no label is defined in the Control Properties, the list is displayed as blank and no value is selected. You can specify text to display in the list instead. To do so, type the text you want to display in the first field in the Label column, next to the word Unset. To use attribute elements from a selected attribute, select Dataset. List controls containing attribute elements can be displayed in a document viewed in Web or an iPhone or iPad with MicroStrategy Mobile. - From the Source drop-down list, select the dataset report that contains the attribute you want to use to display the list control. - From the Attribute drop-down list, select the attribute whose elements you want to display as options in the list. - From the Writeback Form drop-down list, select the attribute form to use to update your data. The value of this form will be supplied to the Transaction Services report when a user selects an attribute element from the list control.
Advanced Documents
Control Style Slider The Slider style displays as a slider in Web, or on an iPhone, iPad, or Android device
Steps to Format 1 You can display the slider automatically when the document is viewed, or display the slider only when a user selects its grid cell or text field. Do one of the following: To display the slider automatically, select the Show by default check box. To display the slider when its grid cell or text field is selected, clear the Show by default check box. 2 To specify a width for the slider in inches, select the Width check box, then type the width in the field. This option is only available if the Show by default check box is cleared. 3 To specify a width for the slider as a percentage of the text box or grid cell it is defined on, select the Label Width check box, then type a percentage in the field. This option is only available if the Show by default check box is selected. 4 You can automatically generate the values displayed in the slider, or manually determine which values are displayed. If determined manually, you can specify each value displayed. Select one of the following under Input type: To display automatically generated values, select Calculated. - To specify the lowest and highest selectable values, type a value in the Minimum value field and in the Maximum value field. - To specify the interval displayed between each value in the slider, type a value in the Interval field. For example, if the minimum value is 0 and the interval is 10, users can specify 0, 10, 20, 30, and so on. To use manually entered values, select Manual. Type each value in the Enter values column. Click the Add icon to add fields, or click the Delete icon to delete a value. 1 In the Value field, type the value you want to use when the image is selected. 2 Type the location of the image to display in the Image Source field. You can specify the location as: An http reference to a central web server machine, such as http://microstrategy/Test/myimage.jpg. Intelligence Server and Desktop must both be able to access the machine. A full path to the image on a shared network drive, such as \\my_computer\shared\myimage.jpg. All users, Intelligence Server, Desktop, and the web server must be able to access the drive. A partial path, such as Images\myimage.jpg. The image must be copied in all of the following folders: Desktop\Images, Intelligence Server\Images, and Web\Images. 3 To add images to the toggle button, click the Add icon. 4 To delete an image from the toggle button, click the Delete icon next to the image to delete. 5 Repeat the appropriate steps above for each image you want to add to the toggle button. 6 By default, when the text field or grid cell of the toggle button is set to a value for which no image is specified in the Control Properties, the toggle button is displayed as a blank space and no value is selected. You can specify an image to display for the toggle button instead. To do so, type the location of the image (as described above) in the first field in the Image Source column, next to the word Unset.
Toggle The Toggle style displays as a button in Web, or on an iPhone, iPad, or Android device
765
Advanced Documents
Prompts in documents act as filters and limit the data that is displayed. These value prompts affect the number of rows of data that are displayed but they do not determine which objects are returned from the data warehouse. This is because the prompt answers are not available in the Design Viewthat is, the creator of the document does not know the objects that the user will select. You cannot use a prompt directly on a document or put a prompt into a Grid/Graph on a documentonly attributes, consolidations, custom groups, and metrics can be used as data fields from the dataset. Object prompts on
Advanced Documents
templates, which allow a user to select which objects to include in a dataset report, are not supported, unless you add the Grid/Graph as a shortcut. shortcut used, prompt does Even when a pane; youiscannotthe objectthe document notaappear in the Datasets add it to as separate object. When the document is executed, the object prompt is displayed and its answers are shown in the document results. This occurs just as if you had executed the dataset report as a stand-alone report. For instructions to add a Grid/Graph as a shortcut, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306. For more information on creating prompts, see the MicroStrategy Advanced Reporting Guide.
To re-create this example, create the following before beginning the procedure:
A filter definition prompt on Region A filter definition prompt on Call Center A report with Region and the Revenue metric, filtered by the Region prompt A report with Call Center and the Revenue metric, filtered by the Call Center prompt A document including both reports as datasets, with Region, Call Center, and the Revenue metric in the Layout area
1 Open a document containing at least one prompt in the Document Editor. To re-create the example, open the document including both reports as datasets.
767
Advanced Documents
2 From the Data menu, choose Prompt Ordering. The Prompt Ordering dialog box opens. 3 Select the prompt to modify and click the up or down arrows to change its order. 4 Once the prompts are in the correct order (for the example, the order is Region and Call Center), click OK to return to the Document Editor. When you execute the document, the prompts are displayed in the order selected.
Advanced Documents
5 Any duplicated prompts are eliminated. Each prompt is displayed only one time, and when it first occurs on this list of prompt.
If prompts are moved within the report filter after the report is first saved, the prompt order is not changed. The order that the prompts are initially saved is used for the default prompt order.
If the order of the reports in a document is changed, even after the document is first saved, the prompt order is affected. The prompts in the first dataset report are displayed to the user, and then the second, and so on.
You can define the incremental fetch options in both MicroStrategy Web and in Desktop, but incremental fetch is applied only when the
document is executed in Editable Mode, Interactive Mode, or Express Mode in MicroStrategy Web. Desktop does not apply incremental fetch to documents. The blocks of data are defined by the number of objects (the block size) to return at a certain level. If the document or layout is grouped, you can select any group as the level. If it is not, then the block size is applied to the Detail section. For example, each row in the Detail section of a document contains the Item attribute and several metrics. Incremental fetch is applied, with a block size
769
Advanced Documents
of ten. In Express Mode in MicroStrategy Web, only ten rows of items are displayed on a single page, as shown in the document sample below:
Notice that the bottom of the document contains page numbers, so that you can navigate to another page to display more information. The document has 36 pages in all. Group the document by Call Center. You can now apply incremental fetch at the level of Call Center. This time, define the block size as five. In Express Mode in MicroStrategy Web, select All for the grouping, and then the incremental fetch is employed. Data for five Call Centers is displayed on a single page. The following image shows only a portion of the first page of the
Advanced Documents
document, including the end of the first call center and the beginning of the next. Notice that the document now contains only three pages, not 36.
If the group is displayed as a single element only, that group cannot be used as the fetch level, since the document must be displayed with all the grouping elements. You can still apply incremental fetch to the document, but only to the detail section, not to the group. If the document contains another group, which does allow all elements to be displayed, you can apply incremental fetch using that other group. For more information about grouping options, see Grouping records in a document, page 260. or layout is not grouped, If the documentthe Detail section. incremental fetch can be applied only to You can also apply incremental fetch to a specific Grid/Graph. For more information, see Improving document performance in MicroStrategy Web: Incremental fetch on Grid/Graphs, page 772.
771
Advanced Documents
1 Open the document in the Document Editor. 2 If the document contains multiple layouts, select the layout to apply incremental fetch to. 3 From the Format menu, choose Document Properties. The Document Properties dialog box opens. 4 Select Incremental Fetch. 5 Select the Enable Incremental Fetch check box. 6 From the Fetch Level drop-down list, select the object to be counted for the incremental fetch level. If the document or layout is grouped, the groups are displayed in the drop-down list. Groups that are displayed as a single element only are not shown on this list. If the document or layout is not grouped or all the groups are displayed as single elements only, the only option is the Detail section.
7 Enter the Block Size, which is the number of objects (of the Fetch Level) that are returned in each block. 8 Click OK to return to the document. To see the results of the incremental fetch, run the document in MicroStrategy Web in Editable Mode, Interactive Mode, or Express Mode.
Advanced Documents
includes the grid portion of a Grid/Graph displayed as both a grid and a graph simultaneously.
This property applies only to the rows, not the columns, of the Grid/Graph.
You can define the incremental fetch options for Grid/Graphs in either MicroStrategy Web or in Desktop, but incremental fetch is applied only when the document is executed in Editable Mode, Interactive Mode, or Express Mode in MicroStrategy Web. Desktop does not apply incremental fetch to Grid/Graphs. The blocks of data are defined by the number of rows to return at a time. For example, a Grid/Graph on a document contains 360 rows. Incremental fetch is applied, with the number of rows per page set to 25. In MicroStrategy Web, only 25 rows are displayed on a single page of the Grid/Graph. Users can click the page numbers at the bottom of the screen to display more information. The document is shown below in Interactive Mode in MicroStrategy Web:
773
Advanced Documents
You can also apply incremental fetch to the entire document. For more information, see Improving document performance in MicroStrategy Web: Incremental fetch, page 769.
For background information on document sections, see Understanding and working with document sections, page 34. For instructions to group the document, see Grouping records in a document, page 260. For instructions on displaying individual grouping elements or all the elements, see Using page-by on a document, page 286 (page-by interactively displays groups on separate pages).
To apply incremental fetch to a Grid/Graph
1 Open a document in Design View in the Document Editor. 2 Right-click the Grid/Graph to apply incremental fetch to, and select Properties. The Properties dialog box opens. 3 Click the Advanced tab.
Advanced Documents
4 Select the Enable incremental fetch on grid check box. 5 Enter the Maximum number of rows per page. 6 Click OK to return to the document. To see the results of the incremental fetch, run the document in MicroStrategy Web in Editable Mode, Interactive Mode, or Express Mode.
Caching documents
A cache is the stored results of a document query that has already been executed. When the document is executed again, the system can quickly access the cache to display the data, rather than putting a load on the system to re-run the request to the data source. Enable document caching to generate the document only oncethe first time that you execute a document in a specific mode (such as Express Mode or Interactive Mode) in MicroStrategy Web. Subsequent document executions in the same mode use the cache. Disable document caching to submit the document query to your data warehouse every time that you execute the document in a different mode. define the Youcached onlydocument caching options in Desktop, but documents are when they are executed or exported in MicroStrategy Web. Desktop does not cache documents. The benefits of document caching include: Faster single-user response times. The ability to support more concurrent users accessing complex documents. Lower total memory and CPU consumption for the same workload.
You can use the default project-level which is set the Project Configuration Editor. Forbehavior instead, instructions,in information and see the MicroStrategy Project Design Guide. You can select which formats to cache. Formats include: Excel (when the document is exported to Excel in MicroStrategy Web)
Caching documents
775
Advanced Documents
HTML (when the document is exported to HTML View in MicroStrategy Web) PDF (when the document is exported to PDF in MicroStrategy Web) XML (when the documents mode is changed, as from Express Mode to Interactive Mode, in MicroStrategy Web)
By default, a cache is not created for every page-by combination that can be run, since that can use much of the memory allocated to caches. For more information, see Caching and page-by, selectors, and widgets, page 776.
To enable document caching
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Caching. 4 Select Enable document caching. 5 Select the formats to cache. 6 Choose whether to Create cache when page-by selections are modified. If this check box is selected, a new cache is created each time a user selects a different page, chooses a different selector item, or interacts with a widget. For more details on this type of caching, see Caching and page-by, selectors, and widgets, page 776. 7 Click OK to save your changes.
Advanced Documents
caches are also created when a different item is chosen in a selector or when a user interacts with a widget. For background information on these objects, see Using page-by on a document, page 286, Providing interactivity to users: selectors, page 418, and Chapter 6, Providing Flash Analysis and Interactivity: Widgets. To use document caching in this way, you: 1 Enable page-by caching before executing the document. 2 Select the page, item, or widget view that you want to cache. 3 Disable page-by caching. Detailed instructions follow.
To enable document caching for page-by Enable document caching
1 Open the document in Design View in the Document Editor. 2 From the Format menu, select Document Properties. The Document Properties dialog box opens. 3 Select Caching. 4 Select Enable document caching. 5 Select the formats to cache. 6 Select the Create cache when page-by selections are modified check box. 7 Click OK to return to the document. 8 Save the document.
Cache the information
9 Open the document in Interactive mode or Express mode in MicroStrategy Web. 10 Select the page, item, or widget view that you want to cache.
Caching documents
777
Advanced Documents
12 Open the document in Design View in the Document Editor. 13 From the Format menu, select Document Properties. The Document Properties dialog box opens. 14 Select Caching. 15 Clear the Create cache when page-by selections are modified check box. 16 Click OK to return to the document. 17 Save the document.
Advanced Documents
data (the metrics, reports, and other MicroStrategy objects) that will populate the document. When both are finished, the document is reconciled with the dataset reports. Out-of-the-box documents can be deployed to your project by reconciling the documents content to your own project objects. For example, you can use a document or dashboard from the MicroStrategy Tutorial project or any of the Analytical Modules in your own project.
Use the Document Editor to create the document to be reused across projects. For instructions to create a document, see Creating documents, page 22.
779
Advanced Documents
attribute form in the original is automatically mapped to an ID or DESC form in the replacement, but you can select another replacement attribute form, as long as it is an ID or DESC form. A custom attribute form in the original can be mapped to any custom attribute form in the replacement.
The original attribute in attribute element qualifications in thresholds and view filters is replaced by the replacement attribute, but attribute elements are not updated. After reconciliation, edit the threshold or view filter to ensure that the correct attribute form is used.
Advanced Documents
3 Import the document into the replacement project. The document is automatically checked to see if it needs to be reconciled. If it does, you are guided through the reconciliation process.
Prerequisites
You have created the document that will be used as the original document, following these requirements:
The document must be created in a project that was created with MicroStrategy version 8.0.1 or later. The document cannot contain derived metrics, derived elements, or drill maps.
To export the document, you must have browse and read access to the document. To import the document, you must have the Use Document Editor privilege, and browse and use access on all replacement objects.
To copy a document between projects Export the portable document from the original project
1 In MicroStrategy Desktop, log in to the original project (the project that contains the document to export). 2 Select the document to use as the original document. 3 From the Tools menu, select Export Document Template. The Browse for Folder dialog box opens. 4 Navigate to the folder to save the file in, name the file, and then click OK. Integrity checks are run to ensure that the document meets the prerequisite requirements. If the integrity checks fail, a message appears. Click OK to return to Desktop. The document is not exported. Review the prerequisite requirements listed above and edit the document so that it meets those requirements. If the document passes the integrity checks, the document, named document_name.pkg, is saved in the selected folder.
781
Advanced Documents
6 In MicroStrategy Desktop, log in to the replacement project (the project that you want to import the document to). 7 From the Tools menu, select Import Document Template. The Select a Package dialog box opens. 8 Navigate to and select the portable document to import. 9 Click Open. 10 The document is automatically reviewed to see if it needs reconciliation. If the document needs reconciliation, the Document Reconciliation Editor opens. A status message indicating how many replacement reports or objects need to be reconciled is displayed. Follow the Reconcile steps on page 782. If the document does not need reconciliation, the Document Reconciliation Editor opens with blank fields and a blank status message. One way that this can happen is if the document does not contain any dataset reports. Skip to the Save steps on page 784.
Reconcile
The Document Reconciliation Editor lists: The dataset reports in the original document The dataset objects on those reports How many replacement reports or objects need to be reconciled (the status message)
11 Map an original dataset report to a replacement dataset report by following these steps: a Click Select in the Replacement Report column of the original dataset report row. The Select a Report dialog box opens. b Navigate to and select the replacement dataset report.
Advanced Documents
Click Open. If the replacement dataset report does not match the original dataset report (for example, the original report contains two attributes but the replacement has only one), a message is displayed. Click OK, and select a different report. The Replacement Report column now displays the name of the replacement dataset report to map to, and the Replacement Objects column displays the objects on the replacement dataset report.
replacement If a suitableto use, withoutreport does not exist, you can create a new report closing the Document Reconciliation Editor. If the Select a Report dialog box is open, click Cancel to close it. Return to Desktop without closing the editor (for example, you can use ALT+TAB to select Desktop), and then create the report and save the report. Return to the Document Reconciliation Editor (for example, using ALT+TAB), and then begin mapping the replacement report again, at this step. 12 If an original dataset object exists in the replacement report, it is automatically mapped to that object. Objects are matched by GUID, then by name. If you want to change an automatic mapping or an object is not mapped, follow the steps below: a Select the replacement dataset object in the Replacement Objects column. Cells in the Replace With column that can be mapped to the replacement object are highlighted. (For example, if you select an attribute, all attribute cells are highlighted.) b Drag the replacement dataset object to the matching Replace With cell. For example, if Employee in the original and EE in the replacement are equivalent, drag Employee to EE. c Repeat these steps for each dataset object on the original dataset report.
13 ID and DESC attribute forms in the original are automatically mapped to ID or DESC forms in the replacement, but you can select another replacement attribute form, as long as it is an ID or DESC form. You can map a custom attribute form in the original to any custom attribute form in the replacement. If you want to change an automatic mapping or an attribute form is not mapped, follow the steps below: a Select the replacement attribute form in the Replacement Objects column. b Drag the replacement attribute to the matching Replace With cell. For example, if Employee Number in the original and EE# in the replacement are equivalent, drag Employee Number to EE#.
783
Advanced Documents
Repeat these steps for each attribute form on the original dataset report.
reconciliation in Attribute formthe documentsoccurs onlythiscertain cases, be depending on design, so step may not required. 14 Repeat these Reconcile steps until all original dataset reports, original dataset objects, and original attribute forms are mapped to the replacement. Once this is complete, the status message, which displays the number of reports or objects to be reconciled, disappears.
Save
15 Select Save from the File menu. 16 Navigate to the folder to save the document in, and then click OK. A message appears indicating the document was saved. 17 Click OK. The Document Reconciliation Editor closes, and you are returned to Desktop.
Review
18 After importing the document, review the resulting document to ensure that it works correctly. Follow the suggestions in Reviewing after reconciliation, page 780. 19 Save any changes to the document.
9
9.
Introduction
MicroStrategy Mobile is an application for mobile devices that allows analysts to view, refresh, and analyze MicroStrategy reports and Report Services documents. With MicroStrategy Mobile, you and other business users receive the same reports and documents on your Apple iPhone or iPad, as well as on your Android devices, as you do in MicroStrategy Web, MicroStrategy Office, or MicroStrategy Desktop. You can then analyze the reports and documents on your mobile device by sorting data, repositioning objects, grouping data by page, and more. This chapter discusses features specific to documents created for mobile devices, which include: Widgets for mobile devices. A widget is a Flash-based display of the results of a dataset report, allowing users to visualize data in different ways than traditional reports displayed as Grid/Graphs do. Widgets are sophisticated visualization techniques that can combine with rich interactivity to enable users to understand their data more effectively. A widget can be displayed in a document on a mobile device, and a report can be displayed as a widget on a mobile device. For lists of the widgets that can be displayed on an iPhone, iPad, or Android device, as well as examples, see Widgets for mobile devices, page 792.
785
Links that interact with applications installed with mobile devices, such as email or text messaging. For example, a document can send addresses to Google Maps for directions or can link to a video. For examples and more details, see Opening mobile applications in documents, page 815. Links to reports and other documents. A link lets the user execute another document or report (the target) from a document (the source), and to pass parameters to answer any prompts that are in the target. For examples and more details, see Linking to documents and reports from a document displayed on a mobile device, page 818. Formatting documents specifically for mobile devices, to ensure that the documents display correctly on mobile devices. You can use:
Display properties for the mobile device, such as optimizing the layout for display on a mobile device, and whether or not the page-by bar is displayed. For descriptions of these properties, see Formatting documents for display on mobile devices, page 820. Templates for the iPhone and iPad. These templates help you design a document sized correctly for display on the iPhone or iPad. For more information, see Document templates for iPhone and iPad, page 828.
overview of the various Mobile This chapter provides aninstructions to create documentsfeatures, including examples. For for MicroStrategy Mobile, including procedures to create widgets, links, and the other features, see the MicroStrategy Mobile Design and Administration Guide. For instructions to work with documents in Mobile, see the MicroStrategy Mobile Analyst Guide.
Enhancing performance, page 790 Designing documents for an Android device, page 790
When building a document for the iPhone or iPad, one factor to consider is the size of the devices screen: The iPad has a screen size of 1024x768 pixels, of which 1024x704 pixels are available to display dashboard content. Creating a dashboard of exactly this size will allow all content to be displayed on one screen. If more data needs to be displayed than will fit on one screen, consider using panel stacks to arrange the data in a way that the user can navigate by swiping or using selectors. (See Layering data on dashboards: panels and panel stacks, page 391.) Consider using a predesigned template when creating iPhone or iPad documents. iPhone and iPad templates allow you to start with a predefined structure when you create a new document, and are designed to take the size of the device screen into account. (See Creating a document using another document as a template, page 27.)
Best practices for designing documents for mobile devices
787
Create dashboards with only the necessary attributes or metrics that need to be displayed to improve performance times when viewing a document on a mobile device. Reports with fewer metrics also require less scrolling, and are easier for users to read.
See also the general best practices outlined in Best practices for designing effective documents, page 15 and Best practices for dashboarding, page 381.
Make sure that interactive objects and links in a document are not too small, or too close together for a user to select when rendered on the iPhone screen. In general, objects the user can click on should be at least 40 pixels wide and 40 pixels tall.
Widgets: A widget is a type of control that presents data in a visual and interactive way. For example, you can insert a widget into a document to let users view data in a line graph. Users can then change their view of the data by selecting the time period over which the data is displayed. (See Widgets for mobile devices, page 792.) Group-By: You can choose to group large amounts of data into logical subsets. Users can then choose the subsets of the data that they want to view on the mobile device. (See Grouping records in a document, page 260 and Using page-by on a document, page 286.) Prompts: A prompt is a question that the system presents to a user when a report is executed. Data is displayed on the report depending on what answers the user provides. Consider creating prompts specifically designed for use on a mobile device, such as the Slider, Stepper, Wheel, or Geo Location prompts. (See the Advanced Reporting Guide.) Images: You can add dynamic images to a document. Dynamic images allow different images to be displayed depending on the data in the dataset. You can use attributes and metrics to determine the file name of
2011 MicroStrategy, Inc.
the image. For example, a document is paged by Region. For each region, a map for that particular region must be displayed. (See Using dynamic images, page 133.)
Enhancing readability
The following best practices list ways to enhance the readability of documents displayed on a mobile device: You can choose to optimize a document layout for display in a mobile device application. This prevents users from performing actions such as zooming in or out of the document, and allows you to better control the users interaction with the document. (See Formatting documents for display on mobile devices, page 820.) You can specify how to display documents on mobile devices by creating Mobile Views. Mobile Views allow you to quickly and easily determine how the elements of a document are displayed when the mobile device is rotated, or when the document is displayed on mobile devices with different screen sizes. For a more detailed description, see Displaying documents when the mobile device is rotated: Mobile Views, page 830; for steps to create Mobile Views, see the MicroStrategy Web Help. When designing a grid report that will be displayed as a Grid/Graph:
Add padding around data cells to make the data more legible. Use contrasting colors for the data and the background of the grid report. When using thresholds, consider using colors in conjunction with symbols. This can help users who have difficulty distinguishing colors understand the data.
When displaying graphs on a mobile device, tooltips can be displayed to provide additional information about data points in the graph. You must enable tooltips using the Properties dialog box before they can be displayed. Maximize the graph's size by moving the legend below the graph. If your Y graph axis displays values in the thousands or millions, you can assign axis abbreviation to avoid clutter on the graph axis. By default, when users view a graph in a portrait or landscape view by rotating the mobile device, the graph does not fill the entire screen. To
789
make sure the graph fills the entire screen in both views, create a document with two layouts, one for each orientation, then add the graph and position it to fill the screen. (See Creating multi-layout documents, page 714 and Formatting documents for display on mobile devices, page 820.)
For general information about designing reports, see the Advanced MicroStrategy Basic Reporting Guide and MicroStrategy
Reporting Guide. You can enable a panel stack to be displayed as an Information Window. When a user selects an item in a selector that targets the panel stack, an Information Window is displayed, providing additional information on the selector item. (See Defining Information Windows for an iPad document, page 824.)
Enhancing performance
The following suggestions can enhance the performance of reports or documents displayed on mobile devices: Use Intelligent Cubes to provide historical or trend data on a mobile device. For more information on Intelligent Cubes, see the Advanced Reporting Guide. Group data in a document to let users display subsets of data instead of prompts. Accessing a cached document or report with multiple pages is faster than changing prompt answers and resubmitting the job to the Intelligence Server.
By default, when the document is displayed on an Android device, any area not used to display by the document will be rendered as the same color as the background color defined for the document. To ensure a smooth color transition from the edges of the document to the remainder of the mobile device's screen, consider one of the following:
Set the document's background color to match the background color of the rest of the document content. For steps, see Formatting the border or background of a document or layout, page 213. Specify an image watermark for the document layout. For steps, see Adding watermarks to documents, page 217.
You can display a document on an Android device using a black background color to fill any space on the screen that is not taken up by the document, similar to how documents are displayed on the iPhone and iPad. For instructions, see the MicroStrategy Mobile Design and Administration Guide or the MicroStrategy Web Help. You can choose to display documents using tabs, or allow users to change between layouts in a document with a horizontal swipe gesture using the Layout bar style option. The following graph types are supported on Android devices:
Vertical Area Horizontal Area Vertical Bar Horizontal Bar Vertical Line Horizontal Line Pie Scatter Bubble Gauges Pareto
791
You can add selectors to a document to allow users to change the data displayed in a grid, panel stack, or text field. For general information about selectors, see Providing interactivity to users: selectors, page 418. The following selector types are supported on Android devices:
Drop-down List Redo Button Check Boxes Link Bar Button Bar
Multimedia widget, which displays a list of available files, such as text files, PDF files, and images, that users can download and view (see the MicroStrategy Mobile Design and Administration Guide for instructions to create a Multimedia widget) Photo Uploader widget, which allows users to upload images from mobile device by taking a new image or using an existing image on their mobile device (see the MicroStrategy Mobile Design and Administration Guide for instructions to create a Photo Uploader widget) RSS Reader widget, which displays and updates RSS (Really Simple Syndication) feeds (see Defining an RSS Reader widget, page 588 for an example and instructions to create an RSS Reader widget; see Formatting RSS Reader widgets for the iPhone, page 810 for a list of iPhone display options, including how news items are displayed, which URLs are used to provide RSS feeds for the widget, and so on) Time Series widget, which displays data for a specific period of time in a line graph (see Displaying data trends on a mobile device: Time Series widget, page 814)
All other widgets display as Grid/Graphs on the iPhone. For information on other widgets, see Chapter 6, Providing Flash Analysis and Interactivity: Widgets. each document layout. One iPhone widget can be displayed oneach iPhone widget in a To display multiple iPhone widgets, place separate layout. For instructions to create multiple layouts, see Creating multi-layout documents, page 714. The following widgets can be displayed on an iPad that has the MicroStrategy Mobile application: Data Cloud widget, which displays a list of attribute elements displayed in various sizes to depict the differences in metric values between the elements (see Defining a Data Cloud widget, page 512) Date Selection widget, which displays as a interactive event calendar on the iPad (see Displaying an interactive event calendar on an iPad: Date Selection widget, page 795) Graph Matrix widget, which displays data using a variety of graph styles, such as the line graph, bubble graph, or grid (see Displaying data in a graph on an iPad: Graph Matrix visualization, page 797) a Graph Matrix widget, you create a Visual Insight To createwith a Graph matrix visualization, then convert the analysis analysis to a document.
793
Heat Map widget, which allows users to quickly grasp the state and impact of a large number of variables at one time (see Displaying data in a Heat Map widget on an iPad, page 799) Image Viewer widget, which displays images and image descriptions, and allows users to zoom in and out of the images, which can be uploaded by a Photo Uploader widget or images stored in a public location (see the MicroStrategy Mobile Design and Administration Guide for instructions to create an Image Viewer widget) Map widget, which allows users to search and view information for locations on a map (see Displaying geographical data on a mobile device: Map widget, page 801) Multimedia widget, which displays a list of available files, such as text files, PDF files, and images, that users can download and view (see the MicroStrategy Mobile Design and Administration Guide for instructions to create a Multimedia widget) Photo Uploader widget, which allows users to upload images from mobile device by taking a new image or using an existing image on their mobile device (see the MicroStrategy Mobile Design and Administration Guide for instructions to create a Photo Uploader widget) Timeline widget, which allows users to track changes in the status of multiple business assets, as well as important events affecting each asset (see Displaying a Timeline widget on an iPad, page 812) Time Series widget, which displays data for a specific period of time in a line graph (see Displaying data trends on a mobile device: Time Series widget, page 814)
All other widgets display as Grid/Graphs on the iPad. For information on other widgets, see Chapter 6, Providing Flash Analysis and Interactivity: Widgets. The following widgets can be displayed on an Android device that has the MicroStrategy Mobile application: Image Viewer widget, which displays images and image descriptions, and allows users to zoom in and out of the images, which can be uploaded by a Photo Uploader widget or images stored in a public location (see the MicroStrategy Mobile Design and Administration Guide for instructions to create an Image Viewer widget) Interactive Grid widget, which displays data in a compact tabular layout (see Displaying data in rows and columns on a mobile device: Interactive Grid widget, page 799)
Photo Uploader widget, which allows users to upload images from mobile device by taking a new image or using an existing image on their mobile device (see the MicroStrategy Mobile Design and Administration Guide for instructions to create Photo Uploader widget) Time Series widget, which displays data for a specific period of time in a line graph (see Displaying data trends on a mobile device: Time Series widget, page 814)
requirements to support the For information on theto the MicroStrategy Readme.Map widget on Android devices, refer Widgets for mobile devices display as Grid/Graphs in Flash Mode in MicroStrategy Web. You can determine how the widgets display in other MicroStrategy Web modes, and when exported to PDF and Excel. For more information on the alternative display setting, see Determining how a widget is displayed, page 601. You can add a widget to a document or create a report that displays as one of these widgets. For instructions, see the MicroStrategy Mobile Design and Administration Guide. You can determine whether to size a widget in a document layout to take up the full screen when displayed on an iPhone or Android device, or display all grids, graphs, or widgets in the layout, using the Full Screen setting in the Properties and Formatting dialog box. For a list of the widget settings available in the Properties and Formatting dialog box, see the MicroStrategy Web Help.
795
rated PG-13 in yellow, and movies rated R in red, as shown in the image below.
You can choose to automatically assign a color to the each category, or assign a specific color to each category. For example, if colors are automatically assigned and the movies displayed in the calendar above are filtered to only display movies with an R-rating, R-rated movies may be displayed in green instead of red. Instead, you can define the color to display for each category, to make sure R-rated movies are always displayed in red, PG-13 movies are always displayed in yellow, and so on. A Date Selection widget displays by default as: An interactive event calendar on the iPad A Date Selection widget in Flash Mode, Interactive Mode, and Express Mode in MicroStrategy Web (see Creating a Date Selection widget, page 650 for an example)
You can change how the widget is displayed on the iPad, and in different display modes when viewed in MicroStrategy Web. For example, you can choose to display the widget as a grid or graph report when viewed on the mobile device, or as a placeholder when viewed in Express Mode. For steps, see Determining how a widget is displayed, page 601. You can have the widget display additional information about an event in an Information Window when a user taps the event on the mobile device.
You can add a Date Selection widget to a document; for instructions, see the MicroStrategy Mobile Design and Administration Guide.
797
separate graph for the revenue and profit data for each product category by quarter.
To create a Graph Matrix widget to display on an iPad with MicroStrategy Mobile, you create a Visual Insight analysis with a Graph Matrix visualization, then convert the analysis to a document. For an overview of analyses, see About Visual Insight: Analyses, page 13. For instructions to create an analysis, see the MicroStrategy Web Help.
In a Heat Map widget: The size of each rectangle represents its relative weight. The color of each rectangle represents its relative value. Large areas (displayed with thicker borders) represent groups of related data. Smaller rectangles represent individual elements.
For instructions to create a Heat Map widget for the iPad, see the MicroStrategy Mobile Design and Administration Guide.
Displaying data in rows and columns on a mobile device: Interactive Grid widget
The Interactive Grid widget allows you to display data in a compact tabular layout on an iPhone, iPad, or Android device with MicroStrategy Mobile. Attributes and metric values are displayed in columns in the widget's grid, as
799
shown below. If a column contains more than one metric, users can toggle the metric displayed in the column to customize their display.
An Interactive Grid widget displays as a: Widget on a mobile device Grid or graph report in Flash Mode in MicroStrategy Web Grid or graph report or a placeholder, or can be hidden, in Interactive Mode and Express Mode (DHTML) in MicroStrategy Web, PDF View in Desktop, and when exported to PDF or Excel. For more information on the alternative display setting, see Determining how a widget is displayed, page 601.
You can display a report as an Interactive Grid widget or add an Interactive Grid widget to a document. The widget is displayed when the report or document is viewed on a mobile device with MicroStrategy Mobile. For instructions to create an Interactive Grid widget, see the MicroStrategy Mobile Design and Administration Guide. You can allow users to directly edit the data displayed in the interactive grid using a mobile device. For example, you create a widget to display a list of time off requests. A user can tap a button next to each request to display a check mark for approved requests and an X for rejected requests, then submit his changes to his data source. To enable users to edit the data displayed in the widget, you must link the widget's Grid/Graph to a Transaction Services report. For detailed steps to link a grid in a document to a Transaction Services report, see Transaction-enabled documents: Interacting with data sources, page 754.
800 Widgets for mobile devices
You can allow users to perform an action when they tap an attribute or metric in the widget on a mobile device. For example, several customer regions are displayed in an Interactive Grid widget. The Customer Region attribute is enabled as a selector and targets a panel stack in the document. You can allow users to tap the name of a customer region to display data in the panel stack only for the selected region. To perform an action when the user taps a value on a mobile device, you must enable the action on the widget's Grid/Graph in Web. Only one action can be performed for each attribute or metric displayed in the widget. If more than one action is enabled for an attribute or metric, the action with the highest priority is performed. You can enable the following actions for a value in the widget, in order of highest to lowest priority: Allow users to edit data for the attribute or metric, by displaying the attribute or metric as an input object control in a Transaction Services-enabled document. For detailed steps, see Transaction-enabled documents: Interacting with data sources, page 754. Use an attribute or metric on the widget's Grid/Graph as a selector. For steps, see Enabling Grid/Graphs as selectors to control other Grid/Graphs, page 486. Add a link to a report or document. For steps, see the MicroStrategy Mobile Design and Administration Guide. Allow drilling on an attribute element in the Grid/Graph. For steps, see Enabling drilling on Grid/Graphs, page 349.
You can select a default action to perform for attributes and metrics that have no action defined on the widget's Grid/Graph, by selecting an attribute that already has an action defined for it. This action will automatically be performed when a user taps the value in the widget. Steps to select a default action for the widget can be found in the MicroStrategy Mobile Design and Administration Guide.
801
For example, in the image below, stores are displayed as markers in the Map widget. When a user selects a marker, an Information Window for the store is displayed, with the store's name, address, and distance from the current location of the user.
You can use static images as map markers in the widget, or display the map markers as dynamic bubbles. The size of each dynamic bubble is automatically determined based on the value of the metric on the columns of the widget, with the largest bubbles being displayed for the largest metric values. You can format a Map widget to: Define a custom Information Window to display in the widget, instead of displaying the default Information Window. For examples of custom and default Information Windows, see Displaying Information Windows for Map widgets, page 805. Enable a list of locations in the widget (called a List layout), and use it to display information for each location in the list. For an example, see Displaying a list of locations in a Map widget, page 807.
Display lines representing relationships between locations in the widget when displayed on the iPhone or iPad, such as flight connections between airports or delivery connections between shipping centers. For steps, see Using lines to display relationships between locations in Map widgets, page 807.
The following table describes how Map widgets can be displayed in different MicroStrategy Web modes and Desktop views. For instructions to change the display of widgets, see Determining how a widget is displayed, page 601.
View/Mode Design View/Mode Editable Mode Flash Mode Express and Interactive Mode All Desktop views except Design Exported to PDF or Excel iPhone or iPad Display Options Empty grid or graph report Grid or graph report Grid or graph report Placeholder Hidden Widget Grid or graph report
You can display a report as a Map widget or add a Map widget to a document. The widget is displayed as a map when the report or document is viewed on a mobile device with MicroStrategy Mobile. The report must meet certain requirements to display correctly. For instructions to define a report to display as a Map widget and to add a Map widget to a document, including the report requirements, see the MicroStrategy Mobile Design and Administration Guide. After you create the Map widget, use MicroStrategy Web to format the Map widget, including displaying lines between map markers (see Using lines to display relationships between locations in Map widgets, page 807 for an example) and specifying the total number of map markers that can be displayed at one time. For widget formatting instructions, see the MicroStrategy Mobile Design and Administration Guide.
803
geographical location, see Using the Geo Location prompt in a Map widget, page 809.
You can create and format a custom Information Window to display, as shown in the image below:
To create a custom Information Window for: A Map widget displayed on the iPhone, you must create a document layout and enable the layout to be displayed as an Information Window. Using MicroStrategy Web, you specify the layout as the Information Window in the Map widget's properties. Layouts enabled as an Information Window are not displayed with the other layouts in a
805
document, and are only displayed as Information Windows on the iPhone. For instructions, see the MicroStrategy Mobile Design and Administration Guide. If you define an Information Window in a separate document, you can import the document when creating a new layout. This allows you to reuse the Information Window layout in multiple documents. For instructions on importing layouts, see Importing layouts into a document, page 725. To define an Information Window for a Map widget displayed on the iPad, you must create a panel stack, and enable the location attribute on the rows of the widget's Grid/Graph as a selector. For instructions, see MicroStrategy Mobile Design and Administration Guide.
Once you have created the layout or panel stack to use to display the Information Window, you can add content to this layout or panel stack to be displayed in the widget. You can add any controls to the layout or panel stack, including text fields, Grid/Graphs, images, shapes, and so on. For an overview of controls that can be added, see Creating documents, page 22. The container that displays the Information Window on the iPhone is 1.5 inches wide. Its height is defined to fit to the content, with a maximum height of 1 inch. The following are suggestions for controls to add to an Information Window: Images, such as corporate logos or buttons. For instructions, see Inserting images in a document, page 130. Data fields to display information about attributes and metrics in the documents, or other details. For example, you can add the {Store@Name} data field to an Information Window. When the store location is selected in the widget, as shown in the image above, the Information Window displays the name of the store. For instructions, see Adding data fields to a document, page 53. Links to mobile device applications, such as a link to call the phone number of a selected store. For more details, see Opening mobile applications in documents, page 815. Links to other documents and reports. For more details, see Linking to documents and reports from a document displayed on a mobile device, page 818.
807
representing flights with many passengers, and thin lines representing flights with few passengers.
To display lines between markers in a Map widget in a document, you must provide a total of two Grid/Graphs, as follows: A Grid/Graph used to display the Map widget: This Grid/Graph contains the attributes and metrics used to display the map markers in the widget. A Grid/Graph used to display lines in the widget: This includes the metrics used to determine the color and thickness of lines between map markers, and attributes containing the IDs of the starting and ending locations of each line. The IDs provided must correspond to the IDs used to identify map marker locations in the first Grid/Graph.
When the report is viewed on a mobile device with MicroStrategy Mobile, the user can choose to display only stores within a ten-mile radius, as shown below:
If the report is displayed as a Map widget, only map markers for stores within a ten-mile radius are displayed, as shown below:
For instructions to filter data based on the distance from a point of interest to a mobile device, see the MicroStrategy Mobile Design and Administration Guide.
809
display. You can choose to display only those map markers that are in the mobile devices current state. a prompt directly to a document; You cannot addcustom groups, and metrics can beonly attributes,fields consolidations, used as data from the dataset. Prompts on the dataset reports are displayed for users to answer. For more information on prompts in documents, see Using prompts in documents, page 766. You can: Define value prompts with the display style set to Geo Location to automatically use the current longitude and latitude of the mobile device to filter the widgets results. You must define two value prompts, one for latitude and one for longitude. The prompts are then automatically answered and do not require an answer from the user. Define an attribute element prompt with the display style set to Geo Location to filter an attribute element list using the current geographical location.
Geo Location prompts are created in MicroStrategy Web. For instructions, see the MicroStrategy Web Help or the MicroStrategy Mobile Design and Administration Guide. geographical location features of the To use thehave location data stored in your dataGeo Locationa prompt, you must source. For procedure to develop a list of geographical locations, see the MicroStrategy Project Design Guide.
first image), then select an item to display from the list (as shown in the second image).
For instructions to create an RSS Reader widget, see Defining an RSS Reader widget, page 588.
811
You can format how the widget is displayed when viewed on the iPhone. For example, you can change the color in which the titles of RSS feeds are displayed, or the background color used for news items that are selected in the widget. You use MicroStrategy Web to format the RSS Reader widget to display on the iPhone. The following list suggests formatting ideas; for procedures, see the MicroStrategy Web Help. Color of the RSS feeds' titles Background and border color of the widget Background and font color of news items Background and font color for news items when a user hovers the cursor over the item Background and font color for selected news items Font color for news items that have been read
year. Metric values are displayed in the rightmost column of the widget, with a separate value displayed for each asset.
You can choose to display a number badge to represent periods in the timeline in which more than one event happened to an asset. For example, if an airplane's lease ran out in Q1 of 2010 and it was also sold during that time, you can design the widget to display a badge containing the number 2 instead of an event icon, as shown in the image above. You can choose to display an Information Window with additional information when a user taps the section of a timeline for a specific asset and quarter, or the name of an asset in the list of assets. For instructions to create a Timeline widget, including steps to define an Information Window for the widget, see the MicroStrategy Mobile Design and Administration Guide or the MicroStrategy Web Help.
813
You can configure the Time Series widget to provide data across multiple time intervals. For example, in the image above, data is displayed for a six-month time period. However, the widget can also display data for one day, one month, or several years. You can add intervals to a widget by configuring the widget's properties. The number of data points displayed in a Time Series widget is determined by the maximum number of rows displayed in the report or Grid/Graph on which it is based. number of rows Increasing thewhen the report orthat can be displayed may affect performance document is displayed. A Time Series widget displays as a: Widget on a mobile device with MicroStrategy Mobile Grid or graph report in Flash Mode in MicroStrategy Web
Grid or graph report or a placeholder, or can be hidden, in Interactive Mode and Express Mode (DHTML) in MicroStrategy Web, PDF View in Desktop, and when exported to PDF or Excel. For more information on the alternative display setting, see Determining how a widget is displayed, page 601.
You can display a report as a Time Series widget or add a Time Series widget to a document. The widget is displayed when the document is viewed on a mobile device with MicroStrategy Mobile. For instructions to create a Time Series widget, see the MicroStrategy Mobile Design and Administration Guide.
Only the email and maps applications are available on the iPad.
To allow users to open a mobile device application in a document, you create a hyperlink in the document. A hyperlink connects a text field or an image to a web page (the target). When the document is viewed on the mobile device , the user can click the control to navigate to the target. For example, you create a document for the regional managers for a chain of stores. This document contains information about each of the stores in the managers region. The information includes the stores address, phone number, the store managers email address, its inventory figures, and so on. When the regional manager views this document on his iPhone, he can click a link to: View a map of the stores location and get directions from his present location
815
When you create a hyperlink to open a mobile device application, you must use the syntax in the table below. Two examples are included for most of the hyperlinks. The first example replaces the italicized variables in the syntax with specific, static text, while the second replaces it with an attribute, so that the hyperlink can change according to the data in your document.
To Email Use This Syntax <a href="mailto:EmailAddress">Name</a> Examples: <a href="mailto:jdoe@example.com">John Doe</a> <a href="mailto:{StoreMgrEmail}">{StoreMgr}</a> where StoreMgrEmail and StoreMgr are attributes <a href="mailto:{Store@StoreMgrEmail}">{Store@StoreMgr}</a> where StoreMgrEmail and StoreMgr are attribute forms of the Store attribute <a href=mailto:EmailAddress?cc=EmailAddress&subject=SubjectLine &body=Message>Text</a> Example: <a href=mailto:jdoe@example.com?cc=msmith@example.com&subject=Greetings %20from%20MicroStrategy!&body=I%20have%20reviewed%20your%20store's%20 results%20and%20have%20the%20following%20feedback%20for%20you:>Contact John Doe</a>
Use This Syntax <a href="tel:PhoneNumber">PhoneNumber</a> Examples: <a href="tel:1-555-555-5555">1-555-555-5555</a> <a href="tel:{StorePhone}">{StorePhone}</a> where StorePhone is an attribute <a href="sms:SMSNumber">Text</a> Examples: <a href="sms:1-555-555-5555">Ill be there soon</a> <a href="sms:{MgrPhone}">New Message</a> where MgrPhone is an attribute <a href="http://maps.google.com/maps?q=City">City</a> Examples: <a href="http://maps.google.com/maps?q=Chicago">Chicago</a> <a href="http://maps.google.com/maps?q={CustomerCity}">{CustomerCity}</a> where CustomerCity is an attribute <a href="http://maps.google.com/maps?daddr=Destination&saddr=Start">Text</a> Examples: <a href="http://maps.google.com/maps?daddr=Washington+,DC&saddr=Chicago"> Directions</a> <a href="http://maps.google.com/maps?daddr={CustomerAddress}&saddr= {StoreAddress}">Directions from {StoreName} to {CustomerName} location</a> where CustomerAddress, StoreAddress, StoreName, CustomerName are attributes <a href="http://WebURL" >Text/Image</a> Example: <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum ?i=?id=375385132"> <img height="15" width="61" alt="Tech News Today" src="http://ax.phobos.apple.com.edgesuite.net/images/badgeitunes61x15dark.gif"> </img> </a>
Open a video
Link Editor are Links created using thefor iPhone, exceptnot supported in in: MicroStrategy Mobile for links created A report displayed on an iPhone A report displayed as an Interactive Grid widget on the iPhone An Interactive Grid widget on the iPhone
You must use the hyperlink properties to define links to mobile device applications. For instructions to create links to mobile device applications, see the MicroStrategy Mobile Design and Administration Guide.
817
Examples of links created with the object ID and link syntax can be found in Examples of link URLs created manually, page 945. Note that these examples are displayed in MicroStrategy Web, but provide a similar experience to linked documents used in MicroStrategy Mobile. Once you have created a link to execute a report or document, you can add parameters to the URL to perform additional tasks, such as providing answers for prompts in the linked document, or specifying which layout to display. You can use links to do the following on an iPhone or iPad: Execute a report, specifying the page-by, prompt answers, and report view (grid, graph, or both grid and graph) Execute a document, specifying the layout, grouping, and prompt answers Reprompt a report or document
818 Linking to documents and reports from a document displayed on a mobile device
You can use links to do the following on an Android device: Execute a report, specifying whether it is displayed as a grid, a graph, or both a grid and graph Execute a document Run a report or document from a different project or server
If you add a link to a text field, the user will only be able to open the link by selecting the link text on the mobile device. To create a link with a larger area that is easier to select, you can define a link that includes both the text and the area around it, or create an image button that users can select. To do this, you can: Create an image to use as the button and add a link to it. Insert a transparent image into the document, then enlarge and/or position it to cover the desired link area. Add a link to the transparent image. The user can then select any area covered by the image to open the link. A sample transparent image is located by default in Program Files\MicroStrategy\Intelligence Server\ images\1ptrans.gif.
To ensure that the area of the link is large enough to recognize a user selecting it, make sure it has a height and width of at least 40 pixels. For instructions to create a link for mobile devices, see the MicroStrategy Mobile Design and Administration Guide or the MicroStrategy Web Help.
819
Display the Help screen Display the Home screen Display the Shared Library Display the Reports screen Display the Status screen Display the Settings screen Display a specific Information Window Display a selection screen that allows you to specify the element to use to group data Display the Prompt Resolution screen Return to the previously viewed page Display a web page in the internal web browser By default, links to web pages open in the Safari web browser. You can choose to open the link in the internal web browser instead.
You can create a link to do the following on an Android device: Display a specific Information Window Specify the group-by element to use to group data
when the selector was created. If the selector is docked, then it displays as a selector bar at the bottom of the target panel stack. For an example, see Docking a selector on iPad documents, page 822. For a specific panel stack, for iPads only.
Panels on a panel stack can be switched with a horizontal swipe on the iPad. By default, they are switched instead with panel stack selectors such as buttons and links. For a more detailed description, including the impact on the panel stacks display in MicroStrategy Web, see Allowing panel change with a horizontal swipe on iPad documents, page 823. A panel stack can be displayed as an Information Window, which provides additional information about an object. In this case, the object is in a Grid/Graph used as a selector. When an iPad user taps the object in the Grid/Graph, the Information Window is displayed as a tooltip. Information Windows are also displayed in Express Mode and Flash Mode in MicroStrategy Web. For an example, see Defining Information Windows for an iPad document, page 824.
For the iPhone, iPad, and Android devices, you can: Specify the orientation of the document layout (portrait or landscape) Optimize the document layout for display in a micro application Display or hide the page-by bar Display or hide the Filter button, which allows users to change their prompt answers after a document has been executed See Formatting layouts for display on mobile devices, page 826 for more detailed descriptions of each of these options.
For the iPad, you can specify whether or not to allow two-finger swipes to page through the document. For the iPhone or Android, the layout can also be used as an Information Window for a Map widget. An Information Window, which provides additional details about a location, is displayed when a user selects a map marker in a Map widget. For an example of the Information Window, see Displaying Information Windows for Map widgets, page 805.
If the document contains only one layout, the layout properties apply to the whole document.
2011 MicroStrategy, Inc. Formatting documents for display on mobile devices
821
For the entire document, for the iPhone only. These properties determine the layout bar style and position, and whether or not tooltips are displayed. See Formatting documents for display on iPhones, page 827 for more detailed descriptions, including an example of the layout bar.
You can also create a document using an iPhone or iPad document template. These templates help you design a document sized for display on the iPhone or iPad. For more information on these templates, see Document templates for iPhone and iPad, page 828.
This property applies only to iPad. A row of circles, each representing a panel, is displayed in the center of the selector. The current panel is marked with a dark circle. The circle in the center of the selector has been tapped, to display a preview of the corresponding panel. To view that panel, tap the white circle. To scroll through previews of all the panels, drag your finger along the circles. You can preview all the panels, by tapping the Zoom Out icon on the bottom-right of the panel stack. The current panel zooms out, and a preview of the panels is displayed. Swipe your finger left or right to scroll through the previews. To view a panel, tap its preview. The panel maximizes to fill the panel stack completely. This property applies only to iPads that have the MicroStrategy Mobile application. For instructions to format a selector as a docked selector, see the MicroStrategy Mobile Design and Administration Guide. addition, switch Inhorizontal MicroStrategy Mobile for iPad lets you changepanelsawith with a swipe, as described in Allowing panel horizontal swipe on iPad documents, page 823.
823
example of the arrows, and information on replacing them, see Panel selector arrows on the title bar, page 402. MicroStrategy Mobile In addition,docked selector displaysfor iPad lets you dock a panel of selector. A as a selector bar at the bottom the target panel stack. For an example of a docked selector, see Docking a selector on iPad documents, page 822.
In this example, the Region column in the grid is used as a selector. When a user taps an element in the column, the Information Window appears.
The Information Window displays on iPads that have the MicroStrategy Mobile application, and in Express Mode and Flash Mode in MicroStrategy Web. The Information Window shown below is displayed in Express Mode:
In other MicroStrategy Web modes, the Information Window is displayed as a panel stack in the location that you added it to the document, not as a tooltip over the Grid/Graph. The Information Window is still interactive, controlled by the Grid/Graph. The following are suggestions for controls to add to an Information Window: Images, such as corporate logos or buttons. For instructions to add images to a document, see Inserting images in a document, page 130. Data fields to display information about attributes and metrics in the documents, or other details. For example, you can add the {Store@Name} data field to an Information Window. When the store location is selected in the widget, the Information Window displays the name of the store. For instructions to add data fields to a document, see Adding data fields to a document, page 53. Links to iPhone or iPad applications, such as a link to call the phone number of a selected store location. For steps to add a link to an iPhone or iPad application, see Opening mobile applications in documents, page 815. Links to other reports or documents. For steps, see Linking to documents and reports from a document displayed on a mobile device, page 818.
825
If the document contains only one layout, the layout properties apply to the whole document.
For instructions, see the MicroStrategy Mobile Design and Administration Guide.
Tabs: Displays the layout bar as selectable tabs. Swipe: Displays the layout bar in the location set in the Layout bar position. Users can swipe between pages or select an option in the layout bar to display a report or document on an iPhone.
Layout bar position: Determines where the layout bar is displayed on an iPhone. This option is only available if the Layout bar style is set to Swipe. The positions include:
Top: Displays the layout bar at the top of the iPhone. Bottom: Displays the layout bar at the bottom of the iPhone.
Enable graph tooltips: Determines whether tooltips are displayed in documents on the iPhone.
827
The iPhone document below contains multiple layouts. The layout bar is displayed as selectable tabs.
Only one document section is displayed Width = 6.6 inches Height = 9.6 inches, which includes room for the iPhone status bar Supported Orientations: Portrait only Enable Graph tooltips: Yes
iPhone Landscape
Only one document section is displayed Width = 10 inches (the iPhone status bar is not displayed in landscape view) Height = 6.6 inches Supported Orientations: Landscape only Enable Graph tooltips: Yes
The iPad templates listed below help you create documents that are correctly sized for display on the iPad: iPad Portrait
Only one document section is displayed Width = 8 inches Height = 10.2 inches, which includes room for the iPad status bar Supported Orientations: Portrait only
iPad Landscape
Only one document section is displayed Width = 10.67 inches Height = 8 inches Supported Orientations: Landscape only
When Optimize Layout for Micro Application is selected, users are prevented from performing actions such as zooming in or out of the document. This allows you to better control the users experience and interaction with the document. For details on the other iPhone and iPad properties listed above, see Formatting layouts for display on mobile
829
devices, page 826. For background information on templates, see Creating a document using another document as a template, page 27.
Aside from positioning, size, and other formatting options described below, controls in the document keep the same basic settings when displayed in different Mobile Views. For example, a selector containing a list of regions targets a graph displaying revenue data. If the user selects the Southeast region from the selector, revenue information for Southeast is displayed in the graph. When the user rotates the mobile device and the document is
830 Displaying documents when the mobile device is rotated: Mobile Views
displayed using a different Mobile View, Southeast remains selected and the data displayed in the graph is unchanged. Once you have added a Mobile View to a document, you can: Display a preview of the Mobile View in Design Mode or Editable Mode in Web. Edit controls in the Mobile View. When you edit a control in one Mobile View by moving the control, changing its size, determining the height of the control's title bar, and so on, the change does not affect the display of the control in any other Mobile View. This allows you to edit the control in each Mobile View separately. You can edit the following options for a control independently in each Mobile View: not included Editing any option that is Mobile Viewsin the list below also edits this property for all other in the document. For example, if you change the background color of a document section to green in one Mobile View, the section is displayed as green in all other Mobile Views.
The position of the control in the document The height and width of the control The height of the control's title bar (for Grid/Graphs, panel stacks, and selectors) Whether the control is hidden. You can determine whether a control will be visible when the Mobile View is displayed on a mobile device. All controls in the document must be included in each Mobile View you define. However, you can hide a control in an individual Mobile View to prevent it from being displayed when the document is viewed on a mobile device. For steps to determine whether a control is visible, see Hiding a control, page 164. For example, you want to create two Mobile Views, but only want to display a specific grid in the Mobile View for a single mobile device. You must hide the grid in the Mobile View in which you do not want the grid to be displayed.
Whether the height and width of the control are automatically determined or are fixed at a specific size The height of a document section Whether a document section can grow or shrink to fit its contents Whether to hide a document section if it has no content
831
Show or hide all controls in the document in Design Mode, regardless of whether they are shown when the document is displayed on a mobile device.
Mobile Views also allow you to design documents to accommodate mobile devices with different screen sizes, such as the iPhone and iPad. For example, you can size text to take up less room on a mobile device with a small screen in one Mobile View, or enlarge an image to fit a mobile device with a larger screen in another Mobile View. When the document is shown on a mobile device, the document is automatically displayed using the Mobile View that most closely matches the height and width (resolution) of the mobile device's screen. By default, the mobile device tries to display a document using the Mobile View that matches the exact height and width of the device's screen. If there is more than one Mobile View with the same height and width as the mobile device's screen, the first of these Mobile Views, as listed in the Manage Views Editor, is used. Otherwise, the mobile device displays the Mobile View whose width most closely matches the width of the mobile device's screen. Documents can contain multiple layouts. Once you create a Mobile View, it is automatically available to every layout in the document. For example, a multi-layout document contains three layouts. If you create a Mobile View to determine how the document is shown on an iPhone, you must edit the controls in each layout to define how the layouts will be displayed. You can use the Orientation option for Mobile Views in conjunction with the Supported Orientation option for document layouts to determine how a mobile device chooses the best Mobile View to use to display a document layout, as follows: If the Supported Orientation of the document layout is set to Both Portrait and Landscape, the document layout is displayed using the Mobile View that most closely matches the height and width of the mobile device, as well as the orientation in which the mobile device is held. For example, if the mobile device is held vertically, the mobile device attempts to display the document layout using the Mobile View, with Orientation set to Portrait or Portrait and Landscape, that most closely matches the height and width of the device. If only Mobile Views designed to be displayed in landscape orientation have been defined for the layout, the mobile device chooses the best Mobile View from among those defined and rotates the Mobile View to be displayed vertically, to match the orientation of the mobile device.
832 Displaying documents when the mobile device is rotated: Mobile Views
If the Supported Orientation of the document layout is set to either Portrait Only or Landscape Only, the document layout is displayed using the Mobile View that most closely matches the height and width of the mobile device, as well as the Supported Orientation of the layout. For example, if the Supported Orientation is Portrait Only, the mobile device attempts to display the document layout using the Mobile View, with Orientation set to Portrait or Portrait and Landscape, that most closely matches the height and width of the mobile device. If only Mobile Views designed to be displayed in landscape orientation have been defined for the layout, the mobile device chooses the best Mobile View from among those defined and displays the Mobile View vertically, to match the Supported Orientation of the document layout. The Mobile View is locked to the same orientation as the Supported Orientation option, meaning that if the Supported Orientation is set to Portrait Only and a Mobile View is displayed vertically on the mobile device, the orientation of the layout as displayed on the mobile device remains the same and does not rotate regardless of whether the user rotates the mobile device. the iPhone, Supported When a document is viewed onwhich layoutthedisplayed on the Orientation option determines is mobile device. The mobile device then determines the best Mobile View to use to display the layout. For more information on the Supported Orientation setting, see the MicroStrategy Web Help.
See the MicroStrategy Web Help for instructions to add a Mobile View to a document and specify options to help determine which Mobile View is displayed when the document is shown on a mobile device, such as the height, width, and orientation for which the Mobile View is designed to be displayed.
833
834 Displaying documents when the mobile device is rotated: Mobile Views
A
A.
Introduction
If you are new to MicroStrategy Report Services, use this appendix to help you become familiar with the Document Editor interface. The Document Editor allows you to create, customize, and save documents to be used across the MicroStrategy platform. The Document Editor opens when you view a document in Design View. If you are already familiar with MicroStrategy, use this appendix to identify icons and other features you can take advantage of for quicker access to your most commonly used functionality.
835
The Document Editor consists of the following sections, as shown above: Menu bar Toolbars (position varies according to which toolbars are currently enabled) Layout tabs (shaded area below the toolbars), which are displayed when the document contains multiple layouts Grouping panel (shaded area directly above the Layout area) Layout area (middle)
The accordion pane at the left of the interface displays the Datasets, the Property List, or Notes. Switch between them by clicking the appropriate name at the bottom of the pane. Datasets, which contains the datasets selected for the document Property List, which displays the formatting properties of the object selected on the layout Notes, which displays the notes or comments added to the document
Each of the major sections of the editor is discussed below. For details about the other sections, see the Desktop Help.
Controls toolbar
A control is any selectable item in the documents Layout area. This can be a text field, line, rectangle, image, panel stack, selector, HTML container, or Grid/Graph object. For instance, dragging and dropping a dataset object onto the Layout area creates a control. If the dragged object is a dataset report, a Grid/Graph is created; otherwise, a text field is added to the Layout area. Use the Controls toolbar to insert new controls into the document. Use the Lock button to keep the currently selected control button turned on so that you can insert multiple controls until you unlock it. For example, you can insert three lines without needing to click the Line button three times. To do this, click the Line button, click Lock, then click in the Layout area three times to create three lines. To turn off the lock, click the Lock button again.
Toolbar icons
From the Document Editor toolbars, you can perform the following:
Name Save Icon Description Saves the document.
Cut
Cuts the currently selected objects. Use this to move or remove controls.
837
Name Copy
Icon
Description Copies the currently selected objects. Use this to duplicate controls.
Paste
Pastes whatever you have cut or copied. Use this to move or duplicate controls. Deletes the currently selected object.
Delete
Undo
Redo
Zoom Out
Zoom Percentage
Zoom In
Select Controls
Allows you to select existing controls rather than insert new controls. After you insert a new control, the Select Controls icon is enabled, unless Lock has been activated. Allows you to add the same type of control repeatedly. It keeps the currently selected control button (Text Field, Image, and so on) turned on so you can insert multiple controls. Click Lock again to turn off this feature. Inserts a text field into the document. Text fields displays text such as data from the dataset reports, static text for labels, and information about the document or dataset report. For more information, see Adding text and data to a document, page 51. Inserts an image into the document. You are prompted for the file location of the image. For requirements to ensure that the image is available when it is needed, see Inserting images in a document, page 130. Inserts a line into the document. For information, see Adding shapes and lines to a document, page 128.
Lock
Text
Image
Line
Name Rectangle
Icon
Description Inserts a rectangle into the document. Use the drop-down list to select either Rectangle (with square corners) or Rounded Rectangle (with round corners). Once you select either shape, if you click the icon again, that same shape is added to the document. For more information, see Adding shapes and lines to a document, page 128. Adds a new dataset and a Grid/Graph to the document at the same time. A Grid/Graph acts as a standard MicroStrategy report. For more information, see Adding a Grid/Graph and a new dataset simultaneously, page 302. Inserts a Grid/Graph placeholder that displays as a grid. A Grid/Graph placeholder is an empty Grid/Graph, without a dataset to populate the Grid/Graph with data. For more information, see Adding a Grid/Graph placeholder, page 303. Inserts a Grid/Graph placeholder that displays as a graph. A Grid/Graph placeholder is an empty Grid/Graph, without a dataset to populate the Grid/Graph with data. Use the drop-down list to select the graph style. For more information, see Adding a Grid/Graph placeholder, page 303. Inserts a panel stack, which is a collection of panels. Panels allow the user to see different predefined views of data in the same document. When you add a panel stack to a document, one panel is automatically added to the panel stack. For more information, see Layering data on dashboards: panels and panel stacks, page 391. Inserts an empty HTML container, which is used to display Flash and AJAX content in the document. When viewed in MicroStrategy Web, this content displays as though it is in an HTML browser within the document. This allows a document to display Flash information when the document itself is not in Flash Mode. For more information, see Displaying real-time web and other HTML content: HTML containers, page 121. Inserts a selector, which allows a user, in Interactive Mode, Editable Mode, and Flash Mode in MicroStrategy Web, to flip through the panels in a panel stack or display different attribute elements or metrics in a Grid/Graph. Use the drop-down list to select the type of selector. For more information, see Providing interactivity to users: selectors, page 418. Switches the document to Design View so you can edit the document. (Disabled in Design View) Switches the document to PDF View, which displays the content of the document. Switches to HTML View, which displays a preview of the document as it will appear in MicroStrategy Web. If the icon is disabled, HTML View is not available for the document. You can enable it; see Selecting available export formats, page 252.
Report
Grid
Graph
Panel Stack
HTML Container
Selector
Design View
PDF View
HTML View
839
Icon
Description Switches to Flash View, which displays a preview of the document as it will appear in Flash Mode in MicroStrategy Web. If the icon is disabled, Flash View is not available for the document. You can enable it; see Selecting available export formats, page 252. Shows or hides conditional formatting on the document. For more information on conditional formatting, see Formatting conditional data in documents, page 200. This icon can be disabled, to prevent users from toggling conditional formatting off and on. Disabling it can be useful if users should not see certain sections of the document that are displayed or hidden based on conditional formatting. If desired, you can enable it. For instructions, see Showing and hiding conditional formatting, page 208.
Grouping
Displays or hides the Grouping panel, which shows the fields used to group the document. For more information on the Grouping panel, see Grouping panel, page 841. For more information on grouping, see Grouping records in a document, page 260. Displays the Datasets pane containing the objects that can be placed in the document. For more information, see Datasets pane, page 842. Displays the Property List, which displays the formatting properties of the control selected in the Layout area. For more information, see Property List, page 843. Displays the notes or comments added to the document. For more information, see Notes, page 845. Displays the ruler to help you position controls.
Datasets
Property List
Notes
Ruler
Alignment Grid
Displays the alignment grid, which helps you control the placement and alignment of controls.
Layout tabs
If the document contains multiple layouts, a tab for each layout is displayed above the Grouping panel. Use the tabs to switch between layouts. Each layout functions as a separate document, with its own grouping, page setup, and so on, but the layouts are generated into a single PDF document. For more information, see Creating multi-layout documents, page 714.
Grouping panel
The Grouping panel lets you group information in the document in a hierarchical structure. To add a group, drag and drop any attribute, consolidation, or custom group from the Datasets pane onto the Grouping panel. This adds a corresponding pair of sections to the Layout area.
To display the Grouping panel, select Grouping from the View menu.
For more information about grouping documents, see Grouping records in a document, page 260.
Layout area
The Layout area provides the framework for precisely controlling the display section of the fields when the document is viewed as a PDF or in MicroStrategy Web. To add data, drag objects from the Datasets pane and drop them into this area. Depending on the document section that you place controls in, the controls print or display differently. For more information about each of these sections, see Understanding and working with document sections, page 34. Page Header/Footer: prints at the top and bottom of each page. Document Header/Footer: prints at the beginning/end of the document. Group Header/Footer: for each field in the Grouping panel, prints before and after the Detail Header/Footer. Detail Header/Footer: prints immediately before and after each group of Detail sections. Detail: repeats for each row in the dataset.
You can expand and collapse a section by clicking the plus and minus signs next to its name. Expanding and collapsing a section in this way does not affect the section size in the PDF or whether controls display when the document is viewed as a PDF. It only provides you with more room on the Layout area to design the document. By default, all sections are displayed in all views (Design View, PDF View, and Express Mode in MicroStrategy Web). You can select which sections to hide or display in various views. For more information, see Hiding or displaying sections for a finished document, page 181.
841
Clicking and dragging the lower boundary of the section in the Layout area increases the size of the section in both the Design View and PDF View. For more information on changing the section size, see Changing the size of a section, page 188. expands past the width If your layoutshow the page break. of a single page, a dotted line is displayed to The Layout area contains an alignment grid to help you control the placement and alignment of controls. You can align the controls automatically with reference to the grid. You can change the settings of the grid, including scale, density, and selection behavior (whether you need to fully enclose or only touch a control to include it in a selection box). For detailed instructions, see the Desktop Help.
Datasets pane
This section displays all of the datasets used in the document. It lists all attributes, metrics, custom groups, and consolidations in the existing MicroStrategy report, regardless of whether or not they are displayed on the report. For example, if the Report Objects contains a metric that is not displayed on the grid, that metric will be listed as a dataset object. For more information, see the MicroStrategy Advanced Reporting Guide. To place an object on a document, drag it from the Datasets pane and drop it onto the Layout area. This creates a text field on the Layout area. If you drag and drop a dataset name from the Datasets pane to the Layout area, you create a Grid/Graph. For more information on creating text fields, see Adding text and data to a document, page 51. For more information on Grid/Graphs, see Chapter 4, Displaying Reports in Documents: Grid/Graphs. the To displaypaneDatasets pane, click Datasets at the bottom of the accordion or press F8. If there are multiple datasets in a document, the dataset that is displayed in bold is the grouping and sorting dataset. For more information about datasets in a document, see Using datasets in documents, page 730.
Property List
The Property List displays the properties of the object selected on the Layout area. The properties that are listed vary depending on the type of object (text field, image, line, section, and so on) selected. For more information about the settings in the Property List and how to use them, refer to the Desktop Help. the To displaypaneProperty List click Property List at the bottom of the accordion or press F9.
You can instead choose to display the objects as a hierarchical tree representing the document structure. You can choose whether to display the
843
document structure tree on the left of the Property List or at the top of the Property List.
When you choose an item from the list or the tree, the displayed properties change and the control/section becomes selected in the Layout area. Conversely, if you select an object in the Layout area, the Property List displays the settings for that object, and the object is selected in the tree. You can also choose to hide the object list or document structure tree, to display the properties only. In this case, to choose a different object, select the object in the Layout area. To switch between the various displays, click the appropriate button at the top of the Property List pane: Object list Document structure on left Document structure on top Properties only
Notes
The Notes pane displays the notes or comments added to the document, and allows you to add your own notes. Use this area to communicate with other users about the document. The notes can include details about the document, information on how it was created, reasons to use it, queries about the data displayed, a back-and-forth conversation about designing the document, or anything useful to you and other users. The document cache is not invalidated when notes are added or modified. The Notes pane contains: A display of all the notes that have been added to the document. You must have the View Notes privilege to see any notes that have been added to the document. A text field to type new notes. Click Submit to add the new note. You must have the Add Notes privilege to add new notes, but you do not need write access control on the document.
To display the Notes pane, click Notes at the bottom of the pane.
2011 MicroStrategy, Inc. Document Editor layout
845
B
B.
DOCUMENT TUTORIAL
Introduction
This appendix walks you through the process of creating a sample invoice document.
Document Tutorial
By following the instructions, you will create a document that provides a separate invoice for each customer. Each invoice will contain the following: Company logo Customer name, city, and state Invoice and due dates Purchase date, ID, description, and cost of each item
Document Tutorial
This sample has been altered to fit within the space limitations of this manual.
It may be helpful to print the document and refer to it as you create your own invoice document.
849
Document Tutorial
The high-level steps for this procedure are outlined below. While each step is self-contained, they are meant to be completed in order. 1 Creating the report to use as the dataset, page 851 2 Creating the new document and selecting the dataset, page 852 3 Grouping the document by customer, page 853 4 Adding the logo image to the document, page 854 5 Resizing the image, page 855 6 Adding static text to the document, page 855 7 Formatting, aligning, and sizing the text field, page 856 8 Adding a rectangle to the document, page 856 9 Switching to PDF View, page 857 10 Adding an attribute to the Customer Header section, page 858 11 Combining text fields, page 860 12 Adding and formatting additional text fields in the Customer Header section, page 861 13 Adding a line to the Customer Header section, page 863 14 Creating the column headers in the Detail Header section, page 864 15 Ordering the controls, page 865 16 Creating the item detail in the Detail section, page 867 17 Formatting a text field as currency, page 868 18 Adding summary information to the Detail Footer section, page 869 19 Adding totals to a document, page 871 20 Saving the document, page 873 21 Creating the final PDF, page 873
Document Tutorial
Before beginning the instructions, review Creating a document using the Document Wizard, page 25 to familiarize yourself with the various components of the Document Editor.
1 On the MicroStrategy Desktop, point to New from the File menu, and then select Report. The Report Editor opens.
If the New Grid dialog box opens, select Blank Report as the report object template.
2 Add the following objects to the grid: Customer (from the Customers hierarchy) Customer City (from the Customers hierarchy) Customer State (from the Customers hierarchy)
851
Document Tutorial
Ship Date stands in for the invoice and due dates on the document.
Item (from the Products hierarchy) Day (from the Time hierarchy) Cost metric (from the Public Objects\Metrics\Sales Metrics folder)
1 On the MicroStrategy Desktop, point to New from the File menu, and then select Document. The New Document dialog box opens. 2 Select Empty Document and click OK. The Select a report dialog box opens. 3 Navigate to the Invoice Dataset Report and double-click it. The Document Editor opens.
Document Tutorial
The Document Editor contains the Datasets pane on the left, the Layout area in the middle, and the Property List on the right. is Datasets from If the Datasets panethe not displayed,isselectdisplayed, selectthe View menu. Similarly, if Property List not Property List from the View menu. Notice that the Layout area is empty except for sectionsno objects have been placed on the document yet. You can expand and collapse the sections by clicking the plus sign or double-clicking the grey button next to the section name. You can drag a section's top or bottom border to make the section larger or smaller. Expanding, collapsing, or resizing a section in this way does not affect its size or whether controls in it appear or are hidden when the document is viewed as a PDF. The Datasets pane contains the Invoice Dataset Report and all the objects on that report. These objects are available for use on the document. The Property List displays the properties of the object selected on the Layout area. The properties vary depending on the type of object selected, but include font, size, alignment, position, and others. For more information, see Creating a document using the Document Wizard, page 25 and the Desktop Help.
Select Customer in the Datasets pane. Drag and drop it into the Grouping panel, which is labeled Drop Grouping Fields Here. the Grouping panel is not displayed, select Grouping from the Tip: Ifmenu. View After you add Customer to the grouping, notice that two new sections are created on the Layout area. The new sections are grouping sections and are called Customer Header and Customer Footer. For more information on grouping, see Grouping records in a document, page 260; for information on the different sections, see Understanding and working with document sections, page 34.
853
Document Tutorial
1 Right-click Customer in the Grouping panel and select Grouping Properties. The Grouping Properties dialog box opens. 2 Select the Page break between groups check box. on the other settings in see For informationnumbers for each group,the dialog box, Keeping Resetting page page 281 and the data in a group together on a page, page 283. 3 Click OK to return to the Document Editor. Until you create the PDF, you will not see any changes from the page break option.
1 On the Layout area, click the plus sign next to Page Header. This expands the section so that you can work in it. 2 Click Image on the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 3 Click the top left corner of the Page Header section. The Image Source dialog box opens. 4 Navigate to an image file to use as the logo. 5 Select the file and click Open. The image appears in the document. You can drag and drop the image to reposition it or resize it using the red handles.
Document Tutorial
1 Click the image on the Layout area to select it. 2 In the Property List, set the Height to 0.3. 3 If the image is too distorted, you can also adjust the width. Enter the appropriate number in the Width property in the Property List.
1 Click Text Field on the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click in the Page Header section, next to the logo. A box is placed in the section. 3 Type the following in the text field: Customer Invoice
855
Document Tutorial
The text appears in the box, although you will not see it all because the text box is too small. We will fix that problem in the next step, by setting the height and width of the text field.
1 Click the text field on the Layout area to select it. Alternatively, you can select it from the drop-down list at the top of the Property List. 2 To format the text, click the Bold and Italic icons in the toolbar. 3 To change the font size, select 18 from the Font Size drop-down list on the toolbar. 4 To align the text field, drag and drop it in the correct position or set the Left and Top properties in the Property List. To re-create the sample invoice exactly, set Left to 4.34 and Top to .03. 5 To size the text field, you can drag the resizing handles or set the Height and Width properties in the Property List. To re-create the sample, set Height to .25 and Width to 2.4.
Document Tutorial
To add a rectangle
1 Click the Rectangle icon on the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click in the Page Header section to add the rectangle. 3 On the Property List, change the color of the rectangle to grey, by clicking Backcolor then the Browse button. The Color dialog box opens. Click the grey swatch, then click OK. 4 To set the rectangle to span the width of the entire page, change the Width mode property on the Property List to 100%. 5 While you can change the rectangle size using the resizing handles, set the Height and Top properties to the following using the Property List. This ensures that your document looks exactly like the sample. Height: .06 Top: .34
For more information on formatting rectangles, see Formatting shapes, page 177. Your Page Header section should now look like the following:
857
Document Tutorial
Notice that the document has only one page, although the report contains two customers and the document is grouped by customer. However, the Customer attribute has not yet been placed on the document, so the document is not really grouping yet. Also, since the only controls on the document are statica picture and the words Customer Invoicethe document in PDF View does not look much different from the document in Design View. To continue working on the document, click Design View on the toolbar. Design If you frequently switch between on yourView and PDF View, keep an instance of Acrobat Reader open machine. This helps speed up the process of switching to PDF View.
Document Tutorial
more details on using data fields in documents, see Adding data fields to a document, page 53.
To add an attribute and a corresponding label
1 Click Text Field on the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click at the top of the Customer Header section. A box is placed in the section. 3 Type the following in the text field: Bill To: 4 Set the following properties in the Property List to position the text field as shown in the example invoices: Left: .34 Top: .03
6 Drag and drop Customer from the Datasets pane to the Customer Header. A text field containing the text {Customer} is placed on the Layout area. The text will be replaced with the customer name when the PDF is generated. 7 Set the following properties in the Property List to position the data field as shown in the example invoices: Width: 2.5 Left: .11 Top: .37
859
Document Tutorial
1 Drag and drop Customer City from the Datasets pane to the Customer Header. A text field containing the text {[Customer City]} is placed on the Layout area. The text is replaced with the customers city when the PDF is generated. 2 Expand the size of the new text field using the resizing handles. This will allow you to more easily see what you are typing in the text field. 3 Select the new text field and press F2 to edit it. 4 Type a comma. 5 Drag and drop Customer State from the Datasets pane into the new text field. Notice that a space is added automatically before Customer State. The text field should now contain the following: {[Customer City]}, {[Customer State]}
When the outline of the text field becomes yellow, drop the object into it.
6 Press ENTER to exit edit mode. 7 Set the following properties in the Property List to position the text field as shown in the example invoices: Width: 2.5 Left: .11 Top: .54
Document Tutorial
Adding and formatting additional text fields in the Customer Header section
Now, add the remaining text fields to the Customer Header sectioninvoice number, invoice and due dates, and the remittance address. The invoice number is the Customer ID, which is not the default attribute form. The following procedure shows you how to access a particular attribute form, as well as copy a text field. It also demonstrates selecting, formatting, and aligning multiple fields in different ways. For more information, see Arranging controls on a document, page 136 and Formatting text fields, page 166.
To add and format additional text fields
1 Add the following static text fields to the Customer Header, as shown on the sample invoice. The formatting and alignment will be described later. Invoice # Invoice Date Due Date Remit To:
2 Add the following lines as one static text field. To insert a break between the lines, press CTRL+ENTER. MicroStrategy, Inc. 1861 International Drive McLean, VA 22102 3 Drag and drop Ship Date from the Datasets pane to the Customer Header. A text field containing the text {[Ship Date]} is placed on the Layout area.
To copy a control on the Layout area
4 Right-click Ship Date on the Layout area and select Copy. 5 Right-click below Ship Date on the Layout area and select Paste. The document now contains two copies of the control, one for use as the Invoice Date and the other as the Due Date.
861
Document Tutorial
6 In the Datasets pane, expand Customer. From the list of Customer attribute forms, drag and drop ID to the Customer Header. A text field containing the text {Customer@ID} is placed on the Layout area.
To select, format, and align multiple controls
7 Hold down the CTRL key and click the static fields Invoice #, Invoice Date, and Due Date. 8 Click Bold in the Formatting toolbar. 9 Set the Left property in the Property List to 2.63 and press ENTER. This will left align the three controls. 10 Click anywhere in the Layout area to deselect the controls. 11 Hold down the CTRL key and click Customer@ID and the two copies of Ship Date. 12 Set Left in the Property List to 3.61, thereby placing the controls along the same line. 13 In the same manner, select Invoice # and Customer@ID. Set Top in the Property List to .2. 14 Select Invoice Date and the first Ship Date. Set Top in the Property List to .37. 15 Select Due Date and the second Ship Date. Set Top in the Property List to .54. 16 Select the static text fields Remit To: and the MicroStrategy address. Set Width to 1.65.
To align controls using the right-click menu
17 To align Remit To: with Customer@ID, which you have already set with the correct Top position, select Customer@ID and Remit To:. Right-click, point to Align, and then select an option: If Customer@ID is higher than Remit To:, select Top. If Customer@ID is lower than Remit To:, select Bottom.
Document Tutorial
18 Repeat the process with the first Ship Date and the MicroStrategy address text field. 19 Select Remit To: and set Left to 5.32. 20 To align the MicroStrategy address text field with the Remit To: control, select both controls. Right-click, point to Align, and then select an option: If Remit To: is to the left of the address, select Left. If Remit To: is to the right of the address, select Right.
1 Click the Line icon in the toolbar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click at the bottom of the Customer Header section to add the line. 3 Set the following in the Property List: Line style: Double, to change it to a double line from the default of Solid Line weight: 2 Top: 1, which moves the line to the bottom of the Customer Header section Length mode: 100%, which stretches the line across the width of the page
off the Layout area, drag If the line disappearsCustomer Header section.the Detail Header down to show more of the This does not affect the size of the sections in the PDF, only in Design View. For more information on formatting lines, see Formatting shapes, page 177.
863
Document Tutorial
Your Customer Header section should now look like the following:
Document Tutorial
the Detail Header contains the column headers for the itemized lines of the invoice and prints once for each customer. The controls in this section are static text fields and a rectangle, used to make the text fields stand out. Since you have added static text fields and a rectangle to the document already, the following procedure is a high-level process only.
To add controls
1 Add the following static text fields to the Detail Header section and set the properties as indicated: Date: Left = .13, Top = .02 Item #: Left = 1.62, Top = .02 Item Description: Left = 3.05, Top = .02 Amount: Left = 5.69, Top = .02
2 Bold all four text fields and set their Backcolor to grey. 3 The default text field width is not long enough to display the item description without wrapping to a second line. To fix this, set the Width for Item Description to 1.25. 4 Add a rectangle to the Detail Header section and set the following properties: Backcolor: Grey Height: .25 Width mode: 100% Top: 0
The text fields disappear behind the rectangle, but we will fix that problem in the next section.
865
Document Tutorial
them forward or backward. This displays controls in front of or behind other controls.
To order controls
1 Select the rectangle, being sure not to select any of the text fields. 2 Right-click, point to Order, and then select Send to Back. Your Detail Header section should now look like the following:
Document Tutorial
you must expand Recall that to add a particular attribute form,attribute form. Thethe attribute in the Datasets pane and select the default attribute form for Item is Description, not ID. Item Cost
2 Select Item and set the Width property to 2.25. 3 Select Day and set the Top property to .05. 4 Align the other controls to Day. To do this, select the controls, right-click, point to Align, and select Top. 5 Align Day with the Date text field in the Detail Header section. To do this, select the controls, right-click, point to Align, and select Left. 6 Similarly, align Item@ID with the Item # text field and Item with the Item Description text field. 7 To align Cost with Amount, select both fields. Right-click, point to Align, and then select an option: If Cost is to the left of Amount, select Right. If Cost is the right of Amount, select Left.
867
Document Tutorial
1 Right-click Cost and select Format. The Format Objects dialog box opens. 2 On the Number tab, select Currency from the Category list. The default settings use a dollar sign and two decimal places. 3 Click OK to return to the document. Your Detail section should now look like the following:
Document Tutorial
869
Document Tutorial
Footer section. The Detail Footer section prints immediately following the Detail section, and is typically used for totals. Before creating the totals, add static text fields to label the amounts and lines to separate the sections. Again, since you have added static text fields and lines to the document, this is a high-level process, providing enough information to ensure that your invoices match the sample.
To add summary information
1 Add the following static text fields to the Detail Footer section and set the properties as indicated: Total Charge: Left = 3.51, Top = .1 Total Tax: Left = 3.51, Top = .32 Total Due: Left = 3.51, Top = .54
2 Add a double line at the top of the Detail Footer section. Set its properties as listed below: Line style: Double Line weight: 2 Top: .03 Length mode: 100%
3 Add another line, between Total Tax and Total Due, and to the far right. Set its properties as listed below: Line style: Double Line weight: 2 Left: 5.58 Top: .5 Length: 1.42
Document Tutorial
4 Add another line, underneath Total Due. Set its properties as listed below: Left: 3.45 Top: .71 Length: 3.55
5 Add the following text field: Terms: Net 30 Days, Plus 1.5% per month after 30 days 6 Set the following properties for the Terms text field: Font: 8 Width: 3 Left: 2.06 Top: .77
871
Document Tutorial
2 Right-click next to Total Charge in the Detail Footer section and select Paste. Although this field calculates a total, the information displayed on the Layout area is the same: {Cost}. pasting the metric from Copying andformatting (currency withthe Layout area also copies the metric's two decimal places in this case). 3 Bold the new Cost control. 4 Align it to the top with the Total Charge control. 5 Align it to the left with the Cost metric in the Detail section. 6 Drag and drop Cost from the Datasets pane to the Detail Footer, placing it to the right of Total Due.
When you drag a metric from the Datasets pane, the controlyou default formatting is used. You will see the difference when
create the PDF. For more information, see Defining default formatting for control types: control defaults, page 196. 7 Bold this second Cost control. 8 Align it to the top with the Total Due control. 9 Align it to the left with the first Cost metric in the Detail Footer. Your Detail Footer section should now look like the following:
Document Tutorial
1 Click the Save icon on the toolbar. The Save Document As dialog box opens. 2 Navigate to a directory in which to save the document. 3 Enter a name for the document, such as Sample Invoice, in the Object name box. 4 Click Save.
873
Document Tutorial
C
C.
DASHBOARD TUTORIAL
Introduction
A dashboard is a special type of document, commonly one page long and usually viewed online. Dashboards contain interactive features that allow analysts to control how they view data. Each user can interact with the dashboard to display only the data they are interested in (using panels and selectors) or only specific attribute elements or metrics (using a selector). Dashboards are often used to assess performance, to provide a quick status check, or to monitor contributions to overall goals of the business. Dashboards summarize key business indicators by presenting them in visually intuitive, easy-to-read, interactive documents. This appendix walks you through creating a dashboard that incorporates widgets in a panel stack, using data from the MicroStrategy Tutorial. You can use this appendix as a tutorial, bringing together the information described in the chapters of this book to create a dashboard.
875
Dashboard Tutorial
To format some parts of widgets and to view the dashboard in Flash Mode, you must be able to access and log in to MicroStrategy Web. are updated Dates in the MicroStrategy Tutorial project metadataimages in thisto reflect the current year. The sample documents and section, as well as the procedures, were created with dates from 2004 to 2006.
It may be helpful to print these images and refer to them as you create your own dashboard.
Panel 1: Daily Order Count
The Daily Order Count panel contains two widgets which are based on the Daily Order Count dataset. The widgets are: A Time Series Slider widget, which is an area graph that allows a document analyst to choose which section of the graph to view at a time. This widget displays order count data at the day level. You can change the specific days which are displayed, as well as the length of time displayed. For example, you can view the data for January, for February, or for January through March.
876 The completed dashboard
Dashboard Tutorial
A Gauge widget, which is a simple status indicator, such as a car speedometer, that displays a needle that moves within a range of numbers displayed on its outside edges. This widget displays the profit margin percentage at the category level, independent of time. You can select which category to display.
Exploring the Daily Order Count panel, page 892 describes this panel in more detail, providing instructions to guide you through the various features. This section assumes you have already created the dashboard. Directions to create the panel begin in Creating the Daily Order Count panel, page 882.
877
Dashboard Tutorial
visualize the growth of inventory across time. You can choose which month to display by using the selector.
The and long Notice the scroll bars.so theheat map is tooiswide displayedto appear in the browser window, entire widget not in the image. A Heat Map widget presents a combination of colored rectangles, each representing an attribute element (Growth in this example), that allow you to quickly grasp the state and impact of a large number of variables at the same time. The rectangles contain a wide variety of shades and colors, which emphasize the status of the various components. In a Heat Map, the size of each rectangle represents its relative weight and the color represents the relative change in value of that rectangle. Exploring the Inventory Analysis panel, page 902 describes this widget in more detail, providing instructions to guide you through the various features. This section assumes you have already created the dashboard. Directions to create this widget begin in Creating the Inventory Analysis panel, page 895.
Dashboard Tutorial
animated over time, and also to drill into the components of individual bubbles to view the distribution of the underlying data. The bubbles represent custom group elements, which are created from groups of selected call centers. For example, the element Northeast consists of the Boston and New York call centers. The size of the bubbles indicates the number of units sold, while the position on the graph indicates the profit and revenue at the employee level. The color of the bubbles indicates the year, as shown on the color key at the bottom left.
Unlike the previous widgets, this widget does not use a selector. However, drilling has been enabled so if you click a bubble, the widget drills down to the call centers that comprise the custom group element. Exploring the Employee Performance panel, page 914 describes this widget in more detail, providing instructions to guide you through the various features. This section assumes you have already created the dashboard. Directions to create this widget begin in Creating the Employee Performance panel, page 905.
879
Dashboard Tutorial
High-level steps
You will create reports to be used as datasets for the document, and then use these datasets to create a dashboard. You will add a panel stack with three panels, and then add and define different widgets to the panels. You will display the dashboard in Flash Mode in MicroStrategy Web to interact with the widgets. The goal is to create a single dashboard that intelligently, efficiently, and interactively displays all of the data contained within the individual datasets. The high-level steps for this procedure are outlined below. While each step is self-contained, the steps are meant to be completed in order. save the reports and document in a such as My You shouldShared Reports, that can be accessedfolder,MicroStrategy Reports or from Web.
Dashboard Tutorial
High-level steps
881
Dashboard Tutorial
1 In MicroStrategy Desktop, point to New from the File menu, and then select Report. The Report Editor opens.
If the New Grid dialog box opens, select Blank Report as the report object template.
2 Add the following objects to the rows of the grid: Category (from the Products hierarchy) Day (from the Time hierarchy)
3 Add the following metrics to the columns of the grid: Order Count (from the Public Objects\Metrics\Count Metrics folder) Profit Margin (from the Public Objects\Metrics\Sales Metrics folder)
4 Save and close the report, naming it Daily Order Count Dataset Report.
Dashboard Tutorial
1 In MicroStrategy Desktop, point to New from the File menu, and then select Document. The New Document dialog box opens. 2 Select Blank Dashboard and click OK. The Select a report dialog box opens. 3 To use the report that you just created as a dataset for this document, navigate to the Daily Order Count Dataset Report and double-click it. The Document Editor opens. Notice that the Layout area contains only one section, as dictated by the Blank Dashboard template. This is ideal for creating a dashboard, when all the different header and footer sections are unnecessary. For more information about the template, see Creating a dashboard: the Blank Dashboard template, page 389. You can display additional sections by selecting Sections from the View menu, and then choosing the sections to display. For a more complete procedure, see Hiding and displaying document sections, page 36. The Datasets pane contains the Daily Order Count Dataset Report and all the objects on that report. These objects, as well as the dataset itself, are available for use on the dashboard.
883
Dashboard Tutorial
1 From the Insert menu, select Panel Stack. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click in the Layout area to add the panel stack. 3 Right-click the panel stack and select Properties. The Properties dialog box opens. 4 On the Layout tab, position and size the panel stack by setting the following properties: Left: .15 inches Top: .35 inches Height: 5.7 inches Width: 10.1 inches
7 Next, add a panel to the panel stack. Right-click the panel stack, point to Panels, and select Add. 8 Add a third panel by repeating the previous step.
To rename a panel
Panel names are displayed in the title bar and in the selector associated with the panel stack, so it is important to make them meaningful. 9 Right-click the panel stack, point to Panels, and select Manage. The Panels tab of the Properties dialog box opens. 10 Select Panel1 in the list of panels. 11 Click Rename.
Dashboard Tutorial
12 Type Daily Order Count in the panel list, and then press ENTER.
To set the current panel to Daily Order Count
13 Select Daily Order Count in the list of panels. 14 Click Set as Current. 15 Click OK to return to the dashboard. Notice that the title bar of the panel stack displays Daily Order Count (you may have to scroll the Layout area to the right to view it). Since all the panels are identical right now, this is the only indication as to which panel is being displayed.
To apply a gradient color to the current panel (Panel1)
16 Right-click the panel stack and select Format. The Format Objects dialog box opens. 17 Select Container in the list of objects on the left. 18 Click the Background tab. 19 Select Gradient from the Background style drop-down list. 20 Select Sea Green from the Color 1 drop-down list (the color name appears when you hover over the color swatches). 21 Select Grey-25% from the Color 2 drop-down list.
To format the title bar
22 Select Title in the list of objects on the left. 23 Click the Font tab. 24 Set Size to 8. 25 Set Color to White. 26 Click the Background tab. 27 Select Black from the Fill color drop-down list. 28 Click OK to return to the dashboard.
885
Dashboard Tutorial
1 Right-click the panel stack and choose Insert Panel Stack Selector. The selector is created above the panel stack. 2 Right-click the selector and choose Properties. The Properties dialog box opens. 3 On the Layout tab, position and size the selector by setting the following properties: Left: .15 inches Top: .05 inches Height: .3 inches Width: 5.0 inches
4 Click the Selector tab. 5 From the Style drop-down list, choose Button Bar. 6 Set Orientation to Horizontal. 7 Click OK to return to the dashboard.
Dashboard Tutorial
A Time Series Slider widget requires only one attribute, preferably one with many values. This attribute is normally time-based, although it does not have to be. In this dashboard, only one attribute, Day, is used. The widget also requires only one metric; Order Count is used in this widget. For more information about Time Series Slider widgets, see Defining a Time Series Slider widget, page 545.
To create a Time Series Slider widget
1 Create an empty Grid/Graph by selecting Grid from the Insert menu. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click and drag in the panel stack to add the Grid/Graph. Do not worry about the size or position; you will adjust them later. 3 Drag Day from the Datasets pane and drop it on the row axis of the Grid/Graph, as shown below:
4 Drag Order Count from the Datasets pane and drop it on the column axis of the Grid/Graph, as shown below:
5 Format the Day attribute: a From the Format menu, point to Day, and then select Values. The Format Cells dialog box opens. b On the Number tab, select Date in the Category list. c In the Formatting list, select 7/19/00.
d Click OK.
887
Dashboard Tutorial
6 The Grid/Graph is in edit mode, as indicated by its red hashed border. Press ESC to exit edit mode. 7 Right-click the Grid/Graph and choose Properties. The Properties dialog box opens. 8 On the Layout tab, set the following properties to position and size the Grid/Graph: Left: 1.5 inches Top: .2 inches Height: 5.25 inches Width: 8.6 inches
9 On the Flash tab, turn the Grid/Graph into a widget: Select Time Series Slider from the Selected widget drop-down list.
1 Create an empty Grid/Graph by selecting Grid from the Insert menu. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click and drag in the panel stack to add the Grid/Graph. Do not worry about the size or position; you will adjust them later.
888 Creating the Daily Order Count panel
2011 MicroStrategy, Inc.
Dashboard Tutorial
3 Drag Profit Margin from the Datasets pane and drop it on the column axis of the Grid/Graph. 4 The Grid/Graph is in edit mode, as indicated by its red hashed border. Press ESC to exit edit mode. 5 Right-click the Grid/Graph and choose Properties. The Properties dialog box opens. 6 On the Layout tab, set the following properties to position and size the Grid/Graph: Left: .1 inches Top: 2 inches Height: 1.7 inches Width: 1.3 inches
7 On the Flash tab, turn the Grid/Graph into a widget: Select Gauge from the Selected widget drop-down list.
You must format the Grid/Graph that is used as the Gauge widget, so that it appears correctly in Flash Mode. 9 In the Property List, set View mode to Graph. 10 Right-click the Grid/Graph and select Edit Graph. 11 From the Graph menu, select Grids and Scales. The Numeric Axis Grids and Scales dialog box opens. 12 Click the Y1 Axis tab on the left. 13 Click the Scales tab at the top. 14 Select the Use Manual Setting for Maximum Value check box. 15 In the Maximum Value field, enter 1. 16 Click the Numbers tab at the top.
889
Dashboard Tutorial
17 Choose Percent from the Category drop-down list. 18 Set Decimal Places to 0. 19 Click OK. 20 Press ESC to exit edit mode. 21 Note the name of the Grid/Graph at the top of the Property List; it should be GridGraph2. You will need to know this name to create the selector for this Grid/Graph.
1 From the Insert menu, point to Selector, and then choose Link Bar. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click in the Layout area to add the selector. 3 Right-click the selector and choose Properties. The Properties dialog box opens. 4 On the Layout tab, set the following properties to position and size the selector: Left: .08 inches Top: .5 inches Height: 1.45 inches Width: 1.3 inches
Dashboard Tutorial
6 Set Action type to Select attribute element. 7 Select Category as the Source, so that the user can change the category. 8 Select Link Bar as the Style. 9 Select Vertical for the Orientation. 10 By default, the selector shows the All option, which allows the user to display all the attribute elements in the Target at the same time. Clear the Show option for All check box so that the all categories link is not available in the selector. 11 Clear the Allow multiple selections check box, so that a user cannot select more than one category at the same time. 12 Set the Gauge widget as the target of the selector: a Select GridGraph2 (or the name of the Grid/Graph, as noted previously) in Available targets. b Click > to move GridGraph2 to Selected targets. 13 Click OK to return to the dashboard.
1 From the Format menu, select Document Properties. The Document Properties dialog box opens. 2 On the Document tab, select the Default radio button for Flash. The dashboard will initially open in Flash Mode in MicroStrategy Web.
891
Dashboard Tutorial
Viewing the Daily Order Count panel in Flash Mode in MicroStrategy Web
To interact with the widgets, you must view the dashboard in Flash Mode in MicroStrategy Web. Use Full Screen Mode to maximize the amount of the dashboard that is displayed.
To view the dashboard in Flash Mode
1 Sign in to MicroStrategy Web. 2 Navigate to the Dashboard Sample document in your project, and click Dashboard Sample. The dashboard opens in Flash Mode. 3 Switch to Full Screen mode by clicking the Full Screen Mode button in the toolbar. Most of the MicroStrategy toolbars and panels are hidden, which maximizes the amount of the dashboard that can be shown at the same time.
To display the toolbarsinand panels, click the Restore Normal Screen Mode button the toolbar.
Exploring the Daily Order Count panel
The Gauge widget allows you to monitor the value of a single metric, in this case, Profit Margin. The selector for the Gauge widget displays a list of
892 Creating the Daily Order Count panel
Dashboard Tutorial
categories. Click Movies to change the category displayed in the gauge; note the gauge needle moves to about 10%. Click Books, and the gauge needle now points to just above 20%. Notice that the transition between the data points is animated fluidly. Notice that the date range for the bar graph (the Time Series Slider widget) runs from 9/13/06 to 12/31/06. project metadata are to Dates in the MicroStrategy Tutorialwas created with 2006updatedyour reflect the current year. The sample dates; Tutorial project may contain different dates. A Time Series Slider widget consists of two related graphs, one positioned above the other. The top graph is the controller, and contains a slider. To open the controller, hover your cursor over the down arrow at the top of the time series graph (the area graph). The bottom graph is the primary graph. Use the slider on the controller to select some portion of the controller, which determines the range of data visible in the primary graph.
893
Dashboard Tutorial
The slider allows you to change the range of dates and the length of time that is displayed. For example, click and drag the bottom of the slider (which is circled in the image above) to change the range of dates displayed. The bottom graph dynamically displays the data for the dates. To change the length of time displayed, drag an edge of the slider (as indicated by the arrows in the image above). For example, the sample below displays data for the period 1/15/2005 to 5/3/2006. Notice that the length of the slider is longer than in the previous sample, indicating a longer length of time that is displayed in the bottom graph.
Notice also that the cursor is hovered over a particular day, 8/8/2005, and a pop-up displays information for that day. A series of tabs is displayed across the top of the dashboard. Daily Order Count is selected. Click Panel2. A blank rectangle is displayed, since no objects have been added to this panel. The next section of this tutorial contains the procedures to define this panel.
You can log out of MicroStrategy Web, as you will be working in Desktop again.
Dashboard Tutorial
1 On the MicroStrategy Desktop, point to New from the File menu, and then select Report. The Report Editor opens.
If the New Grid dialog box opens, select Blank Report as the report object template.
2 Add the following attributes to the rows of the grid: Month (from the Time hierarchy) Category (from the Products hierarchy) Item (from the Products hierarchy)
3 Add the following metrics to the columns of the grid: Begin on Hand (from the Public Objects\Metrics\Inventory Metrics folder) End on Hand (from the Public Objects\Metrics\Inventory Metrics folder)
4 Save and close the report, naming it Inventory Analysis Dataset Report.
895
Dashboard Tutorial
To add a dataset
1 If the Dashboard Sample document is not open, open it in the Document Editor in Desktop. 2 From the Data menu, select Add Dataset. The Select a report dialog box opens. 3 Locate and select the Inventory Analysis Dataset Report. 4 Click Open. The dataset and all the objects on that report are now displayed in the Datasets pane.
1 Right-click the panel stack, point to Panels, and then choose Display Next. Panel2 is displayed (you may have to scroll to the right to see its name on the title bar). Panel2 is a blank rectangle, without any objects. Panel2 as the you open the This also sets MicroStrategycurrent panel. Whenbe displayed initially, dashboard in Web, this panel will rather than Daily Order Count.
Dashboard Tutorial
To rename a panel
1 Right-click the panel stack, point to Panels, and then select Manage. The Panels tab of the Properties dialog box opens. 2 Select Panel2 in the list of panels. 3 Click Rename. 4 Type Inventory Analysis, and then press ENTER. 5 Click OK to return to the dashboard.
To apply a gradient to a panel
1 Right-click the panel and select Format. The Formatting Objects dialog box opens. 2 Select Container in the list of objects on the left. 3 Click the Background tab. 4 From the Background style drop-down list, select Gradient. 5 Select Light Turquoise from the Color 1 drop-down list (the color name appears when you hover over the color swatches). 6 Select Light Green from the Color 2 drop-down list. 7 Click OK to return to the document.
897
Dashboard Tutorial
The Grid/Graph used as the Heat Map widget must contain the percentage growth of inventory in a month, otherwise the heat map will not display properly. The inventory growth is computed by subtracting the beginning inventory from the ending inventory, and then dividing by the beginning inventory. While this metric is not present on the dataset, it can be calculated from the metrics on the dataset, Begin on Hand and End on Hand. A new metric created from the metrics on the dataset is called a derived metric. For more information on derived metrics in documents, including a comparison between derived metrics and calculated expressions, see Working with metrics in documents, page 95.
To create a Heat Map widget
1 Create an empty Grid/Graph by selecting Grid from the Insert menu. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click and drag in the panel stack to add the Grid/Graph. Do not worry about the size or position; you will adjust them later. 3 Drag the following from the Datasets pane to the row axis of the Grid/Graph: Category Item
4 Drag Begin on Hand from the Datasets pane and drop it on the column axis of the Grid/Graph. 5 The Grid/Graph is in edit mode, as indicated by its red hashed border. Press ESC to exit edit mode. 6 Right-click the Grid/Graph and choose Properties. The Properties dialog box opens. 7 On the Layout tab, set the following properties to position and size the Grid/Graph: Left: .04 inches Top: .4 inches Height: 5 inches Width: 11 inches
Dashboard Tutorial
9 Right-click Inventory Analysis Dataset Report in the Datasets pane and select New Metric. The Input Metric Formula dialog box opens. 10 Double-click End on Hand in the list on the left, to add it to the metric expression. 11 Click the minus sign (-) in the toolbar. 12 Double-click Begin on Hand in the list on the left. 13 Click the division symbol (/) on the toolbar. 14 Double-click Begin on Hand in the list on the left. 15 The metric expression should look like the following: (([End on hand]-[Begin on Hand])/[Begin on Hand]) 16 Click Validate to ensure that the expression is complete. If the expression is not valid, click Clear to delete the entire expression and start again, or modify the expression until it is valid. 17 In the Metric Name text field on the upper right, type Percent Growth. 18 Click OK to add the new metric to the document. The Input Metric Formula dialog box closes. The new metric is added to the Inventory Analysis Dataset Report in the Datasets pane. 19 Right-click Percent Growth in the Datasets pane and select Number Format. The Number Format dialog box opens. 20 In the Category list, select Percent. 21 Set Decimal places to 0 (zero). 22 Click OK to return to the dashboard. 23 Select the Grid/Graph. 24 Drag Percent Growth from the Datasets pane and drop it on the column axis of the Grid/Graph.
899
Dashboard Tutorial
25 The Grid/Graph is once again in edit mode, as indicated by its red hashed border; press ESC to exit edit mode.
To turn the Grid/Graph into a widget
26 Select the Grid/Graph. 27 In the Property List, choose Heat Map from the Selected widget drop-down list. 28 Note the name of the Grid/Graph at the top of the Property List; it should be GridGraph3. You will need to know this name to create the selector for this widget.
1 From the Insert menu, point to Selector, and then choose Drop-down. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click in the Layout area to add the selector. 3 Right-click the selector and choose Properties. The Properties dialog box opens. 4 On the Layout tab, set the following properties to position and size the selector: Left: .1 inches Top: .1 inches Height: .25 inches
Dashboard Tutorial
Width: 2 inches
5 Click the Selector tab. 6 Set Action type to Select attribute element. 7 Select Month as the Source, so that the user can change the month. 8 Clear the Show option for All check box, so that the user cannot select all the months at the same time. 9 Set the Heat Map widget as the target of the selector: a Select GridGraph3 (or the name of the Grid/Graph, as noted previously) in Available targets. b Click > to move GridGraph2 to Selected targets. 10 Click OK to return to the dashboard.
1 Sign in to MicroStrategy Web. 2 Navigate to the Dashboard Sample document in your project, and click Dashboard Sample. The dashboard opens in Flash Mode.
901
Dashboard Tutorial
3 Switch to Full Screen mode by clicking the Full Screen Mode button in the toolbar. Most of the MicroStrategy toolbars and panels are hidden, which maximizes the amount of the dashboard that can be shown at the same time.
To display the toolbarsinand panels, click the Restore Normal Screen Mode button the toolbar.
Exploring the Inventory Analysis panel
The Inventory Analysis panel is displayed first. You set it as the current panel, and hence the initial panel, when you switched panels. The largest rectangles, which themselves contain more rectangles, on the heat map are generated by the first attribute on the rows of the Grid/Graph. This is Category in this sample heat map. In the following image, which shows only a portion of the entire heat map, the Categories displayed are Movies, Books, and Electronics. The smaller rectangles are generated by the second attribute, Item, on the rows of the Grid/Graph.
The size of each rectangle, large or small, represents its relative weight, as determined by the first metric on the columns of the Grid/Graph, which is Begin on Hand. The portion of the heat map shown above indicates that the Movies category is weighted more heavily than Books, that is, more movies
Dashboard Tutorial
than books were on hand at the beginning of the month. (The entire Movies rectangle is not shown in this image.) Similarly, the smaller rectangles are also sized according to the beginning inventory. The rectangles in the first row of the Movies rectangle are larger than the rectangles in the first row of the Books rectangle. This indicates that more copies of each movie were on hand than copies of each book. The colors displayed in the widget represent the state of the individual items (positive or negative growth). In this heat map, blue denotes positive growth and green denotes negative growth. The colors applied to each rectangle are generated by the second metric on the Grid/Graph, Percent Growth. For example, all the items in the image above had negative growth during the month, since more items were sold than were added to inventory. The exception is one item in Electronics, the Hewlett Packard CD-Writer Plus, displayed in green in the previous image. As shown in the following image, its inventory grew 20%.
Flash Web, you the used In denoteMode in MicroStrategygrowth. Forcan changeto docolorssee to positive and negative the steps this, Formatting for a Heat Map widget, page 529. When you hover over a rectangle in the heat map, information about that rectangle is displayed. For example, in the sample above, the cursor is pointing to the rectangle representing the Hewlett Packard CD-Writer Plus. The information displays the metric data for that attribute element, in this case, Begin on Hand and Percent Growth. Compare the data for the Hewlett Packard CD-Writer Plus shown above with the data for the Beatles Anthology displayed below. Note the difference in the size of the rectangles, since the album had 320 copies on hand at the beginning of the month, compared to only 40 CD-Writers. The CD-Writer rectangle is green, representing positive inventory growth, while the album is blue-green, representing a small negative growth. The rectangles around the
903
Dashboard Tutorial
title Music are bluer than the Beatles rectangle, because their growth percentage was more negative.
The selector at the top of the panel stack allows you to choose the month to display. The previous images were calculated for January 2004. When November 2004 is selected, the data changes, so the size, position, and color of the rectangles are different. A portion of the November 2004 heat map is shown below. Note that Books is now to the left of Music and is larger than in
Dashboard Tutorial
January. The rectangle for the Beatles Anthology is about half the size it was in January, and is now greener since its inventory growth is positive, at 32%.
You can log out of MicroStrategy Web, as you will be working in Desktop again.
Creating the Employee Performance panel
Creating a custom group
An Interactive Bubble Graph widget is a conventional bubble plot that allows you to visualize the trends of three different metrics for a set of attribute elements. The data structure for an interactive bubble graph is very specific. At minimum, one attribute and three metrics are required. The dataset report for this widget contains Month of Year and Region, and the metrics Revenue per Employee, Profit per Employee, and Units Sold. To enable drilling on a Bubble Graph widget, an additional attribute is added to the dataset report. This attribute must be a child attribute of a parent attribute already on the rows. In this case, the child attribute is a custom group element that contains call centers, and its parent attribute is Region.
905
Dashboard Tutorial
The custom group organizes the data in a form that can be used by the Drilling Bubble Graph widget. The data in the grid for the child attribute must be displayed so that the total for the child attribute is in the top row of data, followed by the data for the child attribute. You can specify this structure in a custom group. For a more detailed explanation of these requirements, with examples, see Enabling drilling in an Interactive Bubble Graph widget, page 532. The following procedure guides you through creating a custom group with two elements, Northeast and Central. Northeast contains the New York and Boston call centers, while Central contains the Milwaukee and Fargo call centers. For more information about custom groups in general, see the MicroStrategy Advanced Reporting Guide.
To create the custom group
1 In MicroStrategy Desktop, point to New from the File menu, and then select Custom Group. The Custom Group Editor opens. Custom Group dialog box opens, If the Newthe custom group object template.select Empty Custom Group as 2 Double-click Geography (Browsing) in the Object Browser to open the Geography hierarchy.
To create the Northeast element
3 Drag Call Center from the Object Browser and drop it in the Custom Group definition pane (which displays the message Double-click here or drag an object). The Attribute Qualification pane opens. 4 To indicate that a list of attribute elements will comprise this custom group element: a From the Qualify On drop-down list, choose Elements. b From the Operator drop-down list, choose In List.
Dashboard Tutorial
5 To specify the list of Call Center elements to include: a Click Add. The Select Objects dialog box opens. b In the Available objects list, select Boston and New York. c Click > to add them to the Selected objects list.
d Click OK to return to the Attribute Qualification pane. 6 Click OK to return to the custom group. 7 Right-click Custom Group Element1 and select Rename. 8 Type Northeast and press ENTER.
To create the Central element
9 Repeat steps 3 through 6 above, selecting Milwaukee and Fargo instead of Boston and New York.
Drop Call Center on the Double-click here or drag an object text, not the [Add Qualification] text.
10 Right-click Custom Group Element2 and select Rename. 11 Type Central and press ENTER.
To format the custom group elements
To ensure that the Bubble Graph widget works correctly, the custom group elements must be formatted to display data in a format that can be used by the widget. 12 Right-click Northeast and select Show Display Options. The Choose a display option dialog box opens. 13 Select Show element names, individual items within this element and also, expand these individual items if possible. 14 Click OK. 15 Repeat steps 12 through 14 for the Central element. 16 From the Custom Group menu, select Options. The Options dialog box opens. 17 Clear the Enable Hierarchical Display check box.
907
Dashboard Tutorial
18 Select the Enable Subtotals Display check box. 19 Ensure that Above child elements is selected for Custom Group Element Header Display Position. 20 Click OK.
To save the custom group
21 Save and close the custom group, naming it Call Center CG.
1 In MicroStrategy Desktop, point to New from the File menu, and then select Report. The Report Editor opens.
If the New Grid dialog box opens, select Blank Report as the report object template.
2 Add the following objects to the rows of the grid: Year (from the Time hierarchy) Month of Year (from the Time hierarchy) Region (from the Geography hierarchy) Call Center CG (that you created in the previous procedure)
3 Add the following metrics to the columns of the grid: Units Sold (from the Public Objects\Metrics\Sales Metrics folder) Revenue per Employee (from the Public Objects\Metrics\Sales Metrics folder)
Dashboard Tutorial
4 Save and close the report, naming it Employee Performance Dataset Report.
1 If the Dashboard Sample document is not open, open it in the Document Editor in Desktop. 2 From the Data menu, select Add Dataset. The Select a report dialog box opens. 3 Locate and select the Employee Performance Dataset Report. 4 Click Open. The dataset and all the objects on that report are now displayed in the Datasets pane.
1 Right-click the panel stack, point to Panels, and then choose Display Next.
909
Dashboard Tutorial
Panel3 is displayed (you may have to scroll to the right to see its name on the title bar). Panel3 is a blank rectangle, without any objects. Panel3 as the you open the This also sets MicroStrategycurrent panel. Whenbe displayed initially, dashboard in Web, this panel will rather than Daily Order Count or Inventory Analysis.
1 Right-click the panel stack, point to Panels, and then select Manage. The Panels tab of the Properties dialog box opens. 2 In the list of panels, select Panel3. 3 Click Rename. 4 Type Employee Performance, and press ENTER. 5 Click OK to return to the dashboard.
To apply a gradient to a panel
1 Right-click the panel and select Format. The Formatting Objects dialog box opens. 2 Select Container in the list of objects on the left. 3 Click the Background tab. 4 From the Background style drop-down list, select Gradient. 5 Select Tan from the Color 1 drop-down list (the color name appears when you hover over the color swatches). 6 Select Dark Teal from the Color 2 drop-down list.
910 Creating the Employee Performance panel
Dashboard Tutorial
1 Create an empty Grid/Graph by selecting Grid from the Insert menu. When you move the cursor to the Layout area, the pointer becomes crosshairs. 2 Click and drag in the panel stack to add the Grid/Graph. Do not worry about the size or position; you will adjust them later. 3 Drag the following objects from the Datasets pane to the row axis of the Grid/Graph: Month of Year Region
911
Dashboard Tutorial
Call Center CG
4 Drag the following objects from the Datasets pane to the column axis of the Grid/Graph: Revenue per Employee Profit per Employee Units Sold Year
imperative these objects are It isGrid/Graphthatthe widget to workplaced in the correct order on the for properly. Year must be placed on the columns. 5 The Grid/Graph is in edit mode, as indicated by its red hashed border. Press ESC to exit edit mode. 6 Right-click the Grid/Graph and choose Properties. The Properties dialog box opens. 7 On the Layout tab, set the following properties to position and size the Grid/Graph: Left: .04 inches Top: .1 inches Height: 5.3 inches Width: 8.5 inches
9 Select the Grid/Graph. 10 In the Property List, choose Interactive Bubble Graph from the Selected widget drop-down list.
Dashboard Tutorial
1 Sign in to MicroStrategy Web. 2 Navigate to the Dashboard Sample document in your project, and click Dashboard Sample. The dashboard opens in Flash Mode. 3 Switch to Full Screen mode by clicking the Full Screen Mode button in the toolbar. Most of the MicroStrategy toolbars and panels are hidden, which maximizes the amount of the dashboard that can be shown at the same time.
To display the toolbarsinand panels, click the Restore Normal Screen Mode button the toolbar.
Enabling drilling and time series animation
The widget shows all of the parents (custom group elements) and children (call centers) together. When drilling is enabled, only the custom groups are displayed initially. Users can then drill to the call centers. an image of the widget showing the custom group elements For centers combined, see Panel 3: Employee Performance, and call page 878. The time series animation moves the bubble values through time, to provide rapid insight into business trends. A user can run through the entire animation, rewind, fast forward, or move a slider to a specific time. The time range in this widget is January through December.
913
Dashboard Tutorial
in Flash Mode in MicroStrategy enable You must betime series animation in DesktopWeb; you cannotmode in drilling and or in any other MicroStrategy Web. 1 Right-click the Interactive Bubble Graph widget and select Properties. The Properties dialog box opens. 2 Select the Enable drilling check box. 3 Select the Enable time series analysis check box. 4 Click OK to return to the dashboard.
Dashboard Tutorial
The color of the bubbles is derived from the attribute placed on the columns of the Grid/Graph. In this widget, that attribute is Year, as indicated by the color key at the bottom left of the widget. If you hover over a year, the related bubbles are highlighted on the widget. The metrics on the Grid/Graph determine the position and size of the bubbles, as described below: The value of the first metric on the Grid/Graph defines the position of each bubble on the X-axis. The value of the second metric defines the position of each bubble on the Y-axis. The value of the third metric determines the size of each bubble.
Double-click the January 2006 Northeast bubble to drill down to the call centers that comprise the Northeast (the children). The drilling is animated, so you can follow the bubbles as they split and separate. In the sample below, New York is highlighted. Notice that the bubbles from the earlier view remain for comparison, but are shaded to focus attention on the drilled bubbles.
915
Dashboard Tutorial
The widget can display more than one drilled-down attribute. Double-click the January 2005 Northeast bubble, and the widget drills down to the call centers that comprise the Northeast, as shown below.
To return to the original graph, click one of the child bubbles, and the drilled bubbles return to the parent attribute. The time series animation moves the bubble values through time, in this case from January to December. Note that in the preceding images, January is displayed in the upper right corner. To start the time series animation, hover your cursor at the top left corner of the widget, just below the title bar. Click the play button that appears, and notice the months changing in the upper right corner, and the bubbles moving around the graph. The time series animation moves the bubble values through time, to provide rapid insight into business trends. A user can run the entire animation, rewind, fast forward, or move a slider to a specific time. In this widget, the time range is from January through December.
Dashboard Tutorial
The widget in the following image shows the values for May, and also displays the time controls that allow you to interact with the time series animation.
By default, the time controls display only when you hover the cursor over the left corner, but you can choose to always display them.
You can change this setting only in Flash Mode in MicroStrategy Web.
To always display the time controls for a widget
1 In Flash Mode, right-click the widget and select Properties. The Properties dialog box opens. 2 Clear the Auto-Hide time controls check box. 3 Click OK to return to the dashboard. 4 Save the document.
917
Dashboard Tutorial
D
TROUBLESHOOTING DOCUMENTS
D.
Introduction
This section provides explanations of some of the most common issues you may encounter when creating Report Services Documents, in a question and answer format. For more detailed discussions, refer to the relevant sections of this guide.
919
Troubleshooting Documents
My document contains a Grid/Graph displayed as a graph. I set the Width Mode and Height Mode to Fit to contents. After I saved the document, both these properties revert to the default setting of Fixed. Why?
Fit to contents is supported only when Grid/Graphs are displayed as grids.
My document contains a Grid/Graph with attributes but only one metric. The metric values do not display completely. How can I view the full column?
Before switching to PDF View, change the document layout to landscape. From the File menu, select Page Setup. On the Page tab, select Landscape as the Orientation.
When I try to create a view filter on a Grid/Graph, a message appears asking me to convert the shortcut to a local copy of the report. I do not want to convert it.
You cannot create a view filter on a Grid/Graph shortcut because the Grid/Graph is linked to the original report, allowing changes made to the original report to automatically update the Grid/Graph in the document. You have two options: If you want to create a view filter on the Grid/Graph, you must convert the Grid/Graph to a local copy. You can then create the view filter. Changes made to the original report will no longer be passed to the Grid/Graph in the document. If you want to allow changes to the original report to affect the Grid/Graph in the document, click Cancel. You cannot create a view filter.
For information on what actions are allowed in shortcuts, see Linking a Grid/Graph to a report: Adding a Grid/Graph as a shortcut, page 306.
I want to format the No Data Returned message that appears on a Grid/Graph in MicroStrategy Web.
You can format the message using HTML tags, for display in all Web modes except Flash Mode. 1 Right-click the project, and select Project Configuration. The Project Configuration Editor opens.
Troubleshooting Documents
2 Expand the Report Definition category on the left, and select Advanced. 3 Type the message into the No data returned field, using HTML tags. To change the background color, put the message into a table and set the table's background color. 4 Click OK to save the changes and return to Desktop. If the formatted message does not appear, restart IIS or the web server.
Troubleshooting selectors
I cannot change the target of a selector.
Automatic target maintenance is enabled on this layout, which means that all attribute and metric selectors automatically target all Grid/Graphs and panel stacks that are in the same panel or document section as the selector. You can do any of the following: Disable automatic target maintenance. This affects the entire layout, so be sure you want to do this. After you disable it, you must manually maintain selector targets. For instructions on disabling this feature, see Disabling automatic target maintenance to allow manual target selection, page 450. When targets are automatically maintained, you can control what target is chosen for a selector, by placing controls in different document sections. If you cannot move controls to different document sections, you can place them in different panel stacks in the same document section.
For more information about the last two options, including examples, see Controlling targets when targets are automatically maintained, page 447.
921
Troubleshooting Documents
For more information about the effects of automatic target maintenance, see Enabling automatic target maintenance, page 452. If this is the case, you cannot change the targets unless you disable automatic target maintenance. However, be sure that you do want to disable it. For instructions, see Disabling automatic target maintenance to allow manual target selection, page 450. When targets are automatically maintained, you can control what target is chosen for a selector by either: Moving controls to different document sections Placing controls in different panel stacks in the same document section
For more information, including examples, see Controlling targets when targets are automatically maintained, page 447.
The height of a document section is defined to grow, the height is set to 1.5 inches, and the maximum height is set to 10 inches, larger than the expected results. When I view the document in HTML View or export it to HTML, the document section is only 1.5 inches long, and therefore the data is cut off.
When exported to HTML or viewed in HTML, a document section uses the Height setting, regardless of the Height can grow or Maximum height settings, because the exact height cannot be determined during HTML rendering. To allow all the data to be displayed, specify a more accurate Height setting.
Troubleshooting Documents
I placed a metric on a grid and in the Document Header. The values are different. Why?
A metric is calculated differently depending on its location in the document. In this case, the value of the metric on the grid depends on the attributes, consolidations, and custom groups in the grid. The metric in the Document Header is a grand total for the document. For a complete list of how a metric is calculated in various locations within a document, see Using prompts in documents, page 766.
I executed a document and received an error about an incomplete or inconsistent object definition.
The document uses a Freeform SQL report as a dataset. Save this kind of document before you execute it.
923
Troubleshooting Documents
I have two lines with the same line weight, but they show different thicknesses in the PDF.
Typically, this viewing problem can be alleviated by using the Zoom In feature (increase the Zoom%) on the PDF. The lines display with the same thickness on the screen. This will not affect the printed output. All lines will print as defined, even if they display differently when viewing an Adobe PDF.
If I see an image in Design View, why doesnt it show up when I view the document as PDF?
Make sure the image is in .bmp, .jpg, .jpeg, or .gif format. It must be accessible by both the Intelligence Server machine that runs the document and the user who is designing the document. For example, use a Web server machine to which designers have access and to which the Intelligence Server machine has access. For more information, see Inserting images in a document, page 130.
My PDF has an extra page, with a smudge on the left. What happened?
You moved your controls too far to the right. In Design View, move the controls to the left of the vertical page separator, which is represented by a dashed line.
My document contains a link to a prompted report. Answers to the prompts are passed using both the originMessageID and promptsAnswerXML parameters. When I drill on the link, I am prompted, even though the information should have been passed in the link parameters.
Your destination report must contain nested prompts, since the combination of prompt XML and message ID does not work in this case. A nested prompt is where the definition of one prompt depends on the answer to another prompt. For example, the first prompt is for category, and the second is for subcategory. The list of subcategories for the second prompt depends on the answer to the category prompt. If you use both prompt XML and message ID in this case, when you click the link, the answer to the subcategory prompt is not passed to the destination. You are re-prompted for subcategory.
Troubleshooting Documents
My document contains 10 reports, and the Jobs per user parameter in the Project Configuration Editor is set to 5. The document does not finish executing.
The second five reports on the document do not wait until the first five reports execute, so the document cannot finish executing. To execute a document with ten reports, set the Jobs per user and Jobs per user session parameters to at least ten. For more information on these Project Configuration Editor parameters, see the MicroStrategy System Administration Guide. not want Be cautious increasing these parameters, as you dowhich canto have multiple users running many jobs simultaneously, overwhelm Intelligence Server or your database.
An image does not display in PDF View, when exported to PDF, or in MicroStrategy Mobile.
Ensure that the image is saved in one of the image types listed below; other image types cannot be displayed in PDF View, when exported to PDF, or in MicroStrategy Mobile. bmp jpg jpeg gif
If the image file path is using an http reference to a central Web Server machine, such as http://microstrategy/Test/myimage.jpg, ensure that the URL does not contain any spaces. You can remove the space from the image name or replace the space with %20. For more information about inserting images into documents, see Inserting images in a document, page 130.
925
Troubleshooting Documents
I cannot switch to Flash Mode in MicroStrategy Web; it is not an option in the View menu.
To display a document in Flash Mode in MicroStrategy Web, Flash Mode must be enabled for the document, the user, and the project, as described below. A user with the appropriate privileges can enable Flash Mode for a document using either MicroStrategy Web or Desktop. The instructions below are for Desktop. a Edit the document in Desktop. b From the Format menu, select Document Properties. The Document Properties dialog box opens. c In the Available display modes list on the Document tab, select the Flash check box.
d You can specify that this document always opens in Flash Mode when it is initially opened in Web. To do this, select the Default radio button next to Flash. Enable Flash Mode in your User Preferences in MicroStrategy Web. a Click the Preferences link at the top of the MicroStrategy Web page. b On the left, click Report Services. c Select the Enable Flash Mode check box.
In MicroStrategy Web, a project administrator can enable Flash Mode for a project, using the project default preference. Contact your project administrator to enable it.
In MicroStrategy Web, a graph displays in Interactive Mode but does not display properly in Flash Mode.
Some graph styles are not supported in Flash Mode. You may also encounter issues with other aspects of graph formatting which are not supported in Flash Mode. If issues such as these occur, you must change the graph style of the report to a supported style.
Troubleshooting Documents
The following graph styles are the only graph styles supported in Flash Mode:
Graph Style Vertical Bar Graph Sub-type Clustered Absolute Percent Stacked Clustered Dual-axis Clustered Absolute Percent Stacked Clustered Dual-axis
Horizontal Bar
Absolute Dual-axis Absolute Absolute Dual-axis Absolute Absolute Percent Stacked Absolute Pie Ring Pie Note: Pie graphs may appear slightly larger in Flash Mode than they do in other display modes.
Hi-Low-Open-Close X-Y Scatter X-Y Scatter Dual-axis Bubble Note: The minimum, maximum, and interval settings for the Bubble graph may not be displayed in Flash Mode exactly as it does in other display modes.
Combination graphs that use a combination of only two styles of graph, as long as the graph styles used in the combination are listed in this table. All other combination graphs are not supported. Note: The alignment of the Y-axis labels may appear differently in Flash Mode than they do in other display modes.
927
Troubleshooting Documents
Other display issues include the following: Nested labels in graphs are not displayed in Flash Mode. If the graph currently uses nested labels, switch to another label type before opening the graph in Flash Mode. If a graph legend is positioned manually rather than automatically, the graph legend may not be displayed in exactly the same position in Flash Mode. Donut bevel effects for circular data markers in a graph may appear different in Flash mode. For a more consistent look across modes, consider using a different bevel effect, such as Sphere or Smooth Edge.
For more information on working with graphs, see the MicroStrategy Advanced Reporting Guide.
In MicroStrategy Web, an image displays in Interactive Mode but does not display in Flash Mode.
The image file path may be incorrect or unsupported in Flash Mode. The file location of the image must use an HTTP-based path, not a network or local image path. For information about adding images to documents and using the correct image path, see Inserting images in a document, page 130.
E
ADVANCED FUNCTIONS FOR CALCULATED EXPRESSIONS
E.
Introduction
This appendix lists the advanced functions that are supported for calculated expressions in documents. The syntax for each function is included because you must type the syntax into a text field to use an advanced function in a calculated expression. For detailed information on function syntax and examples of each function, see the MicroStrategy Functions Reference. For more information on calculated expressions, see Creating calculated expressions, page 97. Functions are grouped into the following: Internal functions, page 930 Null/Zero functions, page 930 Financial functions, page 930 Math functions, page 932 Statistical functions, page 933
929
Internal functions
Function Banding BandingC BandingP Case CaseV Syntax Banding(Argument, StartAt, StopAt, Size) BandingC(Argument, StartAt, StopAt, BandCount) BandingP (Argument, Boundary1, Boundary2, Boundary3...BoundaryN) Case (Condition1, ReturnValue1, Condition2, ReturnValue2, ..., DefaultValue) CaseV (Argument, Value1, Result1, Value2, Result2, ..., DefaultResult)
Null/Zero functions
Function NullToZero ZeroToNull Syntax NullToZero(Argument) ZeroToNull(Argument)
Financial functions
Function Accrint Accrintm Coupdaybs Coupdays Coupdaysnc Coupncd Coupnum Couppcd Cumipmt Cumprinc Db Syntax Accrint <Par = 1000, Basis = 0> (Issue, FirstInterest, Settlement, Rate, Frequency) Accrintm <Par = 1000, Basis =0 > (Issue, Maturity, Rate) Coupdaybs <Basis = 0> (Settlement, Maturity, Frequency) Coupdays <Basis = 0> (Settlement, Maturity, Frequency) Coupdaysnc <Basis = 0> (Settlement, Maturity, Frequency) Coupncd <Basis = 0> (Settlement, Maturity, Frequency) Coupnum <Basis = 0> (Settlement, Maturity, Frequency) Couppcd <Basis = 0> (Settlement, Maturity, Frequency) Cumipmt <Type = 0> (Rate, Nper, Pv, Start, End) Cumprinc <Type = 0> (Rate, Nper, Pv, Start, End) Db <Month = 12> (Cost, Salvage, Life, Period)
930
Function Ddb Disc Dollarde Dollarfr Duration Effect Fv Intrate Ipmt Mduration Nominal Nper Oddfprice Oddfyield Oddlprice Oddlyield Pmt Ppmt Price Pricedisc Pricemat Pv Rate Received Sln
Syntax Ddb <Factor = 2> (Cost, Salvage, Life, Period) Disc <Basis = 0> (Settlement, Maturity, Price, Redemption) Dollarde (FractionalDollar, Decimal) Dollarfr (DecimalDollar, Fraction) Duration <Basis = 0> (Settlement, Maturity, CouponRate, YieldRate, Frequency) Effect(NominalRate, Npery) Fv <Type = 0> (Rate, Nper, Pmt, Pv) Intrate <Basis = 0> (Settlement, Maturity, Investment, Redemption) Ipmt < FV = 0, Type = 0 > (Rate, Period, Nperiod, PV) Mduration <Basis = 0> (Settlement, Maturity, CouponRate, YieldRate, Frequency) Nominal(EffectiveRate, Npery) Nper <Type = 0> (Rate, Pmt, PV, FV) Oddfprice <Basis = 0> (Settlement, Maturity, Issue, FirstCoupon, CouponRate, YieldRate, Redemption, Frequency) Oddfyield <Basis = 0> (Settlement, Maturity, Issue, FirstCoupon, CouponRate, Price, Redemption, Frequency) Oddlprice <Basis = 0> (Settlement, Maturity, LastInterest, CouponRate, YieldRate, Redemption, Frequency) Oddlyield <Basis = 0> (Settlement, Maturity, LastInterest, CouponRate, Price, Redemption, Frequency) Pmt <FV = 0, Type = 0> (Rate, Nper, PV) Ppmt <Type = 0> (Rate, Per, Nper, PV, FV) Price <Basis = 0> (Settlement, Maturity, CouponRate, YieldRate, Redemption, Frequency) Pricedisc <Basis = 0> (Settlement, Maturity, DiscRate, Redemption) Pricemat <Basis = 0> (Settlement, Maturity, Issue, CouponRate, YieldRate) Pv <Type = 0> (Rate, Nper, Pmt, FV) Rate <FV = 0, Type = 0, Guess = 0 > (Nperiod, Payment, PV) Received <Basis = 0> (Settlement, Maturity, Investment, Discount) Sln(Cost, Salvage, Life)
931
Syntax Syd < > (Cost, Salvage, Life, Period) Tbilleq(Settlement, Maturity, Discount) Tbillprice(Settlement, Maturity, Discount) Tbillyield < > (Settlement, Maturity, Price) Yield <Basis = 0> (Settlement, Maturity, CouponRate, Price, Redemption, Frequency) Yielddisc <Basis = 0> (Settlement, Maturity, Price, Redemption) Yieldmat < Basis = 0 > (Settlement, Maturity, Issue, Rate, Price) Vdb <Factor = 2> (Cost, Salvage, Life, Period)
Math functions
Function Abs Acos Acosh Asin Asinh Atan Atan2 Banding BandingC BandingP Ceiling Combine Cos Cosh Cumipmt Cumprinc Db Ddb Syntax Abs(Argument) Abs(Argument) Acosh(Argument) Asin(Argument) Asinh(Argument) Atan(Number) Atan2(x_num, y_num) Banding(Argument, StartAt, StopAt, Size) BandingC(Argument, StartAt, StopAt, BandCount) BandingP (Argument, Boundary1, Boundary2, Boundary3...BoundaryN) Ceiling(Argument) Combine(Number, Number_Chosen) Cos(Argument) Cosh(Argument) Cumipmt <Type = 0> (Rate, Nper, Pv, Start, End) Cumprinc <Type = 0> (Rate, Nper, Pv, Start, End) Db <Month = 12> (Cost, Salvage, Life, Period) Ddb <Factor = 2> (Cost, Salvage, Life, Period)
932
Function Degrees Exp Factorial Floor Fv Int Ipmt Ln Log Log10 Mod Power Quotient Radians Randbetween Round Round2 Sin Sinh Sqrt Tan Tanh Trunc
Syntax Degrees(Argument) Exp(Argument) Factorial(Argument) Floor(Argument) Fv <Type = 0> (Rate, Nper, Pmt, Pv) Int(Argument) Ipmt < FV = 0, Type = 0 > (Rate, Period, Nperiod, PV) Ln(Argument) Log(Argument, Base) Log10(Argument) Mod(Argument, Divisor) Power(Argument, Power) Quotient(numerator, denominator) Radians(Argument) Randbetween(bottom, top) Round(Argument) Round2(Argument, Precision) Sin(Argument) Sinh(Argument) Sqrt(Argument) Tan(Argument) Tanh(Argument) Trunc(Argument)
Statistical functions
Function BetaDistribution BinomialDistribution ChiSquareDistribution Syntax BetaDistribution < Lower Bound = 0, Upper Bound = 1 > (x, alpha, beta) BinomialDistribution <Cumulative = 0> (x, n, p) ChiSquareDistribution(x, df)
933
Function Confidence CritBinomial ExponentialDistribution FDistribution Fisher GammaDistribution HypergeometricDistribution InverseBetaDistribution InverseChiDistribution InverseFDistribution InverseFisher InverseGammaDistribution InverseLognormalDistribution InverseNormDistribution InverseNormSDistribution InverseTDistribution LogNormalDistribution NegativeBinomialDistribution NormalDistribution Permut PoissonDistribution Standardize StandardNormalDistribution TDistribution WeibullDistribution
Syntax Confidence(alpha, stdev, size) CritBinomial(trials, probability_s, alpha) ExponentialDistribution <Cumulative = 0> (x, lambda) FDistribution(x, df1, df2) Fisher (x) GammaDistribution <Cumulative = 0> (x, alpha, beta) HypergeometricDistribution(x, n, M, N) InverseBetaDistribution < Lower Bound = 0, Upper Bound = 1 > (probability, x, alpha, beta) InverseChiDistribution(x, df) InverseFDistribution (x, df1, df2) InverseFisher(x) InverseGammaDistribution (x, alpha, beta) InverseLognormalDistribution(x, mean, stdev) InverseNormDistribution(x, mean, stdev) InverseNormSDistribution(x) InverseTDistribution(probability, df) LognormalDistribution(x, mean, stdev) NegativeBinomialDistribution(f, s, p) NormalDistribution <Cumulative = 0> (x, mean, stdev) Permut(n, m) PoissonDistribution <Cumulative=0> (x, lambda) Standardize(x,mean,stdev) StandardNormalDistribution (Argument) TDistribution(x, df) WeibullDistribution <Cumulative = 0> (x, alpha, beta)
934
F
F.
Introduction
A link is a connection in a document to another document, a report, or a web page. A link lets an analyst execute another document or report (the target) from a document (the source), and to pass parameters to answer any prompts that are in the target. For example, if a user is viewing a document containing regional sales, he can click a particular region to execute another document that displays sales for the stores in that region. This is a form of drilling, where the user has drilled from region to store. The source document could also link to the underlying dataset report, to display profit and cost values as well. The source could link to a web page that contains economic information about the region. A link can also email or export a document or report, or subscribe to a document or report. This appendix provides instructions for creating link URLs manually, that is, by using the object ID and link syntax. You can also use the Link Editor to create links; it is easier and more intuitive than manually defining link URLs. For a comparison of the two methods, see Comparison of Link Editor and manually creating link URLs, page 936.
935
Create multiple links for the same object Run a report or document Access a web site Open the target in a new window Answer prompts
For more information, including examples and instructions, see Chapter 7, Linking from Documents. You can manually create a link URL that performs any of the actions available in the Link Editor. This method also allows the following additional functionality:
Execute a report by supplying a template and a filter Subscribe to the target Email the target Export the target
However, you need to know and understand the link syntax and find the object ID. Instructions and examples follow for creating link URLs.
937
MicroStrategy Web, but you can add a tooltip to display the link URL or any other information. The tooltip also displays as pop-up text, but only in MicroStrategy Web. For more information, see Creating a pop-up tooltip, page 162.
Session parameters are used in the following examples: http://MicroStrategy/asp/Main.aspx?server=MyWebServer &project=MicroStrategy&&uid= username&pwd=password&evt=... http://WebMstr7/servlet/mstrWeb?server= MyWebServer&project=MicroStrategy&uid=username&pwd=pa ssword&evt=... For more information on session parameters, see the Web Software Development Kit, available in the MicroStrategy Developer Library, which is sold as part of the MicroStrategy SDK. In the Web SDK, information on the URL API is located in the Customizing MicroStrategy Web section, in Part I: Fundamentals of Customization.
Event parameter
The event parameter signifies the action, such as a document or report execution, to trigger. Every specific action is represented by a unique event. The format is evt=event#, where event# is replaced by one of the following:
Event# 3034 3036 Event Subscribe to a report, document, or HTML document Send a report, document, or HTML document via e-mail on a schedule Note: MicroStrategy Narrowcast Server must be installed and configured on your system before a document can be sent via e-mail. 3037 3062 3067 3069 2048001 4001 4033 32001 Send a report, document, or HTML document via e-mail now Export a report to PDF Export a report or HTML document Export a document to PDF Execute a document Execute a report Execute a report by supplying a template and a filter Execute an HTML document
939
Object ID parameter
The Object ID parameter specifies which document or report to execute. The parameter varies depending on which type of object you are executing. The parameters are described in the following table.
Object Document Source document (the document being edited) Report Template+filter report Parameter documentID=objectID documentName={&Document} reportID=objectID templateID=template_objectID&filterID=filter_objectID Note: Replace ReportName with the name of the report.
1 In Desktop, right-click the document, report, or HTML document, and select Properties. The Properties dialog box opens. Alternatively, if you are editing the object, select Properties from the File menu. 2 The ID is located on the General tab.
941
information on attribute element IDs is located in the API Reference, on the Classes page under WebElement. to determine the element Another method attribute elements and IDs is to create a document with the desired {&AttributeName@ElementID} auto text codes. Copy the element IDs into the links of your source document. A sample syntax for the example follows: elementsPromptAnswers={&Region@GUID}; {&Region@ElementID} To pass multiple elements from the same attribute, list the element IDs separated by a comma, as in the following sample. Note that in this scenario you have to enter the element IDs (represented by AttributeElementID) manually; the element ID auto text code can only generate one element ID at a time. elementsPromptAnswers=Attribute; AttributeElement1ID,AttributeElement2ID You can also pass elements from multiple attributes by using a separate elementsPromptAnswers parameter for each different attribute. As with other parameters, join them with an ampersand, that is, &. An example using Region and Year follows. elementsPromptAnswers={&Region@GUID}; {&Region@ElementID}&elementsPromptAnswers={&Year@Elem entID};{&Year@ElementID} to very strict syntax. If this syntax Adobes HTML parser conformsandadoes not display the intended is not followed, the parser breaks attributes. For more information on the syntax, see http://livedocs.adobe.com/flex/201/langref/flash/ text/TextField.html#htmlText.
Prompt XML
Prompt XML represents prompt answers in an XML format. It incorporates dynamic information from the executed source document into the XML string. Prompt XML is useful because it enables prompt answers to be
maintained even when the message ID no longer exists, which can occur if the session is lost, for example. the prompts the The XML cannot be applied unless the same IDs in the target arein the same physical prompt objects with as the prompts source document. If the prompts are contained in filters, use links to filters instead of embedded filter prompts. For more information on links to filters, see the MicroStrategy Advanced Reporting Guide. XML can create long URL, which up in the Promptuser hovers over athe link. A lengthy showscould also document when a URL be truncated and could produce errors. To resolve this issue, use the document message ID described below if the MicroStrategy session remains open. The format for prompt XML is: promptsAnswerXML={&PROMPTXML} The auto text code {&PROMPTXML} generates the appropriate XML string at run time. You can also manually code the prompt XML, but the format and usage of prompt XML is beyond the scope of this manual. For more information, refer to the Web Software Development Kit, available in the MicroStrategy Developer Library, which is sold as part of the MicroStrategy SDK. In the Web SDK, information on prompt XML is located in the API Reference, on the Classes page under WebPrompt.
Message ID
The message ID uniquely identifies an instance of a report, document, or HTML document. If different users execute the same report, different instances and therefore different message IDs are produced. The message ID allows you to pass the prompt answers from the source document to the target. The format is: originMessageID={&DOCUMENTMESSAGEID} The auto text code {&DOCUMENTMESSAGEID} supplies the correct message ID at run time. You can combine prompt XML and message ID, as long as the destination does not contain nested prompts. If both parameters answer the same prompt, the prompt XML parameter takes precedence over the message ID. A nested prompt is where the definition of one prompt depends on the answer to another prompt. For example, the first prompt is for category, and
943
the second is for subcategory. The list of subcategories for the second prompt depends on the answer to the category prompt. If you use both prompt XML and message ID in this case, when you click the link, the answer to the subcategory prompt is not passed to the destination. You are reprompted for subcategory.
1 From the Document Editor in Design View, select the text field on which to drill. 2 In the Property List, select True from the Is Hyperlink drop-down list. 3 In the Property List, type the target URL in the Hyperlink field. Use one of the following syntaxes and replace the italicized variables, where MSTRWebURL represents the correct base URL syntax for your Web environment and promptinfo represents any of the optional prompt information parameters:
Action Execute a document Re-execute the source document Execute a report Execute a report by supplying the template and filter Syntax http://MSTRWebURL?evt=2048001& documentID=objectID&viewMode=2&promptinfo http://MSTRWebURL?evt=2048001& documentName={&Document} &viewMode=2&promptinfo http://MSTRWebURL?evt=4001&reportID=objectID&promptinfo http://MSTRWebURL?evt=4033&templateID=objectID&filterID= objectID&promptinfo
Action Execute a dataset report of the source document Export a document, HTML document, or report
Syntax http://MSTRWebURL?evt=4001& reportID={&ReportName:GUID} &promptinfo http://MSTRWebURL?evt=3067&documentID=objectID &promptinfo http://MSTRWebURL?evt=3067&documentID=objectID &promptinfo http://MSTRWebURL?evt=3067&reportID=objectID &promptinfo http://MSTRWebURL?evt=3069&documentID=objectID &promptinfo http://MSTRWebURL?evt=3062&reportID=objectID &promptinfo http://MSTRWebURL?evt=3037&objectID=objectID &objectType=55&promptinfo http://MSTRWebURL?evt=3037&objectID=objectID &objectType=3 &promptinfo http://MSTRWebURL?evt=3036&objectID=objectID &objectType=55&promptinfo http://MSTRWebURL?evt=3036&objectID=objectID &objectType=3&promptinfo http://MSTRWebURL?evt=3034&objectID=objectID &objectType=55&promptinfo http://MSTRWebURL?evt=3034&objectID=objectID &objectType=3&promptinfo
Send a document or HTML document via email now Send a report via email now Send a document or HTML document via email on a schedule Send a report via email on a schedule Subscribe to a document or HTML document Subscribe to a report
be installed MicroStrategy Narrowcast Server mustemailed. and configured on your system before a document can be Alternatively, you can right-click the control and select Properties. The Properties dialog box opens. On the General tab, select the Is Hyperlink check box and type the target URL in the Hyperlink text box.
945
include step-by-step instructions to create the links, but assume a familiarity with report and document creation. For information on creating documents, see Chapter 1, Designing and Creating Documents. For details on creating reports, refer to the Desktop Help or the MicroStrategy Basic Reporting Guide. These examples use data from the MicroStrategy Tutorial. The report used throughout these examples is Revenue vs. Forecast, located in the Public Objects\Reports\ Subject Areas\Sales and Profitability Analysis folder. It is a prompted report, asking for Region, Category, and Quarter. It shows revenues versus forecasted revenues. You will create copies of this report and modify them for use in different types of document drilling. All the documents created in these examples should be saved in the Public Objects\Reports folder or a subdirectory so that the documents are available when you run MicroStrategy Web. that is, The examples use the .NET URL syntax,you work in a J2EE MicroStrategy/asp/Main.aspx. If environment instead, replace it with the correct syntax, as indicated in Base URL syntax, page 938. Also, replace localhost in the URL syntax with the name of your Web server; localhost is used when the MicroStrategy Web Server is located on your own machine. Before starting the examples, create a copy of the Revenue vs. Forecast report and modify it as described below.
Prerequisite: To set up a report
1 Copy the report Revenue vs. Forecast report. Rename the copy Revenue vs. Forecast (subtotals). 2 Open Revenue vs. Forecast (subtotals) in the Report Editor. 3 Drag and drop Subcategory from the report template to the Report Objects. 4 Add subtotals by region, which will allow you to easily compare the document and the report: a Select Subtotals from the Data menu. b Click Advanced. c In the Subtotals list, select Total.
e f
g Click OK, then OK again to return to the report. 5 Execute the report, keeping the default prompt answers. 6 Save and close the report. The Save Options dialog box opens. 7 Select Prompted to be reprompted when the report is rerun. 8 Select Only filter will be prompted. 9 Clear the Set the current prompt answers to be the default prompt answers check box. 10 Click OK. 11 Note the report ID for this report: a Right-click the report in Desktop and select Properties. b Note the ID, then click OK.
947
The source document in MicroStrategy Web displays as shown in the following sample:
When the link at the bottom is clicked, the Revenue vs. Forecast (no prompts) report is executed. The following sample does not show the complete report; it only displays one quarter of the data and the totals, allowing you to see that the totals agree. Both the document and the report are run for all regions, all categories, and all quarters.
Although the source document links to its own dataset report, this does not have to be the caseyou can drill to any report, document, or HTML document. Before creating the document, you must create the dataset report and note its report ID, as described in the Prerequisites procedure that follows.
1 Copy the Revenue vs. Forecast (subtotals) report. Rename the copy Revenue vs. Forecast (not prompted). 2 Open Revenue vs. Forecast (not prompted) in the Report Editor. 3 Delete the three qualifications in the report filter. This removes the prompts from the report. 4 Save and close the report. 5 In Desktop, right-click the report and select Properties. 6 Double-click the ID (the numbers, not the title) and press CTRL+C. This saves the report ID so that you can use it in the link.
To create the source document
1 Create a new document, using Revenue vs. Forecast (not prompted) as the dataset report. 2 Group the document by Region. 3 Add static text fields for Region, Revenue Forecast, and Forecast to the Document Header. 4 Drag and drop Region, Revenue Forecast, and Revenue from the Datasets pane to the Region Header. data Region Header Placing thelevel, fields on theat the level of theaggregates the data at the region rather than dataset report, which is Region/Category/Subcategory/Quarter. 5 Format and align the controls as you desire. 6 Save the document as Example 1: Document Drilling.
949
1 In the Document Footer, add the following static text field: Click here for a breakdown by region, category, and quarter. 2 Right-click the control created in step 1 and select Properties. The Properties dialog box opens. 3 On the General tab, select the Is hyperlink check box. 4 Type the following in the Hyperlink box: http://localhost/MicroStrategy/asp/ Main.aspx?evt=4001&reportID= 5 Press CTRL+V to paste the report ID that you copied previously. 6 Click OK.
While all these procedures use the Properties dialog box for continuity, you can use the Property List to create the link instead.
7 Save and close the document. To view the document, run it in MicroStrategy Web. To drill to the report, click the link at the bottom of the document. If the same target document called a prompted report instead, you would have to answer the prompts before the report is executed. You can pass prompt answers in the link. The next example uses a prompted document as the source document and passes those prompts in the link to a prompted report.
included in the following sample, so the data values are smaller than in the previous document sample.
The link at the bottom of the document executes a different report, which contains prompts. The prompts do not have to be answered before the report is executed because the prompt answers are contained in the link. The same information is used to execute both the document and the report in this example. The following sample displays only a portion of the complete report, allowing you to see that the totals agree and that only Books have been included in the report.
951
1 Create a new document, using Revenue vs. Forecast (subtotals) as the dataset report. 2 Group the document by Region. 3 Add static text fields for Region, Revenue Forecast, and Forecast to the Document Header. 4 Drag and drop Region, Revenue Forecast, and Revenue from the Datasets pane to the Region Header. 5 Format and align the controls as you desire. 6 Save the document as Example 2: Document Drilling.
To create a link with a message ID
1 In the Document Footer, add the following static text field: Click here for a breakdown by region, category, and quarter. 2 Right-click the control created above and select Properties. 3 On the General tab, select the Is hyperlink check box. 4 Type the following in the Hyperlink box, replacing reportID with the report ID of the Revenue vs. Forecast (subtotals) report: http://localhost/MicroStrategy/asp/Main.aspx?evt=4001 &reportID=reportID&originMessageID={&DOCUMENTMESSAGEI D} 5 Click OK. 6 Save and close the document.
Run the document in Web, answering the prompts with the following selections: Quarter: four quarters of any year Category: Books Region: All regions
After the document is displayed, click the link to execute the prompted report.
Each link executes the Revenue vs. Forecast (subtotals) report, which breaks down the values by category and quarter. The list of attribute elements
953
answers the reports prompt on Region, so only the selected Region is included in the target report, as shown in the following sample:
The sample displayed above is a composite, allowing you to see that the totals agree.
To create the source document
1 Copy the Example 1: Document Drilling document. Rename the copy Example 3: Document Drilling. 2 Open Example 3: Document Drilling in the Document Editor. 3 Delete the Click here control in the Document Footer, to remove the previous link.
To create a link with a list of attribute elements
1 Right-click the {Region} control in the Region Header and select Properties. 2 On the General tab, select the Is hyperlink check box. 3 Type the following in the Hyperlink box, replacing reportID with the report ID of the Revenue vs. Forecast (subtotals) report: http://localhost/MicroStrategy/asp/ Main.aspx?evt=4001&reportID=reportID &elementsPromptAnswers={&Region@GUID}; {&Region@ElementID} The auto text code {&Region@ElementID} resolves at run time to the element ID of the attribute element that is clicked on in the document. 4 Click OK.
5 Save and close the document. Run the document in MicroStrategy Web and click the link to execute the prompted report.
The link at the bottom of the document executes a prompted report. However, when the link is clicked, no prompts are displayed because all the prompt answers are contained in the link. The following sample does not
955
display the complete report, but allows you to verify that the totals agree and that only Books have been included in the report.
1 Copy the Example 2: Document Drilling document. Rename the copy Example 4: Document Drilling. 2 Open Example 4: Document Drilling in the Document Editor. 3 Delete the Click here text field in the Document Footer to remove the previous link.
To create a link with prompt XML
1 In the Document Footer, add the following static text field: Click here for a detailed report. 2 Right-click the control created in step 1 and select Properties. 3 On the General tab, select the Is hyperlink check box. 4 Type the following in the Hyperlink box, replacing reportID with the report ID of the Revenue vs. Forecast (subtotals) report: http://localhost/MicroStrategy/asp/Main.aspx?evt=4001 &reportID=reportID&promptsAnswerXML={&PROMPTXML}
956 Examples of link URLs created manually
2011 MicroStrategy, Inc.
The auto text code {&PROMPTXML} generates the appropriate XML string when the link is clicked. 5 Click OK. 6 Save and close the document. To get the results displayed in the screen shots, run the document in Web, selecting the following prompt answers: Quarter: four quarters of any year Category: Books Region: All regions
Click the link at the bottom of the document to execute the report.
957
GLOSSARY
Autostyle A document that stores formatting properties for various control types. auto text code Dynamic text that is populated by the document or dataset, consisting of the documents or datasets properties rather than data from the data warehouse. Examples of auto text codes, which can be considered as a type of variable, are document name, page number, and execution time. Auto text codes are contained in text field controls on a document. See also: Data field Text field
cache A special data store holding recently accessed information for quick future access. Caching is normally done for frequently requested reports or documents so that they execute faster, because they need not run against the data warehouse. Results from the data warehouse are stored separately and can be used by new job requests that require the same data. In the MicroStrategy environment, when a user runs a report for the first time, the job is submitted to the database for processing. However, if the results of that report are cached, the results can be returned immediately without having to wait for the database to process the job the next time the report is run.
Glossary: Autostyle
959
Glossary
Document caching generates the document only oncethe first time that you execute a document in a specific mode (such as Express Mode or Interactive Mode) in MicroStrategy Web. Subsequent document executions in the same mode use the cache. If document caching is disabled, the document query is submitted to your data warehouse every time that you execute the document in a different mode. calculated expression A metric obtained dynamically, directly from metrics on a document dataset, by using at least one of the metrics in the document. Calculated expressions allow you to use simple arithmetic operators (+, -, *, /) to combine metrics from different datasets in the document. See also: Derived metric
compound join A way to join a documents multiple datasets. It matches any common attributes, then creates a virtual dataset by sequentially proceeding through dataset rows to create a complete set of joined rows. A compound join saves memory space and processing time. conditional formatting Used to format specified controls in a document depending on predefined criteria. It allows certain properties of controls, including sections, to be controlled by data-driven conditions. Conditional formatting in documents is similar to thresholds in reports.
Glossary
control Any item in the documents Layout area that you can select. This can be a text field, line, rectangle, image, panel stack, selector, Grid/Graph, or HTML container. These different kinds of controls are referred to as control types. See also: Grid/Graph HTML container Panel stack Selector Text field
control default A set of properties that can be set for each type of control and each section in a document. You can set the defaults according to the control that is currently selected; afterward, its format is applied to any object of the same type that you create in the document. dashboard A visually intuitive display of data that summarizes key business indicators for a quick status check. A special type of document, dashboards usually provide interactive features that let users change how they view the dashboards data. data field Dynamic text that is populated from a dataset with data that originated in the data warehouse (or an Intelligence Server cache). A data field is only a reference to the metric, attribute, consolidation, or custom group on a report. Data fields are contained in text field controls on a document. See also: Auto text code Text field
dataset A MicroStrategy report that retrieves data from the data warehouse or cache. It is used to define the data available on a document.
Glossary: control
961
Glossary
Datasets 1. A pane in the Document Editor that shows all objects (grouped by datasets) that can be used in the document. 2. All objects that can be used in the document as supplied by the datasets. Dataset objects are attributes, consolidations, custom groups, and metrics. data warehouse 1. A database, typically very large, containing the historical data of an enterprise. Used for decision support or business intelligence, it organizes data and allows coordinated updates and loads. 2. A copy of transaction data specifically structured for query, reporting, and analysis. derived metric A metric based on data already available from metrics on a document dataset. It is calculated on the Intelligence Server, not in the database. Use a derived metric to perform column math, that is, calculations on other metrics, on data after it has been returned from the database. See also: Calculated expression
drill A link from one document to another document, report, or HTML document. Prompt answers for the destination can be included in the drill. document 1. A container for objects representing data coming from one or more reports, as well as positioning and formatting information. A document is used to format data from multiple reports in a single display of presentation quality. 2. The MicroStrategy object that supports the functionality defined in (1). Grid/Graph A control placed in a document that displays information in the same way a MicroStrategy report does.
Glossary
grouping A way to create a hierarchical structure for a document. History List A folder where users put report results for future reference. HTML container A control that either displays real-time information from the web or displays formatted HTML. Layout area The middle panel of the Document Editor in which you place data or other controls to determine the appearance of the document when it is viewed as a PDF. link A connection from a document to another document or a report. A link lets an analyst execute another document or report (the target) from a document (the source), and to pass parameters to answer any prompts that are in the target. page-by Interactively displaying groups on separate pages in PDF View. It allows the end user to dynamically select group elements as criteria for analysis. The PDF that results from this selection is called a page of the original document. panel A way of grouping data in a document so that users can navigate subsets of data as if the subsets were pages in a smaller document. Each page, or layer of data, is a panel; a group of panels is called a panel stack. panel stack The holder for a collection of panels, or layers of data, in a document. A user can navigate or flip through the panels in a panel stack; only one panel is displayed at a time.
Glossary: grouping
963
Glossary
project 1. The MicroStrategy object in which you define all of the schema and application objects, which together provide a flexible reporting environment. A project is the highest-level intersection of a data warehouse, metadata repository, and user community, containing reports, filters, metrics, and functions. 2. An object containing the definition of a project, as defined in (1). The project object is specified when requesting the establishment of a session. Property List The list of settings used to specify the appearance or any other characteristic of a control on a document. report instance A container for all objects and information needed and produced during report execution including templates, filters, prompt answers, generated SQL, report results, and so on. It is the only object that is referenced when executing a report, being passed from one special server to another as execution progresses. scheduling A MicroStrategy Intelligence Server feature that is used to automate specific tasks. selector A type of control in a document that allows a user to: Flip through the panels in a panel stack, to see different predefined layers of data, or pages, in the same document Display different attribute elements or metrics in a Grid/Graph
summary metric A shortcut to a subtotal, or a subtotal metric allowing explicit aggregation in documents. A summary metric allows you to select the function to use to calculate the subtotal (that is, a summary).
Glossary
text field A type of control in a document that displays text in the document. These different types of text content are: Static text, which does not change and serves as a label Dynamic text, which is populated by the document or dataset. There are two types of dynamic text:
Data field, which is populated from a dataset with data that originated in the data warehouse (or an Intelligence Server cache). A data field is only a reference to an object on a report. Auto text code, which is populated by the document or dataset, consisting of their properties rather than data from the data warehouse
virtual dataset A dataset held in memory that is the result of a compound join between multiple datasets in a document. widget A type of control that presents data in a visual and interactive way; an interactive Flash-only graph that dynamically updates when a new set of data is selected. Some types include Gauge, Heat Map, and Stacked Area widgets.
965
Glossary
INDEX
Symbols
.NET, URL syntax for a link URL 938 rounded rectangle 129 section 45 shape 129 static text 52 text 51 adding a data field 53 attribute form 56 by typing 57 using the Datasets pane 54 adding a page break 229 after a section 229 at a new section 229 before a section 229 before and after a section 230 between groups 229 for a group 280 aggregation dynamic 120 explicit 107 alerting. See conditional formatting. aligning controls 138 by selecting and setting properties 140 using alignment options 138 alignment grid 842 analysis (Visual Insight) 13
Numerics
3D effect 155
A
accessing an image on a shared network drive 131 on the Web server machine 130 partial path 131 adding auto text code 59 data field. See also adding a data field. 53 data to a document 51 dataset 746 document section 45 line 129 object to a Grid/Graph 312 page break. See also adding a page break. 229 page numbers 230 rectangle 129
967
Index
Android best practices 786 filtering data based on distance from 808 formatting document for 820 formatting layout for 826 Geo Location prompt 809 Information Window for Map widget 805 Interactive Grid widget 799 linking in 818 MicroStrategy Mobile for 785 opening Android application 815 Time Series widget 814 widget 794 animation 492 applying an autostyle 216 arranging controls 136 attribute 51 attribute element prompt in a link 686, 687 attribute form in a data field 56 audience for document creation 15 for manual xxv auto text code defined on 52, 59 adding 59 alias in filter example 94 attribute element ID 941 attribute element list qualification filter example 89 attribute form and set qualification filter example 91 attribute ID 941 automatic base template name example 72 base template name example 72 combining with another text field 57 configuring content of 65
current user 61 dataset filter details 63 dataset prompt details 64 dataset report description 63 dataset report details 63 dataset report execution time 64 dataset report filter details 64 dataset report ID 940 dataset report information 63 dataset report limit details 64 dataset report template details 64 date and time 60 date and time vs. document execution time 62 delimiter example 66 document description 61 document execution time 62 document execution time vs. date and time 62 document inbox title 61 document information 60 document message ID 943 document name 61 document notes 61 drilling filter example 86 dynamic date filter example 92 filter example 92, 93, 94 filter types example 83 in a blank text field 60 levels of configuration 65 link URL and 937 MicroStrategy Web Server name 62 object name delimiters 66 page number 60 project name 61, 938 prompt 61 prompt answers example 77 prompt details 61
968
Index
prompt details example 77, 78 prompt titles and index example 76 prompt XML 943 server name 938 shortcut filter example 84 time and date 60 total number of pages 60 automatic submission for selectors 454 automatic target maintenance panel stack and 397 target selection mode and 429 automatically applying selector changes 454 automatically maintaining targets for selectors 443 controlling targets 447 disabling 450 enabling 452 Autostyle defined on 215 applying to a document 216 creating 216 document template vs. 28 layout 720 multi-layout document 720
document 15 iPad 786 iPhone 786 bitmap graph 240 Blank Dashboard template 183 Blank Document template 28, 37 bookmarks 240 clearing 241 hiding 241 showing 241 table of contents and 247 border document 213 layout 213 Bubble Grid widget 507 data requirements 508 example 507 formatting 509 using as a selector 621, 622 bullet microchart 567
C
cache defined on 775 enabling 776 page-by and 776 calculated expression 97, defined on 97 conditional formatting 201 creating 100 function in 98 functions supported 929 calculating metric 110 totals 104, 107 changing document section height 188 document section size 188, 193 document section width 191
B
background backstyle 152 color 159 document 213 document section 186 layout 213 selectors selected item 483 backstyle 152 bar microchart 567 best practices Android 786 dashboard 379
2011 MicroStrategy, Inc.
969
Index
grouping order 262 collapsing a document section 35, 37, 841 compound join defined on 732 compound metric, dynamic aggregation in 120 conditional formatting defined on 200 allowing users to display or hide 208 calculated expression 201 defining qualification 204 derived metric 201 disabling 208, 209 disabling Conditional Formatting icon 211 disabling Show Conditional Formatting option 211 enabling 208, 210 enabling Conditional Formatting icon 211 enabling Show Conditional Formatting option 211 example 202 hiding 208 hiding all 212 layout and 720 multi-layout document and 720 selector totals and 207 showing 208 specifying formatting 205 summary metric 201 Conditional Formatting icon disabling 211 enabling 211 conditional metric in a link 687, 692 configuring the content of an auto text code 65 consolidation 51 control defined on 10 aligning 138 arranging 136
can not be moved 923 can not be resized 923 distributing 140, 142 dragging and dropping 137 formatting 150, 196 hiding in MicroStrategy Web 164 hiding in PDF 164 locking 144 moving. See moving a control. ordering 144 selecting multiple controls 136 sizing 142 snapping to grid 138 types of 10 unlocking 144 control default defined on 196 Grid/Graph 319 control styles for a transaction-enabled document 763 control type 10 controlling horizontal overflow 235 Controls toolbar 837 Lock button 837 converting a Grid/Graph shortcut to local copy of report 921 copying a document to another project 778 copying and pasting formatting 151 country parameter in a dynamic RSS feed 590 creating Autostyle 216 calculated expression 100 derived metric 103 document watermark 224 document. See also creating a document. 22 link 702 link to a web page 680
2011 MicroStrategy, Inc.
970
Index
metric. See also creating a metric. 97 widget 597 creating a document 22 audience and 15 best practices 15 data source and 16 Document Editor 24 document template 30 Document Wizard 25, 26 effective design of 18 Excel exporting and 19 from a report 31 introduction 10 methods of 22 multiple reports 24, 32 overview 10 project and 17 saving time and 17 template 30 using template 27 creating a metric 97 calculated expression 97 derived 101 summary 107 custom group 51 Cylinder widget 510 data requirements 510 example 372, 510 formatting 511
D
dashboard 365, defined on 366 best practices 379 example 875 exporting to Flash 493 interactive 368 tutorial 875
Data Cloud widget 512 data requirements 512 example 512 formatting 513 using as a selector 621, 623 data field defined on 52 adding to a document 53 attribute form 56, 57 combining with another text field 57 hyperlink and 707 spaces in 57 special character in 55, 57 data source and document creation 16 data, adding to a document 51 dataset 22, 730 adding 746 changing for a Grid/Graph 309 editing 747 Freeform SQL report 730 Grid/Graph and 298, 312 Grid/Graph link to 345 grouping and sorting 731, 748 Import Data report 730 Intelligent Cube 749 join 733, 750, 752 layout and 720 MDX cube source 730 MicroStrategy OLAP Services report as 749 multi-layout document and 720 multiple 731, 922 primary 732, 733 Query Builder report 730 removing 746 secondary 732, 733 sorting and grouping 731 subset report as 749 virtual 732
971
Index
dataset object 12 dataset report information 59 Datasets pane 842 adding data to a document 54 displaying 842 dragging and dropping 54 date 60 Date Selection widget 650 creating as a selector 651 creating as a widget 650, 653, 655 example 650 formatting 658 Date Selection widget (iPad) 795 default grid autostyle 198 link. See also default link. 683 prompt order 768 default link 683, 684 clearing 684 in MicroStrategy Web 684 setting 684 deleting dataset 746 grouping field 264 layout 727 deploying out-of-the-box documents to your project 779 derived metric 97, defined on 101 conditional formatting 201 creating 103 designing a document effective design 18 introduction 10 overview 10 Detail Footer section 44 metric calculation and 114 Detail Header section 43 metric calculation and 114
Detail section 43 horizontal 186 horizontally displayed example 186 metric calculation and 111 disabling automatic maintenance of selector targets 450 conditional formatting 208 display mode for MicroStrategy Web default 249 selecting 249 displaying Datasets pane 842 document section 36, 181 HTML 122 section of a document 181 website 125 distributing controls horizontally 140, 142 relative to layout 141 vertically 140, 142 document defined on 1 concepts. See document - concepts. creating. See also creating a document. 22 dataset 22 does not open 923 execution does not finish 925 MicroStrategy Mobile and 785 sample 847 section. See also document section. 34 tasks. See document - tasks. template. See also document template. 27 transaction-enabled. See also transaction-enabled document. 754 tutorial 847 watermark. See also document watermark. 219
2011 MicroStrategy, Inc.
972
Index
document - concepts best practices 15 dashboard 366 dataset 730 design xxv, 1 FAQs 919 multi-layout 714 out-of-the-box deployment 779 portable 778 section. See also document section. 34 template. See also document template. 27 watermark. See also document watermark. 219 document - tasks caching 775 creating. See also creating a document. 22 formatting 147 formatting for iPhone 827 grouping 260 linking 667 paging 286 previewing for printing 2 sorting 290 document description auto text code 61 Document Editor accordion pane 837 alignment grid 842 Controls toolbar 837 creating a document 24 Datasets pane 842 Grouping panel 841 layout 835 Layout area 841 layout tab 840 Notes pane 845 Property List 843, 853
Document Footer section 45 layout and 718 metric calculation and 114 multi-layout document 45 multi-layout document and 718 Document Header section 41 layout and 718 metric calculation and 114 multi-layout document 41 multi-layout document and 718 document inbox title 61 document information 59 document name 61 document section 34, 40 concepts. See document section - concepts. displaying. See also document section display. 36 hiding. See also hiding a document section. 36 names. See document section - names. size. See also document section sizing. 188 tasks. See document section - tasks. document section - concepts Excel row height 257 horizontal 186 horizontal sizing example 192 layout and 36 metric calculation and 116 row height in Excel 257 size. See also document section sizing. 188 document section - names 38 Detail 43 Detail Footer 44 Detail Header 43 Document Footer 45 Document Header 41
973
Index
Document Header and Footer in a layout 718 Group Footer 44 Group Header 41 Layout Footer 44 Layout Header 41 Layout Header and Footer in a layout 718 Page Footer 45 Page Header 40 Page Header and Footer in a layout 725 document section - tasks adding in a horizontally displayed section 47 collapsing 35, 37, 841 displaying. See also document section display. 36 expanding 35, 37, 841 fitting to contents 189 fixed height 189 formatting 180 formatting background color 186 grow to maximum height 189 height 188 hiding. See also hiding a document section. 36 inserting a horizontally displayed section 47 inserting additional 45 keeping contents together 195 printing horizontally 186 repeating information horizontally 194 document section display 36, 181 horizontal 186 PDF only 184 document section sizing 193 example 190
horizontal sizing example 192 set size 189 shrink to minimum height 189 variable size 189 varying within a set range 190 width 191 document template 27 Autostyle vs. 28 Blank Document 28, 37 creating 28 creating a document with 27 displaying Object Templates folder 29 exporting to another project 29 importing from another project 29 predefined 28 document watermark 219 blank 223 creating 224 disabling 226 overwriting the project watermark 226 Document Wizard 26 creating a document 25 draft resolution graph 240 drill link prompt and 924 drilling anywhere 350 enabling 355 enabling on a Grid/Graph 349 Grid/Graph 348 in an Interactive Bubble Graph widget 532 join type 355 link and 709 Link Editor 711 link vs. 669 linking to documents and reports 681 parent attribute 354
974
Index
selector and 709 selector vs. 669 subtotals 355 thresholds 354 within the dataset report 353 drop shadow formatting 157 dynamic aggregation 120 aggregation function 120 image 133 RSS feed. See also dynamic RSS feed. 590 text 52 text in a link 679 dynamic RSS feed 590 country parameter 590 guidelines 593 language parameter 590 language properties 590 query parameter 590 Universal Transformation Code (UTF) encoding property 591 UTF-8 encoding 591 viewing news related to attribute 591 dataset report 592 document 592 specific topic 590
E
embedding bitmap in Excel 256 font for Flash Mode 249 font in a PDF 237 font in a PDF and Windows default font 239 image in Excel 256 enabling
automatic maintenance of selector targets 452 conditional formatting 208 document caching 776 Flash View 6 HTML View 6 example 3D effect 155 advanced function in calculated expression 99 auto text code. See example - auto text code. automatic target maintenance 443 disabling 450 enabling 452 background 152 backstyle 152 bookmarks in a PDF 241 calculated expression 98 calculating totals 104 clipped text field 168 conditional formatting 202 control default formatting 197 Cylinder widget 372, 510 dashboard 367, 376, 383, 394, 875 button bar in 368, 369 Data Cloud widget 512 data field in a hyperlink 707 Date Selection widget 650 created as a selector 651 created as a widget 650 derived metric 102 displaying a document section in PDF only 184 document border 213 document section sizing 191 drilling using links 682 drop shadow 157 dynamic image 133
975
Index
filtering selector 436 Fish Eye Selector 639 created as a selector 640 created as a widget 639 with images 642 formatting an HTML container 174, 175 Full Screen mode 494 Gauge widget 518 gradient color 159 Graph Matrix widget 520 Grid/Graph. See also example Grid/Graph. 296 group total 265, 267 grouped records 261 Heat Map widget 526 hiding a control 165 hiding a document section in MicroStrategy Web display modes 184 horizontal detail section 186 group 273 overflow 236 sizing 192 HTML container 126 formatting 174, 175 MicroStrategy Web 123 hyperlink with a data field 707 Interactive Bubble Graph widget 375, 498, 531 used as a selector 626 Interactive Stacked Graph widget 540 invoice 847 key performance indicators dashboard 378 layering Grid/Graphs on panels 393 line 128 link. See example - link. linking to a web page 678
message behind a widget 607 metric calculation. See example - metric calculation. metrics in rows and columns 341 mirror gradient 160 multiple dashboards in a single document 394 number formatting in a text field 169 padding in a text field 172 page-by 287 panel stack 393 panel stack panel selector arrows 402 panel stack title bar 400 prompt answer for any other prompts not listed 700 rectangle 128 rectangle vs. rounded rectangle 129 repeating a document section horizontally 194 report details auto text code 68, 69 rounded corners panel stack 416 rectangle 178 scroll bar in text field 168 selector title bar 473 sizing a document section 191 slicing selector 436 slider in a dashboard 369 summary metric 108 table of contents grouped document 243 multi-layout document 245 text field 55 text field number formatting 169 Thermometer widget 372, 543 three-way gradient 160 Time Series Slider widget 545 used as a selector 631 title bar of a panel stack 400
976
Index
tooltip 163 transparent title bar 328 vertical text 171 view filter on a Grid/Graph 331, 336, 338 watermark 218, 219 example - auto text code automatic base template name 72 base template name 72 delimiter 66 filter details 83, 84, 86, 89, 91, 92, 93, 94 prompt answers 77 prompt details 77, 78 prompt titles and index 76 example - Grid/Graph 296 background of selected item 325 background when used as a selector 490 controlling another Grid/Graph 486 incremental fetch 773 example - link answering a hierarchy prompt 696 answering a target prompt with source prompt answers 688 attribute in a Grid/Graph as the source 675 conditional metric and 692 document to multiple targets 676 Grid/Graph dataset report as target 345 ignoring a target prompt 690 text field as the source 673 URL 945 web page as the target 672 example - metric calculation Detail Header section 115 Detail section 111 Document Header section 115
Grid/Graph 116 Grid/Graph in a Group Header section 118 Group Header or Footer section 112 Page Header section 115 example - selector attribute 419 dynamic text field 421 filtering a metric 432 metric condition 432 panel stack 418 sizing items 480 style 423 updated by another selector 458 execution time dataset report 64 document 62 expanding a document section 35, 37, 841 exporting available export formats 252 best practices for designing for Kindle and Nook 21 default export options 253 document as a template to another project 29 formats 252 formatting for 250 grouped document 251 HTML 7 layout 727 multi-layout document 727 page-by and 251 template to another project 29 to a browser (HTML) 7 exporting to Excel best practices 19 colors 20 document creation and 19
977
Index
embedded bitmap 256 embedded image 256 graph styles 20 group to a separate worksheet 283 image display 256 layout to a separate worksheet 727 line 20 line breaks in a text field 20 live graph 256 multi-layout document 727 multiple worksheets for a group 283 multiple worksheets for a multi-layout document 727 object type display 19 rectangle 20 row height 257 troubleshooting 19 word-wrapping 20 worksheet for each layout 727 worksheet for each page 283 exporting to Flash 493 file format 493 exporting to PDF another window 4 missing image 925 multi-layout document 727 Express Mode (MicroStrategy Web) context menu in 359 expression, calculated 97
F
filter Android 808 iPad 808 iPhone 808 filter details auto text code configuring 81 configuring alias display 94
978
configuring the display of an attribute element list qualification 88 configuring the display of attribute form and set qualifications 91 configuring the display of logical operators 92 defining content of 82 filter, view 331 filtering selector 435 example 436 viewed off-line 438 Fish Eye Selector 638 created as a selector 640 created as a widget 639 creating as a selector 646 creating as a widget 643 formatting 649 images in 642 fixed size for selector items 480 Flash file 493 Flash Mode (MicroStrategy Web) embedding a font for 249 enabling 926 floating toolbar in 359 font embedding 249 graph not displaying in 926 graph styles supported in 927 Grid/Graph manipulations 360 image displayed in 130 image not displaying in 928 message displayed behind a widget 607 rounded rectangle 178 selector rendering 486 switching to 926 transition animation 492 troubleshooting 925 widget 497 widget not displaying in 928
2011 MicroStrategy, Inc.
Index
Flash View enabling 6 prerequisites for 6 Flash widget 497 floating toolbar for a Grid/Graph 359 font embedding Flash Mode 249 PDF 237 PDF and Windows default font 239 footer section and multi-layout document 725 Format Objects dialog box 151 formatting 3D effect 155 Autostyle 215 backstyle 152 conditional 200 control 150, 196 control default 196 copying and pasting a format 151 default 196 document 147 document border and background 213 document for a mobile device 820 drop shadow 157 gradient color 159 Grid/Graph 319 hiding a control 164 horizontal text 171 HTML container 174 image 180 interfaces 150 layout border and background 213 line 177 MicroStrategy Web display 248 padding in a text field 172 rectangle 177 rounded rectangle 179
section 180 background color 186 selector 476 background 483 item text 481 shape 177 table of contents 244 text field 166 text position in a text field 173 tooltip 162 useful suggestions 149 using a view filter 332 vertical text 171 widget. See also formatting a widget. 609 formatting a widget Bubble Grid widget 509 Cylinder widget 511 Data Cloud widget 513 document level 619 Funnel widget 516 Graph Matrix widget 523 Heat Map widget 529 Interactive Bubble Graph widget 536 Interactive Stacked Graph widget 541 Media widget 564 Microcharts widget 585, 596 RSS Reader (iPhone) 810 Thermometer widget 544 Time Series Slider widget 546 Waterfall widget 550 Weighted List Viewer widget 555 Formatting toolbar 151 Freeform SQL report used as a dataset report 730 Full Screen mode 494 setting a document to open in 496 function
979
Index
calculated expression and 98 document and 98 supported in a calculated expression 929 Funnel widget 514 data requirements 515 example 515 formatting 516, 518
G
Gauge widget 518 data requirements 519 example 518 Google Graph Visualization widget 505 Google Map custom widget 506 Google Map Visualization 506 Google Map widget 505 gradient color 159 mirror 160 three-way 160 graph displaying a Grid/Graph as 314 not displaying in Flash Mode 926 resolution 240 Graph Matrix visualization (mobile device) 797 Graph Matrix widget 520 data requirements 523 example 520 formatting 523 using as a selector 622, 623 Graph mode for a Grid/Graph 314 graph resolution 240 Graph view for Grid/Graph 314 Grid mode Grid/Graph 313 Microcharts widget 569, 576 Grid view for Grid/Graph 313
980
grid, displaying a Grid/Graph as 313 Grid/Graph defined on 295 adding 298 as a shortcut 306 object to 312 automatic target maintenance for selectors and 299 changing dataset of 309 controlling another Grid/Graph 486 creating a widget from 597 custom sorting 332 custom subtotals 332 data manipulations in Flash Mode 360 dataset report 298, 312 disabling sorting and pivoting in for MicroStrategy Web 360 displaying 296 as a graph 314 as a grid 313 as a grid and a graph 315 drilling on 348 editing 310 when displayed as a graph 315 when displayed as a grid 313 when displayed as a grid and a graph 319 enabling drilling on 349 example 296 formatting. See also Grid/Graph formatting. 319 Graph mode 314 Grid mode 313 in header/footer 295 incremental fetch 772 Information Window 824 link 681 link to dataset report 345 linking as a shortcut 309 linking to a dataset report 306, 309 metric calculation and 116, 118
2011 MicroStrategy, Inc.
Index
metric in 104 metric not displayed completely 920 multiple datasets 922 no data returned message 920 overlapping 49 pivoting Express Mode 358 Flash Mode 358 placeholder. See also Grid/Graph placeholder. 303 saving 919 selecting 310 selector and 418 shortcut 306 sorting Express Mode 358 Flash Mode 358 title bar 326 transition animation 492 turning into a widget 598, 599 unlinking dataset report 309 shortcut 309 used as a selector 486 used as selector 488 view filter 331 viewing as a graph 314 as a grid 313 as a grid and a graph 315 Width Mode Fit to contents 920 Grid/Graph formatting 319 background of selected items in 324 background when used as a selector 490 control default 198, 319 custom formatting 332 default grid autostyle 198 example 325
graph formatting 315 grid formatting 313 Height Mode Fit to contents 920 initial format 319 layout when displayed as a grid and a graph 316 resizing 310 Grid/Graph placeholder 303 adding a dataset to 304 adding existing dataset to 305 adding new dataset to 305 formatting 303, 304 group keeping data together 283 resetting page numbers for 281 restarting page numbering for 281 totals and disabling page-by 265 totals and sorting 267 totals for 264 Group Footer section 44 hiding 279 horizontal 273 metric calculation and 112, 118 Group Header section 41 hiding 279 horizontal 273 metric calculation and 112, 118 repeating 282 group totals 264 Grid/Graph metric calculation and 268 metric calculations in Grid/Graphs and 268 metrics and 271 grouped records, example 261 grouping displaying grouping elements containing null values 750 exporting and 251
981
Index
exporting to separate Excel worksheets 283 field, deleting 264 Grid/Graph and 295 Group Header section 41 hiding Group Footer section 279 hiding Group Header section 279 horizontal sections 273 incremental fetch and 770 item, sorting 291 layout and 717 multi-layout document and 717 order, changing 262 page-by and 260 records 260 table of contents and 243 totals 264 grouping order horizontally displayed group and 277 Grouping panel 841 changing grouping order 262 deleting grouping field 264
H
header section and multi-layout document 725 Heat Map widget 525 data requirements 528 example 526 formatting 529, 621 selector and 527 using as a selector 622, 625 hiding document section 181 Group Header section 279 project watermark for a document 223 section 181 hiding a document section 36, 181
982
empty document section 190 from all users and designers 182 in all views 182 in MicroStrategy Web 184 hierarchy prompt in a link 687, 695 horizontal fit 235 overflow 235 size 191 horizontal alignment in a text field 173 horizontally displayed group 273 adding a grouping field to 276 changing the grouping order of 277 horizontally displayed section 186 inserting a section into 48 width 191 horizontally printing grouping section 273 section 186 HTML document section height 922 exporting to 7 HTML container 121, defined on 121 displayed in MicroStrategy Web 123 formatting 174 HTML tags supported in Flash Mode 123 in Excel 124, 126 in MicroStrategy Web 126 in PDF 124, 126 inserting (HTML tags) 125 inserting (iFrame) 127 inserting (URL) 127 using a URL 125 using an iFrame 125 using HTML tags 122 HTML content 121 HTML View
Index
enabling 6 prerequisites for 6 hyperlink 706 creating on an image 708 creating with a dynamic text field 707 data field 707 example with a data field 707 image 706, 708 link URL vs. 669 link vs. 668, 669 pop-up text 706 text field 706 tooltip 706
I
iFrame 125 image accessing on shared network drive 131 accessing on Web server machine 130 attribute in the file name 133 dynamic 133 formatting 180 inserting 130 link 681 link to a web page 677 metric in the file name 133 missing in MicroStrategy Mobile 925 missing in PDF View 925 missing when exported to PDF 925 not displaying 924 not displaying in Flash Mode 928 PDF View and supported image types 132 used in Flash Mode 130 watermark 217 Image Viewer widget (mobile device) 792 importing document as template from another
2011 MicroStrategy, Inc.
project 29 template from another project 29 importing a layout into a document 725 including a table of contents in a PDF 243 incomplete or inconsistent object definition error 923 incremental fetch 769 Grid/Graph 772 grouping and 770 information keeping together 195 repeating horizontally 194 Information Window 805 Express Mode 824 Flash Mode 824 panel stack in iPad 824 input object control 763 formatting 763 inserting image 130 line 129 rectangle 129 rounded rectangle 129 shape 129 Intelligent Cube 749 Interactive Bubble Graph widget 531 data requirements 535 enabling drilling 532 example 375, 498, 531 formatting 536 using as a selector 622, 626 interactive dashboard 368 Interactive Stacked Graph widget 538 data requirements 540 example 540 formatting 541 using as a selector 622, 628 international support xxxv
983
Index
investigative workflow 667 iPad best practices 786 changing panels with a swipe 823 Data Cloud widget 512 Date Selection widget 795 document display when rotated 830 filtering data based on distance from 808 formatting document for 820 formatting layout for 823, 826 formatting panel stack for 824 formatting selector for 822 Geo Location prompt 809 Graph Matrix visualization 797 Heat Map widget 799 Information Window for Map widget 805 Interactive Grid widget 799 linking in 818 Map widget 801 MicroStrategy Mobile for 785 opening iPad application 815 See also iPhone. template 829 Time Series widget 814 widget 793 iPhone best practices 786 Data Cloud widget 512 document display when rotated 830 filtering data based on distance from 808 formatting document for 820, 827 formatting layout for 826 Geo Location prompt 809 Information Window for Map widget 805 Interactive Grid widget 799
984
linking in 818 Map widget 801 MicroStrategy Mobile for 785 opening iPhone application 815 RSS Reader widget 589 RSS Reader widget formatting 810 template 828 Time Series widget 814 widget 792
J
J2EE, URL syntax for a link URL 938 Jobs per user parameter 925 Jobs per user session parameter 925 join, compound 732 joining multiple datasets 731
K
Keep together property 195 Kindle best practices for exporting a document to 21 KPI List mode for a Microcharts widget 570 metrics per KPI 571
L
landscape orientation 232 language parameter in a dynamic RSS feed 590 layout Autostyle 720 changing the order of 727 conditional formatting in 720 creating 721 dataset 720 deleting 727
2011 MicroStrategy, Inc.
Index
Document Header and Footer 718 document properties for 719 exporting 727 footer 718 formatting border and background 213 formatting for a mobile device 826 formatting for iPad 823 header 718 horizontal overflow 235 importing 725 Layout Header and Footer 718 layout properties for 717 layout tab 726 Page Footer section 720 Page Header and Footer 725 Page Header section 720 PDF properties 719 properties for 717 renaming 727 sections in 36 separate Page Header and Footer for each 725 shared Page Header and Footer 725 switching 727 tab 716 Layout area defined on 841 controls in 10 Layout Footer section 44 metric calculation and 114 Layout Header section 41 metric calculation and 114 layout tab 716, 717, 726, 840 changing the order of 727 renaming 727 line adding 129 formatting 177
inserting 129 line weight issues 924 link defined on 667 Android. See link for Android any other prompts 683, 699 attribute element prompt 686, 687 attribute in a Grid/Graph 675, 681 attribute in a widget 659 clearing default link 684 components of 683 conditional metric and 687, 692 creating 702 creating a link URL manually 711 creating in a widget 661 creating, prerequisite 702 default 683, 684 default name 678 document as the target 681 document to multiple targets 676 drilling 681 drilling and 709 drilling using 682 drilling vs. 669 dynamic text in 679 email 711 example 671, 688, 690, 692, 696, 700 example of drilling using links 682 example of linking from a text field 673 example of linking from an attribute in a Grid/Graph 675 example of linking in a widget 659 example of linking to a web page 672, 678 example of linking to multiple targets 676 export 711 Grid/Graph to dataset report 345 hierarchy in a Grid/Graph 681
985
Index
hierarchy prompt 687, 695 hyperlink 706 hyperlink vs. 668 image 681 image to a web page 677 iPad. See link for iPad iPhone. See link for iPhone. Link Editor 711 metric in a Grid/Graph 681 multiple links on the same object 679 name 678, 683 object prompt in a Grid/Graph 681 opening in a new window 684 opening in the same window 684 prerequisite for creating 702 prerequisites for working with 671 prompt and 667, 683, 684 prompt answer method 683, 684, 695 prompt in a Grid/Graph 681 report as the target 681 selector and 709 selector vs. 669 setting as the default link 684 source 667 subscription 711 target 667, 683 terms used in 671 text field 673, 681 text field to a web page 677 tooltip and 678 web page as the target 672, 677, 679, 680, 681 without underline 684 Link Editor 711 link for Android 818 link for iPad 818 link for iPhone 818 link URL
.NET URL syntax 938 attribute element ID 941 attribute element list 941 attribute ID 941 auto text code in 938 base URL syntax 938 creating manually 944 dataset report ID 940 document message ID 943 event parameter 939 example of manually creating 945 hyperlink vs. 669 J2EE URL syntax 938 link vs. 669 list of attribute elements 941 message ID 943 object ID parameter 940 object type parameter 940 prompt information parameter 941 prompt XML 942 session parameters 938 syntax 937 linking a Grid/Graph as a shortcut 306, 309 unlinking 309 linking documents and reports 667 drilling 681 live Excel graph 256 loading panels in MicroStrategy Web 408 Lock button on the Controls toolbar 837 locking a control 144
M
Map widget (mobile device) 801 filtering data based on distance 808 filtering locations 804 Geo Location prompt 809 Information Window 805
2011 MicroStrategy, Inc.
986
Index
location lines 807 location list 807 thresholds 804 margins 233 Media widget 555 configuring IIS 6 in Microsoft Windows 2003 SP2 (R2) to display Flash video 563 formatting 564 requirements 558 viewing media related to a dataset report 559 viewing media related to a document 559 viewing media related to an attribute 559 metric 51 advanced calculation 110 calculated expression 97 calculating a Grid/Graph at the group level 118 calculating as a grand total 114 calculating at the dataset level 111 calculating at the Grid/Graph level 116 calculating at the group level 112 calculation depending on location 110 calculation of 104, 923 comparison of metrics created in documents 97 compound 120 constant in 98 creating 97 derived 97, 101 document location and 110 dynamic aggregation 120 from dataset report 96 from multiple datasets 98 in Detail Footer section 114
in Detail Header section 114 in Detail section 111 in Document Footer section 114 in Document Header section 114 in Grid/Graph 116 in Grid/Graph in Group Header or Footer section 118 in Group Footer section 112 in Group Header section 112 in Layout Footer section 114 in Layout Header section 114 in multiple datasets 732 in Page Footer section 114 in Page Header section 114 operator in 98 reusing in multiple places 101 summary 97, 107 total 104 metric condition selector 432 qualification 433 qualification types 434 slider 432 Microchart widget bar microchart 567 bullet microchart 567 sparkline microchart 567 viewing as scrolling tickers 578 Microcharts widget 565 data requirements 581 formatting 585, 596 Grid mode 569, 576 KPI List mode 570 Ticker mode 578 Ticker operation mode 569 using as a selector 622, 630 Vertical Scroll mode 577 Vertical Scroll operation mode 569 viewing rows in a tree display 576
987
Index
viewing rows one at a time 577 viewing rows simultaneously 576 MicroStrategy Mobile 785 Android 785 document display when rotated 830 image missing in 925 iPad 785 iPhone 785 Mobile View 830 transaction-enabled document 755 widget display 602 MicroStrategy Narrowcast Server e-mailing documents 937 MicroStrategy Transaction Services 754 creating a transaction-enabled document 755 input object controls that support transactions 763 MicroStrategy Web display mode 249 drilling 348 formatting for 248 Full Screen mode 494 hiding a control 164 hiding a document section in 184 improving document performance in 769, 772 loading panels 408 panel loading 408 selecting available display modes 249 selecting default display mode 249 toolbar icons 837 transaction-enabled document 755 MicroStrategy Web Server name 62 mirror gradient color 160 Mobile View 830 moving a control across sections 138
by alignment 138 by distribution 138 dragging and dropping 137 Nudge option 137 Property List position 137 multi-layout document 714 Autostyle 720 changing the order of the layouts 727 conditional formatting in 720 creating 721 creating from multiple reports 32 dataset 720 deleting a layout 727 Document Footer section 45 Document Header and Footer 718 Document Header section 41 document properties for 719 exporting 727 formatting border and background 213 grouping and 717 horizontal overflow 235 importing a layout 725 Layout Footer section 44 Layout Header and Footer 718 Layout Header section 41 layout properties for 717 layout tab 726 layout tab in 716 Page Footer section 45, 720 Page Header and Footer 725 Page Header section 40, 720 PDF properties 719 properties for 717 renaming layout 727 sections in 36 separate Page Header and Footer 725 shared Page Header and Footer 725
988
Index
sorting and 717 switching layouts 727 table of contents in 245 watermark 217 Multimedia widget (mobile device) 792 multiple datasets 731 multiple links default link 684
PDF in separate window 4 ordering controls 144 prompts 767 orientation 232 out-of-the-box document, deploying to your project 779 overflow, controlling 235
N
nested panel stacks 398 prompts in a drill link 924 Nook best practices for exporting a document to 21 notes 845 adding 845 auto text code 61 editing 845 length of 845 submitting 845 viewing 845 Notes pane 845 null value 750 number formatting in a text field 169 number of pages, total 60 numbering pages 229
P
padding in a text field 172 page break adding 229 keep together 195 preventing within a group 283 Page Footer section 45 layout 720 metric calculation and 114 multi-layout document 45, 720 multi-layout document and 725 separate footer for a layout 725 shared among layouts 725 Page Header section 40 layout 720 metric calculation and 114 multi-layout document 40, 720 multi-layout document and 725 separate header for a layout 725 shared among layouts 725 page margins 233 page number 60 page setup options 231 page-by defined on 286 caching and 776 disabling 289 disabling simultaneous display of all elements 290 exporting and 251
989
O
object IDs, obtaining 940 object name delimiters for an auto text code 66 object on a report. See data field. object template 27 opaque background 152 opening
Index
group totals 264 group totals and disabling 265 pages, numbering 229 panel defined on 392 changing with a swipe (iPad) 823 display order of 406 loading 408 loading current panel only 408 loading on demand 408 pre-loading 408 panel stack defined on 392 adding a panel 405 automatic target maintenance and 397 copying a panel 405 display order of panels 406 formatting for iPad 824 Information Window 824 inserting 399 loading panels 408 nested 398 panel selector arrows 402 preloading panels 408 selector and 396, 418 title bar 400 transition animation 492 paper orientation 232 paper size 231 PDF bookmarks in 240 displaying 237 embedding font in 237, 239 exporting to separate window 4 extra pages in 924 graph resolution 240 including an interactive table of contents 243 page setup options 231 properties 237
table of contents 243 PDF properties 237 layout and 719 multi-layout document and 719 PDF View 2 hiding a control 164 image missing 925 Photo Uploader widget (mobile device) 793 pivoting a Grid/Graph in Express Mode 358 pivoting a Grid/Graph in Flash Mode 358 disabling 360 pop-up tooltip 162 portable document 778 reconciliation 779 portal 326 portlet 326 portrait orientation 232 predefined format 215 primary dataset See also grouping and sorting dataset. printing documents on a single page 233 groups on a single page 233 landscape 232 margins 233 portrait 232 scaling 232 project copying a document between 778 document creation and 17 project name 61 project watermark 219 creating 221 hiding 223 overwriting document watermarks 226
990
Index
prompt 61 Android 809 any other prompts 683 default prompt order 768 document and 766 iPad 809 iPhone 809 link and 667, 684 link URL and 941 order of 767 prompt answer method 683, 684 all valid units 688, 696 answer with the same prompt 685, 688 comparison of 685 current unit 688, 696 default answer 686 dynamic 686 empty answer 687 empty prompt answer 689 for any other prompts 699 hierarchy prompt 695 prompt user 686 static element list 687, 692 prompt details 61 prompt details auto text code 64 configuring 75 prompt in a link any other prompts 699 prompt order 767 Properties dialog box 151 Property List 151, defined on 843 controlling the display of 843 displaying 843 Help button 845 information about properties 845 sorting 844 tree 843 proportional selector items 480
Q
query parameter in a dynamic RSS feed 590
R
Really Simple Syndication (RSS). See RSS Reader widget. reconciling a document 778 reconciling an imported document 779 record grouping 260 sorting 290, 292 rectangle adding 129 formatting 177 renaming layout 727 layout tab 727 Repeat horizontally property 194 repeat section setting 282 repeating information horizontally 194 report creating a document from 31 creating a multi-layout document from multiple reports 32 execution in a document 925 report description auto text code 63 report details auto text code 63 configuring 67 configuring, sample 68, 69 report filter auto text code 63 report filter details auto text code 64 report limit details auto text code 64 Report Services document 1 See also document. resetting page numbers for a group 281 restarting page numbering for a group 281
991
Index
rounded rectangle adding 129 formatting 179 RSS feed dynamic 590 static 589 RSS Reader widget 588 creating 593 data requirements 593 dynamic RSS feed in 590 formatting for iPhone 810 guidelines for a dynamic RSS feed 593 static RSS feed in 589 viewing news related to a dataset report 592 viewing news related to a document 592 viewing news related to a specific topic 590 viewing news related to an attribute 591
S
scaling 232 section displaying 36 formatting 180 hiding 36 horizontal 186 See also document section. 34 security requirements 16 selecting multiple controls 136 selector defined on 418 allowing update by another selector 458 automatic submission 454 automatic target maintenance 443 automatically applying selector
changes 454 automatically maintaining targets 443 automatically updating when there is no data for the current selection 458 cascading 460, 488 creating 426 current state 463 Date Selection widget 650 determining how the target displays (current state) 463 disabling autosubmission 455 docking for iPad 822 drilling and 709 drilling vs. 669 excluding data 441 filtering 435 filtering on metric values 432 Fish Eye 638 fixed item size 480 Flash-only interactive 638, 650 formatting 476 formatting container vs. title bar 476 formatting for iPad 822 formatting items 481, 483 Grid/Graph and 418 including data 441 inserting for a Grid/Graph 430 interactive Flash-only 638, 650 item formatting 481, 483 item size 480 link and 709 link vs. 669 metric condition 432 multiple items 453 panel stack and 396, 418 proportional item size 480 selecting targets interactively 429
992
Index
selection types 441 sizing items 480 slicing 435 style 423 target 426 target automatic maintenance 443 target cannot be changed 921 target display 463 target selection mode 429 title bar 473 totals 471 totals and conditional formatting 472 updating another selector 458 using a widget as 621 widget used as 635 shape adding 129 formatting 177 shortcut Grid/Graph 306 linking a Grid/Graph as 309 unlinking a Grid/Graph 309 Simple Grid widget 505 sizing a control 142 dragging sizing handles 142 using menu options 142 using the Properties dialog box 142 using the Property List 142 slicing selector 435 example 436 viewed off-line 438 snapping to grid 138 sorting document 290, 292 group totals and 267 grouping item 291 layout and 717 multi-layout document and 717
records 292 using a view filter 332 sorting a Grid/Graph in Express Mode 358 sorting a Grid/Graph in Flash Mode 358 disabling 360 source of link 667 sparkline microchart 567 static RSS feed 589 static text 51 adding to a document 52 combining with another text field 57 Store Layout widget 505 subset report as dataset 749 subtotals calculating 104 group 264 shortcut to subtotals 107 summary metric 107 using a view filter 332 summary metric 97, defined on 107 conditional formatting 201 creating 110 renaming 110 support international xxxv support. See technical support. switching layout 727
T
table of contents 243 bookmarks and 247 changing location of 248 formatting 244 grouping and 243 multi-layout document and 245 target
993
Index
of link 667 of selector 426 of selector cannot be changed 921 of selector changed 921 target selection mode 429 automatic target maintenance and 429 technical support xxxvi template Blank Dashboard 183 Blank Document 37 creating a document with 27 creating document template 28 displaying Object Templates folder 29 exporting to another project 29 importing from another project 29 iPad 829 iPhone 828 predefined document template 28 template details auto text code 64 configuring 70 displaying the base template name 71 text direction in a text field 173 text field 51 clipped 168 combining 57 display properties 173 formatting 166 link 681 link to a web page 677 number formatting 169 padding 172 padding and vertical text 172 scroll bar 168 text display properties 173 vertical text 171 vertical text and padding 172 text, adding to a document 51 Thermometer widget 542
994
data requirements 543 example 372, 543 formatting 544 three-dimensional effect 155 three-way gradient color 160 threshold. See conditional formatting. 200 Ticker operation mode for a Microcharts widget 569, 578 time 60 Time Series Slider widget 545 data requirements 546 example 545 formatting 546 using as a selector 622, 630 Time widget (iPad) 812 Timeline widget 505 title bar Grid/Graph 326 panel stack 400 selector 473 toolbar icons in MicroStrategy Web 837 tooltip 162 hyperlink and 706 link and 678 totals calculating automatically 104 selector 471 using summary metric 107 Transaction Services 923 Transaction Services. See MicroStrategy Transaction Services. transaction-enabled document 754 creating 755 input object controls that support transactions 763 transition 492 transition animation 492 transparent background 152
2011 MicroStrategy, Inc.
Index
troubleshooting 919 Excel exporting 19 Flash Mode 925 True Type font on UNIX 2 tutorial dashboard 875 document 847 typing a data field 57
viewing a document PDF View 2 viewing a list of KPIs as rows of microcharts 570 virtual dataset defined on 732 Visual Insight 13
W
Waterfall widget 548 data requirements 549 displaying increments and decrements 549 formatting 550 using as a selector 622, 634 watermark 217 disabling 226 disabling document watermark 226 document 219 margins 217 project 219, 221 washout 218 web content 121 Weighted List Viewer widget 552 data requirements 554 formatting 555 using as a selector 622, 634 widget defined on 497 Android 794 Bubble Grid 507 creating 597 custom 505 Cylinder 510 Data Cloud 512 Date Selection (iPad) 795 display 601 displaying a message behind 607 drilling in an Interactive Bubble Graph widget 532
995
U
UNIX, True Type font on 2 unlinking a Grid/Graph shortcut 309 unlocking a control 144 USA Map widget 505 user auto text code 61
V
variable. See auto text code. vector graph 240 Vertical Scroll mode for a Microcharts widget 577 Vertical Scroll operation mode of a Microcharts widget 569 vertical text 171 embedding a font for displaying in Flash Mode 249 padding and 172 view filter 331 adding to Grid/Graph 921 custom formatting 332 custom sorting 332 custom subtotals 332 example 336 multiple conditions 338 view mode for a Grid/Graph Graph 314 Grid 313
Index
formatting 609 formatting at document level 619 formatting graph axis labels 619 formatting pie graph labels 620 formatting selector of 621 Funnel 514 Gauge 518 Google Graph Visualization 505 Google Map 505, 506 Google Map Visualization 506 Graph Matrix 520 Graph Matrix visualization (iPad) 797 Heat Map 525 Heat Map (iPad) 799 Heat Map and selector 527 Image Viewer (mobile device) 792 Interactive Bubble Graph 531 Interactive Grid (mobile device) 799 Interactive Stacked Graph 538 iPad 793 iPhone 792 Map (mobile device) 801 Media 555 Microcharts 565 Multimedia 792 multiple data providers for 505 not displaying in Flash Mode 928 Photo Uploader (mobile device) 793 rendering 601 RSS Reader 588 selector and 486 Simple Grid 505 Store Layout 505 Thermometer 542 Time Series (mobile device) 814 Time Series Slider 545 Timeline 505 Timeline (iPad) 812
996
turning a Grid/Graph into 598, 599 type 500 USA Map 505 using as a selector 621, 635 viewing data related to 621 Waterfall 548 Weighted List Viewer 552 word wrap in a text field 173 write-back functionality 754