Here is the sample:
Granted we left DEM and moved to DPS so my data is null but the method still works and will work for you