# Have Linear Regression return units

Linear regression is one way to measure trends in a tag (When called as: LinReg(Tag, StartTime, EndTime). In particular, the slope is then the rate of change of that tag over time.

Currently slope is simply returned as a number, but it would be nice if was returned as a number with a unit.

For example, if I want to measure the level of a tank as % and see how it rises and falls over time, the slope of the linear regression has units in %/time. We can off course manually add units ourselves, but it would be nice if this was done automatically (see attached image)

**1**vote