Hi. I am having a table of identifiers and elements on how to calculate the number of entries with the same identifier to find out which one is most popular.
I understand that I need to use filters
SALESLIST.SETFILTER ("No", '<>% 1', "No");
SALESLIST.SETRANGE (ID, ID);
but I can not find a solution to calculate the most popular record
Answers
You have to set proper relations between the fields and may have to add or alter a key of table A, but in that case you'll get a error message that explains what to do.
If you create a key for table B with "No. of Entries in table A", you can sort for the biggest entry.
Of course this only makes sense if this function is used very often.
number of occurrences per ID
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03