# Reference Column Name with String

**URL:** <https://connect.superhuman.com/t/reference-column-name-with-string/6053>\
**Category:** Product Feedback\
**Created:** [January 31, 2019, 2:05pm UTC](https://connect.superhuman.com/t/reference-column-name-with-string/6053 "2019-01-31T14:05:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Dalmo\_Mendonca](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/dalmo_mendonca/32/5813_2.png) [@Dalmo\_Mendonca](https://connect.superhuman.com/u/Dalmo_Mendonca)\
**Post date:** [July 2, 2019, 10:46pm UTC](https://connect.superhuman.com/t/reference-column-name-with-string/6053/3 "2019-07-02T22:46:40Z")

</div>

Found this solution using `Switch`:

> [@Referencing Column Name from another table](https://connect.superhuman.com/t/referencing-column-name-from-another-table/3621/6):
>
> I have figured it out! I used the switch statement to check the type of battery used and then summed the corresponding column in the Toys table. =Switch( thisRow.[Battery Type], "AAA", Toys.AAA.Sum(), "AA", Toys.AA.Sum(), "C", Toys.C.Sum(), "D", Toys.D.Sum(), "9V", Toys.9V.Sum() ) Thank you everyone again for your assistance in figuring this problem out. You guys are terrific! -Rick

---

_[View the full topic](https://connect.superhuman.com/t/reference-column-name-with-string/6053)._
