Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sayadutt
Creator
Creator

how to add conditional sums on bar chart

Hi All,

I have below as expression in my chart.  

sum( {1} XX_Total)

{1} is used to detach the graph from others.

 

Now I want to add a condition in the above expression so that the sums up only when there are distinct values based on another field.

MonthTypeXX_total
Jan 20Primary50
Jan 20Secondary20
Jan 20Primary60
Jan 20Secondary80
Feb 20Primary5
Feb 20Secondary2
Feb 20Primary6
Feb 20Secondary8

 

It should only do the sum when Type=Primary only.

{1} is required in expression to detach it from other selections.

 

Can you please suggest what should be my edit expression in this case

1 Solution

Accepted Solutions
Kushal_Chawda

Not 100% sure but may be this

sum( {1<Type={'Primary'}>} XX_Total)

View solution in original post

1 Reply
Kushal_Chawda

Not 100% sure but may be this

sum( {1<Type={'Primary'}>} XX_Total)