Salla Reports Examples#
Unit Report#
The Unit Report displays a single metric or value, making it ideal for counts, totals, or other standalone figures.After creating a Report, select Unit as the type from the dropdown menu. In this example, the Unit Report will show Store Sales Change.Then follow the below steps for each methodUse the following JMESPath expression:
@.{value: data.rows[0][1], change: data.rows[0][3], unit: 'Sales'}
1.
@.{ ... } → Builds a custom object for display.
2.
value: data.rows[0][1] → Points to column 1 (total_sales). Example: 10894.53.
3.
change: data.rows[0][3] → Points to column 3 (total_shipping). Example: 1615.45.
4.
unit: 'Sales' → Static label for the metric.
Final Evaluated Object (with the mock data){
value: 10894.53,
change: 1615.45,
unit: "Sales"
}
So this expression @.{value: data.rows[0][1], change: data.rows[0][3], unit: 'Users'} tells the template:
“Show the total sales as the main value, the total shipping as the change, and label it with the unit Sales.”The result will be shown as follows.Distribution Report#
The Distribution Report visualizes parts of a whole with bar segments and legends. It’s perfect for ratios like browser usage, payment methods, or customer groups.To create the distribution Report, after selecting the Distribution display type, then follow the below steps for each method.Using the builder you can simply enter the value or the location of the value. In this example, it shows the total sales, average and two distributions which are Discounted and Orders.
After choosing the display type and URL, choose the builder type on the map panel.In the builder you can enter the expression for each item or use the builder, as shown in the below example. The value is fetched from data.rows[0][1], change is set to 100 and average is set to 40.After that you need to enter the distribution details, click on builder to enter the data.This will display the add item button, click on it to add a new item.After that, click on the item to fill in the item details.Fill in the details of the item as needed, you have the option to choose expression or builder for each item.You can watch the changes on the component as you build it on the right side of the page.Add more items by clicking on the New Item button.This will add a new item in the map, you can expand it to enter the item details.Use Expressions for flexibility and direct mapping of JSON data.
Use the Builder for a simpler, guided setup.
Both methods achieve the same results choose the one that fits your workflow best.Modified at 2026-03-03 13:30:31