By now the NumOfChanges Function in AF Analytics does not take into account the value at the start of the timerange. NumOfChanges only counts the amount of changed values of the recorded values in the given timeframe.
If I query the NumOfChanges for today 12 am till now and my Archived Values are:
Val1, 11:59 pm (day before)
Val 2, 4 am
Val 2, 12 pm
Val 2, 8 pm
the function will result in 0 although in the time from 12 am to 4 am there was Val1.
Regarding TechSupport this is not a bug in the functionality, only a bad description of the functionality of NumOfChanges.
For now I built a workaround:
If TagVal(Tag,Starttime) <> NextVal(Tag,Starttime) THEN NumOfChanges + 1 ELSE NumOfChanges
But I think such a missleading function should be changed.