N O T I C E


MSPbots WIKI is moving to a new home at support.mspbots.ai to give you the best experience in browsing our Knowledge Base resources and addressing your concerns. Click here for more info!


This article shows how to add a calculate layer to a widget. The calculate layer is used in grid-type widgets when users want to display a column that computes a value using the other columns in the widget. 

To add a calculate layer in a widget:  

  1. Go to Widgets on the MSPbots menu.
  2. Click on the New Widget button.

    new widget 
  3. Click Grid on the New Widget window. You will be redirected to the Widget Builder. 
    grid type widget
  4. Provide the necessary info for this widget like the Name, Description, and Role, then click Apply.
    widget builder
  5. Click the Dataset icon then click the + button for Data Source.
    widget builder dataset
  6. Select New Layer on the Add New Layer popup. Note that you need to create the columns before you can compute for the calculate layer. 
    new layer widget
  7. On the Dataset window that appears, create the data source by adding the datasets, including the filters needed for your widget.
    dataset
  8. Repeat steps 6 and 7 until you have all the columns needed to compute the calculate layer.

    widget calculate layer 
  9. Click on the + button and select Calculate Layer.

    add calculate layer calculate layer
  10. On the Calculate Layer window, fill in the Name, then the Formula to compute the calculate layer. Simply select the data sources to be used for the formula. 
    calculate layer formula
  11. You may choose a format for the Number Format Type by clicking the paintbrush icon and selecting a format.
    format formula number
  12. Once done, click Save then Apply. The calculate layer will now appear. 
    billable percent