This article shows how to create a pie chart widget that shows the total number of tickets per issue type in the last 7 days. It applies to MSPbots users with an Autotask integration.

How to Create a Pie Chart Widget

  1. Navigate to Widgets on the MSPbots app menu.
    menu widgets
  2. Under My Widgets, click New Widget.

    new widget 
  3. Select the Pie Chart widget type on the New Widget window.
  4. When the Widget Builder window opens, go to the Basic Setting tab. Provide the following and click Apply:
  5. Go to the Dataset tab. Click the (plus) button and select New Layer.

  6. On the Dataset window,
    1. Select the Dataset containing the information you want to use.
    2. Give a Name for the Datasource (optional).
    3. For Columns Display,
      1. Using the Column Name dropdown, select the field you want to show in the drill through. Click the (plus) button to add more rows.  
      2. Give an Alias and select a Business Type for each.
    4. For Filter,
      1. Click the (plus) button and choose between Add Condition and Add Group.
      2. Add all the fields you want to be filtered.
      3. Set a condition/logic for each field using the next 2 dropdowns. For a guide on each options, refer to: What Conditions are Available for Creating Widgets?
      4. Select a logical operator for the filter group (AND or OR).
    5. For Measure,
      1. Click the (plus) button to show the Measure window.
      2. Select a Summary Type.
      3. Select a Field to use in the computation.
      4. Give an Alias for the measure..
      5. Select a Format Type
      6. Click Add.
    6. For Dimensions,
      1. Select a field to be used for grouping the data.
      2. Give an Alias for the measure.
      3. Select a Format Type.
      4. Click Add.

    7. Other optional settings are:
      1. Order By - Sorts the data based on the selected field. 
      2. Row Limit - Sets a limit on how many rows of data will be shown.
      3. The same 2 options are available on the dataset tab, the difference is that they apply to the pie chart shown instead of the drill-down.
    8. Click Save. 
  7. Go to Config tab.
    1. Select the Dimension for X-axis. This will determine the grouping used to partition the pie.
    2. Set the Measure for Y-axis. This will be used for the values of each partition.
    3. (optional) For Sub X-axis, another measure can be added to further divide the pie chart.
    4. For Measure Text, select the same Measure used for Y-axis.
    5. (optional) Add a Pie Chart Title.
    6. (optional) Add a Part Name.
  8. Click Apply. This will show a preview of the pie chart created.

Example: How to Create a Pie Chart Widget that shows the total number of tickets per issue type in the last 7 days

  1. Navigate to Widgets on the MSPbots app menu.
    menu widgets
  2. Under My Widgets, click New Widget.

    new widget 
  3. Select the Pie Chart widget type on the New Widget window.
    select pie chart
  4. When the Widget Builder window opens, go to Basic Setting tab. Provide the following and click Apply:
  5. Go to Dataset tab. Click the (plus) button and select New Layer.

  6. On the Dataset window,
    1. Select the Dataset: Autotask Ticket Statistics
    2. Give a Name for the Datasource (optional).
    3. For Columns Display, add the fields below (format: Column Name - Alias - Business Type
      1. company_name - Company - Text
      2. ticket_number - Ticket Number - Hyperlinks (Additional Steps: Click the paintbrush icon > select Autotask Ticket URL as Format > Click Save)
      3. issue_type - Type - Text
      4. sub_issue_type - Sub-type -Text
      5. create_date - Date Created - Date Time
      6. completed_date - Date Completed - Date Time

    4. For Filter,
      1. Click the (plus) button and choose Add Condition.
      2. Select the field create_date for the first dropdown then Ifor the second one.
      3. For the third dropdown, select Previous > 1 > Weeks (Mon-Sun)

    5. For Measure,
      1. Click the (plus) button to show the Measure window.
      2. Select Count for Summary Type.
      3. Select Ticket Number for Fields.
      4. Type Ticket Count as an Alias.
      5. Select Number for Format Type.
      6. Click Confirm
    6. For Dimensions,
      1. Select Type for the field.
      2. Type Issue Type as an Alias.
      3. Select Text for  Format Type.
      4. Click Confirm
    7. Click Save. 
  7. On the Dataset tab, for Order By, click the (plus) button and select Ticket Count.

  8. Go to Config tab.
    1. Select Issue Type for X-axis.
    2. Select Ticket Count for Y-axis.
    3. Select Ticket Count for Measure Text.
  9. Click Apply. This will show a preview of the pie chart created.