Skip to main content
CAH-deljus06
February 21, 2024
Solved

Item/Shape Counter to sum the number of cards in frame

  • February 21, 2024
  • 13 replies
  • 759 views

Hi,

If I have multiple ID Cards/nametags inside of a frame, is there a way to have a counter or enter a formula to see how many cards are in the frame?

We are using Lucid for a virtual staffing board, and instead of counting the nametags manually, we wanted to just drag and drop and the counter move up or down based on # of nametags inside the frame.
 

Also, I did search for older topics but the 2-3 I found were 1+ yrs old and did not have a solution at the time.

 

Thanks,

Justyn

Best answer by Lance

Hi Justyn,

I believe conditional formatting or formulas on shapes can solve your problem. Here is a gif showing how to get a text badge with a count of the shapes in the container using conditional formatting. If you want the count in the title of the frame instead, or if you have other shapes in the frame you don’t want included in the count, I can help with that too. Let me know. 🤔

 

Comments

Lance
Lucid Legend Level 6
LanceLucid Legend Level 6Answer
Lucid Legend Level 6
February 21, 2024

Hi Justyn,

I believe conditional formatting or formulas on shapes can solve your problem. Here is a gif showing how to get a text badge with a count of the shapes in the container using conditional formatting. If you want the count in the title of the frame instead, or if you have other shapes in the frame you don’t want included in the count, I can help with that too. Let me know. 🤔

 

CAH-deljus06
February 21, 2024

Wow. This is great - I really appreciate your help. 

I actually do have some shapes that I’d like to exclude - the colored tiles. The name tags are below them (cut off for privacy).

Thanks

CAH-deljus06
February 21, 2024

Also, is there a way to have individual counters for multiple areas within the same frame?
 

 

Lance
Lucid Legend Level 6
Lucid Legend Level 6
February 21, 2024

Certainly! I changed the formula on the badge from =COUNT(CONTAINED) to =COUNTIF(CONTAINED, x => SHAPETYPE(x) = “LucidCardBlock”). Here is a gif where I make that update and another gif showing how I got the shape type of the shapes.

 

Lance
Lucid Legend Level 6
Lucid Legend Level 6
February 21, 2024

Just saw your most recent question. We can get counts for subsections by putting those in frames as well. If you don’t want them to appear to be in additional frames, we can make them appear invisible. Looks like from your use case that we can maybe leave the frame title, which would make them easier to select and align.

Hopefully this helps.

CAH-deljus06
March 7, 2024

Lance, hope you’re doing well. Just had another question related to this topic. Please see the image below.

I’d like to create a rule that adds up total number of Lucid cards (indicated by yellow circle at top right), but exclude “ATTRITION” & “LEADERSHIP” frames. Do you think you could assist with this?

It’s just so we can accurately see how many people we have on-site at a glance.
 
Thanks so much. 
 

 

Lance
Lucid Legend Level 6
Lucid Legend Level 6
March 8, 2024

This one took a bit. First, I added a property to the two frames I wanted to exclude. I called the property “Exclude” and marked each as “true”.

On the outer frame, I added the conditional formatting rule that set the badge text to

=COUNTIF(CONTAINED, x => AND(SHAPETYPE(x) = "LucidCardBlock"COUNT(MAP(CONTAINEDBY(x), y => y."Exclude" = true)) = 0))
It counts items contained in the frame if they are a “LucidCardBlock” and are not contained by any frame that has the “Exclude” property set to true. This will also work if you have frames nested in each other and add “Exclude” to the outer frame. In this example, the outer frame count is 7, and the exclude property is on the purple and pink frames in the top left.

Let me know if you have any questions or if it’s not working. And thanks for the interesting challenge!

CAH-deljus06
March 8, 2024

Hi,

 

Thank you so much for the reply. What should the “If” parameters be? Once I have this I should be good.

 

 

Lance
Lucid Legend Level 6
Lucid Legend Level 6
March 8, 2024

You’re welcome! I just chose the formula option and entered =TRUE because I always wanted it to show up for the shapes I selected.

CAH-deljus06
March 27, 2024

Lance,

Just a follow up question for this thread. I’m trying to make a smaller, separate frame that calculates how much of our workforce is gone using the total in “ATTRITION” and the total of the entire chart (both highlighted)

Any advice on how to best go about this?

Thanks again.