Count distinct numeric values in a dashboard Stat widget
Count each project number once, even when it appears on several source records.
Use Distinct Count when several records can share the same numeric identifier. For example, count how many projects appear in a work log by using its numeric Project number field.
- Select Configure widget on a Stat widget you can manage. In Data, choose Single value under Layout.
- Under Aggregation, select Distinct Count. Under Field, choose the numeric Project number field.
- In Filters & period, choose Project number under Filter Field and Is Not Empty under Data Filter. If you only need activity from a particular period, choose the relevant Time Range and Time Field.
- Select Update Widget. Verify the count against the source table with the same filters. For project numbers 101, 101, 202, 303, and a blank, the result should be three.
The count follows the numeric field you selected. If two projects share a number, they contribute one value. Check that each project has its own number before using the count in a report.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?