I am trying to make a SQL calculation in a HTML data page, to display the sum of points attained by the logged-in group member.
My SQL statement, in a calculated field, is:
select sum(Points) from Activity_Table where Activity_Table.Member_ID = [@field:Member_ID]
If I manually set the member_ID field in the formula (e.g. Activity_Table.Member_ID = 103), the formula works correctly, but when I try it as shown above my result is the sum of ALL points regardless of member. I am assuming that there is some problem passing the field value correctly, but I can't figure it out. Anyone have any thoughts? Thanks!!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
eetimm
I am trying to make a SQL calculation in a HTML data page, to display the sum of points attained by the logged-in group member.
My SQL statement, in a calculated field, is:
select
sum(Points)
from Activity_Table
where Activity_Table.Member_ID = [@field:Member_ID]
If I manually set the member_ID field in the formula (e.g. Activity_Table.Member_ID = 103), the formula works correctly, but when I try it as shown above my result is the sum of ALL points regardless of member. I am assuming that there is some problem passing the field value correctly, but I can't figure it out. Anyone have any thoughts? Thanks!!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.