@buggyj Thanks for sharing the code. Both of them works well.
What should I do to get the sum of the same fieldvalues ( with prefix ct- and cect- ) in all tiddlers with a particular field or tag (For example, field-name sth-rad with field-value data) for a particular month.
How to identify each month seperately ? I am ok with adding a field-name to these tiddlers to denote the month they belong to ( for example field-name month with field-value February2023).
This month data is displayed in the tiddlers whose title will be same as that of the field-value of the field-name month. That is month tiddler February2023 will show sum of all field-values from tiddlers with fields sth-rad=data and month=February2023
@TW_Tones I am in the process of creating a data entry and analysing system for my work place. It is in the beginning stage only, that’s why I hadn’t reached the level of calculating the field values for a large number of tiddler. As a first step I wanted to get the sum of fields with prefix ct- and or cect- for the currentTiddler only. Now that buggyj have solved the first step, I am proceeding to the next step, that is calculating the field values for the entire month among tiddlers with a particular field or tag (For example, field-name sth-rad with field-value data)
As far as I can see that is currently no way to handle lists of lists with filtering, so either intermediary results would need to be stored and then ‘reduced’, or filters would need to be dynamically created (thru a js macro or wikifying (or possible a recursive wikitext macro)). The alternatives are to do the whole thing (or most or it) in a js macro, or created a new filter (i.e. writing some js).