Skip to main content
Solved

Counting shapes inside a container from outside the container

  • March 29, 2025
  • 1 reply
  • 26 views

Forum|alt.badge.img

Hello,

Somewhat new user here. Been using lucid for a while but just getting into formula’s.

 

I have a container with 2 shapes in it. I’m trying to get a count of the number of shapes within the container from a label that is placed outside the container. The container has a shape id of “MyTeam”.

 

I can put a title on the container with the formula =COUNT(CONTAINED) and it works and displays 2 as the count.

 

When I attempt to do this outside the container is where I run into problems. I’ve tried the following….

 

=COUNT(#”MyTeam”.CONTAINED)

This results in an error saying 

"CONTAINED" was not found in "PCL5j ikY4cLF"

 

If I just reference =#”MyTeam” from my label it displays the containers name so the reference seems to work.

 

I tried to wrap it in a container object like below…

=COUNT(CONTAINER(#”MyTeam”).CONTAINED)

This does not error however the count displays as 0 on the label.

 

Thanks in advance for any help!

Best answer by aparrish

@jdul someone else asked a similar question a couple years ago. Here’s the thread:

 

View original
Did this topic help you find an answer to your question?

aparrish
Lucid Legend Level 6
Forum|alt.badge.img+11
  • Lucid Legend Level 6
  • March 29, 2025

@jdul someone else asked a similar question a couple years ago. Here’s the thread:

 


Reply