Accessing Data from Repeating Group

Hello,

I am having trouble getting a count of unique items from a list and using them to do further calculations.

The end goal of this is to be able to see a count of the number of times a unique price occurs over the last hour.

For example, I have 5 prices. [4.1, 4.2, 4.1, 4.3, 4.3]. I want to be able to find the unique items [4.1, 4.2, 4.3] then find a count of how many are in the list [2,1,2].

I was able to do this by setting up a repeating group to find the counts of the unique variables. However, once I have these counts calculated in the repeating group I cannot access this list anywhere within bubble.

Does anyone know how to access a list of calculated data within a repeating list? Or do they know how to return a list of counts of unique items from another list?

Thank you,

Brett

I’d recommend using a Javascript workflow action.
You can get one by installing the Toolbox plugin (details here)

In the javascript execution action you can use a simple script. here are some examples.

Hope this helps!

Interesting! Thanks for letting me know this seems like it could definitely work.

I’ll give this a shot!

Thanks!

Just as a follow up I was able to utilize the Toolbox plugin, found some javascript code for entropy online, modified it for our needs, and was able to pull the entropy calculation into our app using the Javascript to Bubble box.

It’s a little confusing / janky but the fact that you’re able to utilize javascript on bubble is amazing. Great tool!

Thanks blurapps!

1 Like

Glad that helped :slight_smile:
All the best