Thanks Jim
For my application I need a function which uses the Group By option of the right click New formula Column menu to calculate and distribute the respective values - similar to Col Number (Count), but just counting unique/distinct entries.
There is nothing like
N categories(column, bygroups)
- or a an option just count unique values for the Col Number function?
Big-Class application case:
A user want to calculate the percentage of age groups, with mean height > 60, separately for male and female. Then N categories could be a nice way to do this:
PercentTallAgeGroups = N Categories(if(Col Mean(:height,:age, :sex) > 60,:age, .), :sex) / N Categories(:age, :sex)*100
More reasonable application cases:
- ratio of defects per measured wafer for several lots (for a data set with chip-fine data)
- ratio of cities with >0.1% Covid mortality for several countries
Workaround:
Generate a Summary Table with the needed by groups and merge it back into the main table.