Pricing Blog

calculate array sum with formula

  • erickeverything-1290295251549949962

    ерик

    1 year ago

    I have multiple arrays that all have a "rating", i would like to calculate the average rating, but i cant figure out how to loop through each rating value in every array.

    Can some one help me please
    1290295251818381332-Bildschirmfoto_2024-09-30_um_16.50.43.png
    1290295252103725057-Bildschirmfoto_2024-09-30_um_16.50.55.png
    1
  • andreasmoller-1290296376344707114

    Andreas Møller

    1 year ago

    You can use Map and Sum together
    1290296376219009046-CleanShot_2024-09-30_at_14.56.462x.png
    ❤️1
  • I just created an example var but you would use your API data instead
  • erickeverything-1290297202840961157

    ерик

    1 year ago

    thank you !!