Como realizar contagem de datas específicas?

Já fiz uma pergunta parecida uma vez, mas não conseguiram me ajudar. Novamente venho tirar a mesma dúvida, porém agora com datas (dia e mês).
Preciso calcular a quantidade de vezes que uma data foi selecionada, tentei através do rollup, if-then-else (para calcular as vezes que forem true), mas não consegui de jeito nenhum. Poderiam me ajudar?

Ex.: Existem 5 linhas com a informação da data do dia 19/04/2024. Preciso realizar a contagem dessas 5 linhas, e que me traga o resultado correto.

Can you show us how your data is structured? What is the column where you need to count the dates?

Claro, posso sim.
A coluna é essa:

  • Create a math column that converts the date to a number without the time.
Year(Date) * 10^4
+ Month(Date) * 10^2
+ Day(Date)
  • Create a relation column that links the math column to itself.
  • Create a rollup column that gets the count from the relation.
2 Likes

Pode me dar um exemplo de como criar a coluna matemática convertendo a data, Jeff? Acho que eu entendi errado… devo primeiro separar a data em ano/mês/dia?

You did not enter the formula exactly as I have shown.

Sim, eu não entendi. Devo primeiro separar a data entre dia/mês/ano? Se eu colocar a fórmula direto, vai apresentar o erro informando a data. Pode me mostrar algum exemplo? Por favor…

If you enter the formula as I have shown, then you only need to replace ‘Date’ with the column that contains your date. The formula separates Year, Month, and Day and puts it all back together. You shouldn’t have to do anything extra.

Certo, obrigada! Deu certo agora, muito bom <3

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.