ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Criar uma coluna de recorrência

Daniel_Gotardo
5 - Atom

Boa tarde,
Possuo uma planilha em excel com dados históricos, contendo as seguintes colunas. Na coluna "Recorrência" preciso criar uma contagem em dias, quantas vezes o associado aparece, considerando a coluna DATA/HORA GERAÇÃO.
Se o associado aparecer mais que uma vez no mesmo dia, considerar contar apenas uma vez,

Há um detalhe, se o associado aparece exemplo 01/04/25 e depois só em 01/08/25 a contagem precisa ser reiniciada. A ideia é contar quantos dias seguidos ele aparece, considerando pular os finais de semana e feriados.
Outro exemplo:
O associado apareceu entre os dias 24/11 e 28/11, a recorrência será 5, na segunda-feira 01/12, continua em 6, 7..., se a segunda feira fosse feriado, a contagem ia continuar no dia 02/12, em 6,7...

DATA MOVIMENTOPA AVALISTAGERENTECPF/CNPJ ASSOCIADONOME DEVEDORNº CONTRATOVALOR SALDO DEVEDORCPF/CNPJ AVALISTANOME AVALISTANº CONTA CORRENTEVALOR PARCELASALDO DISPONÍVELORIGEM DO SALDODATA/HORA GERAÇÃOPERÍODO DIAREGIONALRECORRÊNCIA
4 REPLIES 4
jrlindem
12 - Quasar

Can you provide the sample data in a CSV or excel file?  Then we can build a working example.

 

Translation:

 

"Good afternoon,
I have an Excel spreadsheet with historical data, containing the following columns. In the "Recurrence" column, I need to create a count in days of how many times the member appears, considering the DATE/TIME GENERATED column.
If the member appears more than once on the same day, count it only once.

There is one detail: if the member appears, for example, on 04/01/25 and then only on 08/01/25, the count needs to be reset. The idea is to count how many consecutive days they appear, skipping weekends and holidays.
Another example:
The member appeared between 11/24 and 11/28, the recurrence will be 5. On Monday 12/01, it continues as 6, 7..., if that Monday were a holiday, the count would continue on 12/02 as 6, 7..."

Daniel_Gotardo
5 - Atom

Boa tarde,
Segue arquivo exemplo.

 

O objetivo é:
Se um mesmo CPF/CNPJ, nº contrato e nº conta corrente ou origem do saldo aparecem diariamente, soma-se +1 à contagem do dia anterior. Caso esses critérios não sejam atendido por mais de 3 dias seguidos, a contagem recomeça.

3 dias seguidos, pois precisa ignorar contar sábados e domingos, além, de poder ocorrer feriados em segundas-feiras. Também é aceitável até 4 dias sem aparecer e não recomeçar a contagem, a partir de 5 dias essa contagem precisa recomeçar.

jrlindem
12 - Quasar

@Daniel_Gotardo 

Which date do you want considered:  [DATA MOVIMENTO] or [DATA/HORA GERACAO] ?

Also, if the weekends and Holiday were able to be removed, then your requirement of the 3/4 days before reset no longer need to be considered right?  If those were not there, then does the count reset after any missed day?  I assume yes based on your first message.

I should be able to build out a workflow to show this.  I'll use American Holidays, but you can swap those out for the Holidays that are relevant to you in your region.

Let me know in the meantime the answer to my question about the data field to use.  -Jay

Daniel_Gotardo
5 - Atom

Bom dia,
Pode considerar  [DATA/HORA GERAÇÃO].

Perfeita leitura referente a questão da diferença de dias perdido, é isso mesmo.

Labels
Top Solution Authors