# Hackathon Data setText Help

**URL:** <https://forum.code.org/t/hackathon-data-settext-help/35592>\
**Category:** Coding and Debugging Help\
**Tags:** csp-unit-5\
**Created:** [December 15, 2021, 4:47pm UTC](https://forum.code.org/t/hackathon-data-settext-help/35592 "2021-12-15T16:47:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doolingm](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@doolingm](https://forum.code.org/u/doolingm)\
**Post date:** [December 15, 2021, 4:47pm UTC](https://forum.code.org/t/hackathon-data-settext-help/35592/1 "2021-12-15T16:47:14Z")

</div>

Newbie to teaching CSP and I have a couple of students having this issue with their code, on line 71 they are trying to pull a single number from the dataset based on their dropdown selection and display that, but instead it is pulling the whole list of numbers for all the airports. I’m sure it is something quite simple, but I can’t see to figure it out. Any guidance would be much appreciated!

> **[Check out what I made](https://studio.code.org/projects/applab/wv4091_NZg0285BKWgjCNMP9iObg0RHZmjwufKCWGKc)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [December 17, 2021, 5:01pm UTC](https://forum.code.org/t/hackathon-data-settext-help/35592/2 "2021-12-17T17:01:44Z")

</div>

Let’s narrow that program down to two lines of code:

```auto
var totalPassengersList = getColumn("Busiest Airports", "Total Passengers");
  setText("leastAmountDisplay", totalPassengersList + "People");

```

This should obviously put a list of numbers followed by People into that text box and it does:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/8/8e1e5f71c1fbb7ae90a8c47d68c60809b332575e.png)

The question you need to ask yourself is did he fire six shots or **only five**?1 No, sorry, wrong question. You need to ask which one of those you want to show. Do you want a random airport with less than 50000000 passengers? Do you want the airport with the lowest passengers?

* * *

1 Warner Bros. (1971). _Dirty Harry_ . United States.
