# Increment Counter in a Map

**URL:** <https://forum.yugabyte.com/t/increment-counter-in-a-map/759>\
**Category:** General\
**Created:** [July 10, 2020, 5:30pm UTC](https://forum.yugabyte.com/t/increment-counter-in-a-map/759 "2020-07-10T17:30:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![llKetanll](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/llketanll/32/241_2.png) [@llKetanll](https://forum.yugabyte.com/u/llKetanll)\
**Post date:** [July 10, 2020, 5:30pm UTC](https://forum.yugabyte.com/t/increment-counter-in-a-map/759/1 "2020-07-10T17:30:27Z")

</div>

In `YCQL` how can we increment a counter inside a MAP?

For example: `UPDATE a SET m['k'] = m['k'] + 1 WHERE...`  
The usual increment/decrement operation for a counter in the map produces this error `Operator not allowed as right hand value`

---

_[View the full topic](https://forum.yugabyte.com/t/increment-counter-in-a-map/759)._
