What is a "Compute dynamic categories" dimension ?
This kind of dimension allows you to define categories (used in filters, kanban columns, etc. like values of other dimensions) and cards sorted automatically in them.
Example
Let's say that you have cards corresponding to projects with a Customer grade (A, B, C) and Budget dimension. You'd like to categorize cards according to the following criteria :
- Any project with a budget of 10k€ or more, or a customer grade
Ais consideredCritical. - Otherwise, if the budget is higher than 5k€ the project is
Important - Otherwise, the project is of
Normalpriority
In Klaro Cards, you would normally create a Priority dimension with three values: Normal, Important, Critical.
Except you don't want to categorize cards manually. That's a situation where this kind of dimension is handy.
Creating values and their semantics
- Create an Advanced dimension with your three values, as usual. Make sure you select the "Compute dynamic categories" type of dimension.
- Then click on each value to define the semantics. An
Elofield allows you to put an expression for each.
Example
For Critical :
(_.grade.id == 'a') or (_budget >= 10000)
For Important :
(_grade.id != 'a' and (_.budget in 5000 ... 10000)
For Normal :
(_grade.id != 'a') and (_.budget < 5000)
The expression language
The expression language uses Elo, that can be used to compute any number you'd like. In those expressions:
_denotes the current card, on which the computed value applies,_.xxxdenotes the card value along the dimension whose name isxxx(insnake_caseformat ; if your dimension is namedTime spent, the variable istime_spent)_.xxx.iddenotes the identifier of the value, for dimensions with a list of values set on cards (simply use_.xxxfor numbers, dates and free text)_.xxx.semanticsdenotes the semantics value, for dimensions with numbers associated to values (second case of the earlier section)
How to find the dimension codes ?
In the formula editor, pressing _. should provide you with a suggestion showing the list of dimensions :

For a particular dimension, you'll find the code to use in formulas in the General panel when editing it :

Where to get help ?
Writing formulas is always a bit difficult for non-tech. Jump on our Klarocardistas community to get immediate help.
Going further
- Starting with Klaro Cards 0.259.0, Klaro Cards uses Elo which is simple, clean and powerful. The documentation online is certainly worth a read.
- For business instances on earlier versions, Klaro Cards still uses the Livescript language.