Skip to content

Stat card value to display a sum #13617

Answered by mikesealey
jleech1992 asked this question in Help
Discussion options

You must be logged in to vote

Hi @jleech1992

I've been looking into this for you. Don't worry about not being able to achieve something simple, it's only simple when you know the answer! Also a quick note on rows vs columns - rows go horizontally across the table (think rows of seats in a theatre), and columns go vertically (Like the columns of the Parthenon) .

The way I've tackled this is by using a Data Provider component, and putting the Stat Card inside that. Set the Data Provider to fetch from your table using the Data option.

Component Tree

Data Provider Settings

Then, in the Value field of your Stat Card switch to JavaScript.
let rows = $("New Data Provider.Rows")
This gets all of the rows in the table you se…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants