# List the number of items in a filtered Data Viewer List

**URL:** <https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464>\
**Category:** Questions about Thunkable X\
**Tags:** data-viewer\
**Created:** [April 28, 2023, 7:01am UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464 "2023-04-28T07:01:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattpb](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mattpb](https://community.thunkable.com/u/mattpb)\
**Post date:** [April 28, 2023, 7:01am UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/1 "2023-04-28T07:01:35Z")

</div>

I have two list viewer components that a user uses to filter a Data viewer list. How do i count the number of filtered items? I have seen something about FROM LabelXYZ but i am unable to find the FROM when selecting the label. I use SET Label Etc but it does not work?

---

<div class="post-metadata">

**Author:** ![mattpb](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mattpb](https://community.thunkable.com/u/mattpb)\
**Post date:** [April 28, 2023, 7:01am UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/2 "2023-04-28T07:01:59Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7ee5d041177bbe88766493d1cbda97ada76436d5.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 28, 2023, 1:30pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/3 "2023-04-28T13:30:01Z")

</div>

You already have the logic to filter the data by looping through all possible values with a conditional (If). So just add a count to the loop. Create a variable called numItems. If the data viewer’s layout should be visible then change variable numItems by 1.

---

<div class="post-metadata">

**Author:** ![mattpb](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mattpb](https://community.thunkable.com/u/mattpb)\
**Post date:** [April 28, 2023, 1:49pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/4 "2023-04-28T13:49:34Z")

</div>

Sorry still no clue - can you show an example please?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 28, 2023, 3:38pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/5 "2023-04-28T15:38:48Z")

</div>

Sure, give me a link to your project and I can provide a screenshot with the added blocks.

---

<div class="post-metadata">

**Author:** ![mattpb](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mattpb](https://community.thunkable.com/u/mattpb)\
**Post date:** [April 28, 2023, 5:09pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/6 "2023-04-28T17:09:28Z")

</div>

thanks it is [Thunkable](https://x.thunkable.com/projectPage/644bfcc8774163fccaa83708)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 28, 2023, 6:46pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/7 "2023-04-28T18:46:23Z")

</div>

Here’s the modified project: [Thunkable](https://x.thunkable.com/copy/799473b177d64695f77d2e881608d1cd)

And a screenshot of some of the relevant blocks:

 ![Screen Shot 2023-04-28 at 11.47.16 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/5/e52031e0d7a5d26073745d4bc7dcf021340b7b48.png)

---

<div class="post-metadata">

**Author:** ![mattpb](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mattpb](https://community.thunkable.com/u/mattpb)\
**Post date:** [April 29, 2023, 4:42pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/8 "2023-04-29T16:42:01Z")

</div>

thanks this works great, appreciate your support 😀

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 28, 2023, 4:42pm UTC](https://community.thunkable.com/t/list-the-number-of-items-in-a-filtered-data-viewer-list/2394464/9 "2023-07-28T16:42:38Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
