Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
davidoxi
Contributor III
Contributor III

Calculate the number of rows in a column with condition

Hello,

I have the following expression :

if([Type de commande] = 'URGENT' or  [Type de commande] = 'GROS' or [Type de commande] = 'PVI' ,Aggr( count([N° de commande]),[N° de client]),1)

And I want to calculate the order number for each customer number

And thank you in advance

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

May be this in your expression:

= Sum(Aggr(Count(if(Match([Type de commande], 'URGENT','GROS', 'PVI'), [N° de commande])),[N° de client]))

View solution in original post

3 Replies
sunny_talwar

Where are you doing this? In a chart with client as dimension or somewhere else?

vishsaggi
Champion III
Champion III

May be this in your expression:

= Sum(Aggr(Count(if(Match([Type de commande], 'URGENT','GROS', 'PVI'), [N° de commande])),[N° de client]))

davidoxi
Contributor III
Contributor III
Author

thank you Vishwarath Nagaraju The exercise was resolved