'$groupby not working in OData v4 OData svc API

I'm working on Odata V4 and want to use groupby clause to get data from OData svc API.But its not working .getting below error

HTTP/1.1 400 BadRequest Content-Type: application/xml;charset=utf-8

The query parameter '$groupby' begins with a system-reserved '$' character but is not recognized.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source