Skip to main content
David Ernesto Q
March 27, 2023

Smart containers items count

  • March 27, 2023
  • 5 replies
  • 229 views

Hi there I have a smart container with some items. I wanna show the total items count outside the smart container specifically inside other element on the same page. I have to mention that on the same page there are 4 smart containers but only one is the important for counting. This is posible?

    Comments

    Addie
    March 28, 2023

    Hi David 

    Thanks for posting your question in the Lucid Community!

    To visualize the item count within your smart container in a shape outside of the smart container please follow these steps:

     

    1. Retrieve the name of the desired smart container using the formula =LABEL

    Retrieving the name for all three smart containers:

    • Select the entire smart container 
    • Open the Contextual Panel and select the Data tab
    • Add a new Data Field and title it "Name"
    • Enter the formula (=LABEL) into the value field 
    • Copy the generated name of the smart container

     

    Retrieving the name of just one smart container:

    • Select the entire smart container 
    • Select the specific shape within the smart container
    • Open the Contextual Panel and select the Data tab
    • Add a new Data Field and title it "Name"
    • Enter the formula (=LABEL) into the value field 
    • Copy the generated name of the smart container

     

    2. Visualize the item count in a shape outside your smart container 

    • Drag a new shape onto your document
    • Open the Contextual Panel and select the Data tab
    • Create a new Data Field 
    • Name the Data Field "Total Items" and enter the formula (=#"copyshapenamehere"."Total Items") into value field
    • To visualize this number within the shape select the T+ icon next to the Data Field 

     

    3. Add or delete items from the Smart Container and the formula will automatically calculate 

    I hope this helps! Please let us know if you have any additional questions. 

    Addie
    David Ernesto Q
    March 28, 2023

    Hi Addie

    Thanks for the answer that was what I was searching for.

    I hace another doubt I have three groups of radios and I want a calculation of a complexity index based on the selection. For example:

    The three radios have three options with values from 1 to 3 selecting all three should make an average calculation and display it in an object.

    Is that posible?

    Something like this:

    Addie
    March 29, 2023

    Hi David 

    Thanks for your follow up question. There is not a way to select objects and total data based on those selections - but we can see how this type of feature might be useful! We're always looking for ways to improve Lucidchart and your feedback is the best way for us to do that. Would you mind adding your idea to our feature request form? Ideas submitted to this form are passed on to the product development team for their consideration.

    Thanks for your feedback and apologies for any inconvenience.

    Addie
    David Ernesto Q
    March 30, 2023

    Hi Addie

    I'm sad to hear that I'll add my idea to your forum. Thanks for your help.

    Regards.

    Addie
    March 30, 2023

    Hi David thank you! We appreciate you sending in your feedback! 

    Addie