Im looking for a expression, that increments a counter, if a datafield dont change.
For example, my table has a ID and a Value:
ID Value
15 xy
15 zt
15 ou
17 ff
17 ds

The counter should count the identical IDs and looks like this:

I read already about a macro in topic "[Macro] Check if data in a field changes", but there is no code inside. Also i read about a Expression IF(CHANGED([ID]),... but that Keyword dont want work in my PSM 6.1.1.

Is there any way to do that without a Excel-handling?