Hello everyone!
I’m trying to figure out how I could see the sum of my total word count at the top of my container. As you can see on the second screenshot, I already use a MyNumber attribute to see the progression of my work in MapView. I suspect that this could be a redundant duplicate, am I wrong?
Thanks for your help.
WordCount always applies to its note. So $WordCount for “Project d’article…” is the number of words in that note’s Text. It is read only, so you can’'t alter the value. It also means you can’t have the sum in the same column in view column. But, we do need to use another attribute:
If you look at $Pattern (in Displayed Attributes or Get Info) you will see the actual number being set.
Aha! You haven’t set a Maximum. As shown, pattern bar() is using the value of $MyNumber, which appears to be 20. If you only supply one number to the bar() pattern it assumes the number is a percentage. So your ‘Project’ currently plots a progress level off 204% (actually that means 100%, but thus you see no progress bar.
So, you need to work out what word count you will treat as 100% done and put that in the ‘Maximum’ box on the inspector (and zero for ‘minimum’, though I think that is assumed if missing.
Or instead of setting a min and max you can change the expression so that $MyNumber (or another number attribute) has a value between 0 and 100.
Don’t forget flags can be used for progress bars in both map and outline (or flag #1 if more than one.