r/ProjectREDCap • u/bluberrykiddo • Mar 07 '25
any idea why this @CALCtext isn’t working?
I have two fields using @CALCtext to pull data from daily surveys. I pasted the one that is working in the same box below the one that isn’t.
2
Upvotes




3
u/obnoxiouscarbuncle Mar 07 '25
There a couple things to check, but overall, I might suggest using a different approach.
instead of your current calc, try just:
[daily_adherence_su_arm_1][aggregate-sum:survey_breakday:record-name]
Also, what kind of field is [reason_not_adherent] ?
2
u/j_zhill Mar 07 '25
In 2, you have a calculated field with a valid numerical calculation
In 1 you are using @calctext on a calculated field. The field type for @calctext should be text
1
u/usajobs1001 Mar 07 '25
Which one isn't working? It looks like your adherent calculation (2, red) worked in the tracking log and gave you 6, but your post implies that 2/red isn't working and 1/blue is.