Hello! I have the following example document:
{
is_type_a: false,
is_type_b: false,
is_type_c: true,
points: 20
}
I want to create a Text > Number Chart that will display a new calculatedField Totals following this rule:
-
For each document that
is_type_a == true
andis_type_b == True
, add 180 to the new calculatedField Totals -
For each document that
is_type_a == false
oris_type_b == false
andis_type_c == true
, add the fieldpoints
to the new calculatedField Totals
I am new to the aggregation pipeline and charts, so I am a bit confused on how to achive this. I only know how to create simple calculatedFields and display them.
Any thoughts ?