# Create a manipulate control using data from a dataset?

**URL:** <https://community.wolfram.com/t/create-a-manipulate-control-using-data-from-a-dataset/14026>\
**Category:** Questions\
**Tags:** data-science, education, interface-construction\
**Created:** [May 2, 2019, 2:42pm UTC](https://community.wolfram.com/t/create-a-manipulate-control-using-data-from-a-dataset/14026 "2019-05-02T14:42:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anneshabhoumik](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@anneshabhoumik](https://community.wolfram.com/u/anneshabhoumik)\
**Post date:** [May 2, 2019, 2:42pm UTC](https://community.wolfram.com/t/create-a-manipulate-control-using-data-from-a-dataset/14026/1 "2019-05-02T14:42:55Z")

</div>

Consider the following code:

```
data = Dataset[{<|"userId" -> 5311, 
    "Rec" -> 
     "You need to improve in Free Response Question type"|>,<|"userId" -> 5312, 
    "Rec" -> 
     "You need to improve in Write Code Question type"|>, <|"userId"-> 5313, 
    "Rec" -> 
     "You have a great performance in all question types"|>,<|"userId" -> 5314, 
    "Rec" -> 
     "You need to improve in Multiple Choice Question type"|>}]

```

Is there a way to create a manipulate such that the control shows the userId and as I move the control, I see the text corresponding to each userId. Something similar to this:

```
Manipulate[Grid[{{userId}, {"text"}}, BaseStyle -> {FontFamily -> "Roboto"}], {{userId, 1}, 1, 5}]

```

---

<div class="post-metadata">

**Author:** ![henrikschachner](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/henrikschachner/32/32119_2.png) [@henrikschachner](https://community.wolfram.com/u/henrikschachner)\
**Post date:** [May 2, 2019, 3:46pm UTC](https://community.wolfram.com/t/create-a-manipulate-control-using-data-from-a-dataset/14026/2 "2019-05-02T15:46:01Z")

</div>

Maybe like so:

```
Manipulate[data[n, "Rec"],
{{n, 1, Keys[data][1, 1]}, MapThread[Rule, {Range[4], Normal@data[All, "userId"]}]}]

```

---

<div class="post-metadata">

**Author:** ![anneshabhoumik](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@anneshabhoumik](https://community.wolfram.com/u/anneshabhoumik)\
**Post date:** [May 2, 2019, 4:04pm UTC](https://community.wolfram.com/t/create-a-manipulate-control-using-data-from-a-dataset/14026/3 "2019-05-02T16:04:58Z")

</div>

Thanks a lot. This works perfectly.
