PricingBlog

Sum of values in a specific field

  • samuelt_19895-1275452688091582555

    Samuel T

    1 year ago

    Help please, rookie here
    I'm trying to get all the values in a specific field from xano to display in a text element
  • tomthebigtree-1275453802975334501

    Tom Ireland

    1 year ago

    Happy to help - could you expand a bit more on what you’re trying to do? If you can share some screenshots or a short screencast, that would be very helpful. 😊
  • samuelt_19895-1275454023230554112

    Samuel T

    1 year ago

    @Tom Ireland Thanks!
  • samuelt_19895-1275454718428188775

    Samuel T

    1 year ago

    So I have an array coming in from Xano, and I want to create another array of all "payable_commision" values and sum those to replace "20 000"
    1275454717807431721-Screenshot_2024-08-20_at_15.59.23.png
    1275454718063415378-Screenshot_2024-08-20_at_16.00.41.png
  • Hope that makes sense
  • max.kayr-1275457386429153342

    Max

    1 year ago

    Do you want to sum up all commissions in an array? If so, the "Reduce" node is the one that should get you there
  • samuelt_19895-1275463618074247228

    Samuel T

    1 year ago

    Thanks, Max
    I know the initial value is 0
    Should the formula be sum?
    And the array, when I try to select the array I can only click down into selecting only one commission
    1275463617852084308-Screenshot_2024-08-20_at_16.35.51.png
  • 1275463773381202051-Screenshot_2024-08-20_at_16.37.35.png
  • lucasg-1275467333153853450

    Lucas G

    1 year ago

    Formula is an Add node with the inputs being the 'item' and 'result'
  • max.kayr-1275467586066452513

    Max

    1 year ago

    1275467585781104690-image.png
    ❤️1
  • Ah, @Lucas G was faster 😅
  • lucasg-1275467770028490763

    Lucas G

    1 year ago

    I cheated I didn't add a screenshot
    😁1
  • samuelt_19895-1275468685846515782

    Samuel T

    1 year ago

    You guys are gems @Max @Lucas G -
    💪1
  • Thank you
  • Oh and @Tom Ireland
  • 🙂
  • tomthebigtree-1275468895544676518

    Tom Ireland

    1 year ago

    I was late to the party - couldn't create a branch to do an example. @Lucas G and @Max FTW! 🙌
    😄2