Prism Business Intelligence Tools - Tips and How-to's

This is where we post tips and how-to's in response to questions we get from Prism users.

December 2008 - Posts

  • Frequency of values and distinct count of values

    Have you ever wanted to see how many times a value appears in the data, so you casually dropped the 'Value' dimension onto the rows panel of a pivot widget and the 'Count Value' measure onto the columns panel and get the value '1' for everything?

     

    Then you scratched your head and said to yourself "hmm, this can't be right.  I'm pretty sure I sold more than one Acer 2400 this month".  Relax, you're not going out of business :-)

    There are two ways to count values- counting distinct values and counting frequency of values.

    If you right click the relevant dimension ('Product' in our case) and navigate to the Show/Hide Measures menu item, you will get the following options:

     

    Count Product is the default and means counting distinct products.  This measure is best used with dimensions other than the Product dimension. For example, if you want to know how many different products each one of your customers bought, this would be the measure to use.

    Count Product (duplicates) means counting how many times each different product appeared.  This measure is best used with the Product dimension, although it also has uses with others.

    When you 'check' the measures in the menu, the corresponding measure will be visible under the Measures node in the Data Browser.

     

    Using the Count Product (duplicates) measure will yield the results I wanted.

     

  • Filter a Widget With a Click Of a Button

    Have you ever wanted to give your viewers the possibility to filter a widget with a single click?  Somewhat like the image below, that lets a user click on either the Best Selling Products or Least Selling Products and see the appropriate products in the pivot and their respective sales, cost and profit.  Here's how you do it.


     .........................................................................................................................................................................

     

    Step 1: Create a pivot with all products and required measures.

    This step is pretty straight forward.  Create a pivot and populate it with the Product dimension as well as the require measures.  If you've never worked with a pivot table before, check out this tutorial.  This pivot should look something like the follow image.


     .........................................................................................................................................................................

     

    Step 2: Create 'Best Selling Products' and 'Worst Selling Products' Filters

    I quickly create Best Selling Products and Worst Selling Products by using Question Composition.  If you've never used it before, check out this blog post.  The filters will look something like this:


    For more information about the different filter types, check out the filters section of our user guide.

     .........................................................................................................................................................................

     

    Step 3: Create drop-down lists from 'Best Selling Products' and 'Worst Selling Products' Filters

    Create the filters, dragging and dropping them directly onto the sheet will automatically create a drop-down list widget out of each filter.


     .........................................................................................................................................................................

     

    Step 4: Using the Apply Scope On Widget Action Button

    This is where lies the trick.  The Apply Scope on Widgets action button lets you apply the data placed in one widget as the scope of another widget.  It is accessed from the 'Actions' category in the Widgets pane and created simply by dragging onto the sheet.

    This button takes two main parameters (accessed from the right-click menu):

    1. Input Widgets - Indicates where to get the scope data from.  In our case, this data is placed in the Product drop-down list widgets.

    2. Output Widgets - Indicates the widget the receives the new data.  In our case, this is the pivot showing product sales, cost and profit information.

     

    You should create two buttons like these.  Each button will define one of the Products drop-downs as input.  The output for both the buttons will be the pivot widget.  Make sure the (ALL) value is selected, to indicate that the all members should be used as scope.  After doing this, you should immediately have two buttons that shows the correct filters in the pivot once clicked.


     .........................................................................................................................................................................

     

    Step 5: Some Finishing Touches

    Our dashboard already does what we want it to, but let's make it a little bit more elegant.  First, there's no reason anyone should see the drop-down lists we used so you can simply hide them behind the main pivot.  Move them both so they are completely overlapped by the pivot and use the positioning menu to send them back behind the pivot so they cannot be seen.

     

    Second, let's give the buttons themselves look more like hyperlinks than buttons (everybody loves a good hyperlink).  To do this, simply select the button and set 'No Fill' coloring to both the button's area (middle button in the image below) and borders (right button in the image below).  Then apply blue underlined text coloring (left button in the image below) and we're done.

     

     

     ...and were done!  Here's a sample PSM file to play around with.