The Summer Cup has officially kicked off! Get ready to learn, connect, and compete! Complete Community engagement tasks to earn points and unlock exclusive Summer Cup badges for your profile. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Calculate the no. of. days

Ronal_bal
8 - Asteroid

calculate the no. of. days when production status = 1 .

 

Below example, need to count date  between '2023-04-21' to '2023-05-15' as production status =1 . 

 

I need to calculate the same for different groups.

 

Ronal_bal_0-1682093320381.png

 

7 REPLIES 7
Luke_C
17 - Castor
17 - Castor

Hi @Ronal_bal 

 

There are two different approaches as you mentioned two different sets of logic:

 

  1. 'calculate the no. of. days when production status = 1'
    1. Add a filter tool for Production Status = 1
    2. Use a summarize tool to Group By 'Group' and count the shift dates
  2. count date  between '2023-04-21' to '2023-05-15' as production status =1
    1. Probably requires a more robust set of logic in case there's 0s in the middle of the dataset, but could leverage multi-row tools, date time functions, etc. 

Attaching data (not a screenshot) and expected results would help determine the best approach. 

Ronal_bal
8 - Asteroid

Thanks for your reply, I'll try that. Attached the example as excel file

Ronal_bal
8 - Asteroid
Ronal_bal
8 - Asteroid

@Luke_C 

 

could you help me with multi-row formula?

binuacs
21 - Polaris

@Ronal_bal One way of doing this

binuacs_0-1682104603083.png

 

RobertOdera
13 - Pulsar

Hi, @Ronal_bal 

 

Kindly consider the options below.

I hope you find them helpful - Cheers!

 

RobertOdera_0-1682113529113.png

 

RobertOdera
13 - Pulsar

You're most welcome @Ronal_bal!

Labels
Top Solution Authors