Hi all

I am trying to get the average value of a field for the 5 last created 
tiddlers with FET.
See below what I have so far.

I can't have it work.

Can you please help me ?

regards

Julien

[[ConfusedVectorError]]

|DPMO|<<tiddler FetAverage5Text with:cvErr>>|
>


[[FetAverage5Text]]

<<forEachTiddler
>     where
>         'tiddler.text.contains("|$1|") && 
> !tiddler.text.contains("|$1|0|")' 
>     sortBy 
>         tiddler.created
>         descending
>    write 
>         '((index == 1) ? "<<tiddler resultTid with: {{ ( <<tiddler 
> [["+tiddler.title+"::$1]]/>/>" :
>       (index >= 2) && (index <= 4) ? " + <<tiddler 
> [["+tiddler.title+"::$1]]/>/>" :
>       (index == 5) ? " + <<tiddler [["+tiddler.title+"::$1]]/>/> ) /5 
> /}/}/>/>" :
>       "")'
> >>
>

[[resultTid]]

$1
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to