Skip to main content
Nintex Community Menu Bar
Solved

count if in the smartform

  • Jun 10, 2021 8:51 PM UTC
  • 4 replies
  • 222 views
  • Translate All

squaladesign

 Hi everyone,

I'm trying to have some numbers in my smartform and I need to use a count if function that I didn't found. I'm trying to combinate if with count without any success 😞 

In the image here there is a part of the List View that I created and what I need to do i calculate the number of H1, H3, Yellow tag and Red tag for the whole table

18142iEF768C467C4D915F.png

How can I do that? In excel I have count if but I didn't found here.

Thanks

Best answer by Prineel_V2

Hi,

 

You can do this using an expression and rules or probably just using an expression.

Here is my lisview, im counting all the "H1" items from my smartobject:

 

I have a expression that looks like this (Datalabel stores the count):

 

On my view execute rule, i have a for each rule, followed by an if statement and then followed by the set properties of my datalabel:

 

This is how my if statement looks (if smartobject field is equal to H1 the count-see next image for count):

Set the property of the datalabel to add 1 each time it finds "H1" using the expression

 

View original

4 replies

  • Nintex Partner
  • Answer
  • Jun 14, 2021 3:27 PM UTC

Hi,

 

You can do this using an expression and rules or probably just using an expression.

Here is my lisview, im counting all the "H1" items from my smartobject:

 

I have a expression that looks like this (Datalabel stores the count):

 

On my view execute rule, i have a for each rule, followed by an if statement and then followed by the set properties of my datalabel:

 

This is how my if statement looks (if smartobject field is equal to H1 the count-see next image for count):

Set the property of the datalabel to add 1 each time it finds "H1" using the expression

 

Translate

squaladesign

Uhhh nice, I will try, thanks!

Translate

squaladesign

Thanks so much, it's working and I also now understand hw to add "Advanced" formulas.

Thanks

Translate

Forum|alt.badge.img+2
  • Rookie
  • Jun 21, 2022 12:09 PM UTC

Thank you.

it's helped me!

Translate