When creating an analysis and choosing to visualise you can display the sample size within the graph.
The show sample size option can be switched on or off through the modify menu. The setting selected is sticky for all the analyses created during that session.
In this article
- Sample size direction
- Sample size calculation
- Sample size export to PPT and Excel
- Show sample size exceptions
1. Sample size direction
The show sample size option displays the sample size next to the chart axis labels or legend item labels based on the direction/dimension of the percentage base.
If your percentages are based on the down dimension, which is the default behavior, the sample size appears in the across axis labels. If you have changed the percentages to be based on the across dimension, the sample size will appear in the graph legend.
2. Sample size calculation
The sample size calculation depends on the direction of the base.
Percentages based on a standard axis
For standard axes, Harmoni uses the unweighted base (n=uB) for the sample size calculation.
In the example below; percentage base calculation is set to Gender (standard axis); therefore the sample size is the unweighted base (n=uB)
Percentages based on a measure
When percentages are based on a measure, Harmoni uses the unweighted count of the Total (n=u123) for the sample size calculation.
In the example below; percentage base calculation is set to Gender (standard axis); therefore the sample size is the unweighted base (n=uB)
In the same analysis, if we set the percentages (and averages) to be based on the measure group, the sample size is now the unweighted counts for the total (n=u123). In some cases, the u123 may be the same as the uB.
3. Sample size export to PPT and Excel
When show sample size option is on:
- In Excel - the sample size is available even if it not displayed in the Harmoni table.
- In PowerPoint - the sample size is exported as part of the labels.
4. Show sample size exceptions
Show sample size option is not available:
- When showing sample size in the legend and all the items plotted don’t have the same base. This scenario can occur when using apply base Learn more about how to apply a base in the project tree. in the project tree.
- When showing sample size in the across axis and all the items plotted within one of the across labels don’t have the same base. This scenario can occur when using apply base in the project tree.
- In an analysis where the percentage base has been set to a dimension Learn more about percentage base zone. that is not plotted in the graph (i.e. not down or across).
- For space graph, plot graph and single number display visualise options.
- Pie graph - this will be available in the future.