Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Pessoal boa tarde,
Tenho uma tabela com vários registros e neles constam datas, segue ex:
Existem datas de vários anos, e esse campo ActualorderYear criei através da linha de script:
Porém, eu queria que ficasse um registro apenas para todas as datas do determinado ano, mas ficam vários registros para o mesmo ano, vejam um seletor dropdown para o campo de ActualorderYear:
É possível eu colocar somente um registro, onde quando eu selecionar 2006 ou até mesmo 2018 ele selecione todas as datas que correspondem ao respectivo ano?
Grato!
You should create one more field like this -
In your filters use this Year field. When you select any year, it will select all dates of the selected year.
The basic practice is to use master calendar table and link that table to your fact table with the Date field.
You should create one more field like this -
In your filters use this Year field. When you select any year, it will select all dates of the selected year.
The basic practice is to use master calendar table and link that table to your fact table with the Date field.
Criar um filtro para o Ano não resolveria o problema?
Assim ele traria todos os registros do ano selecionado no filtro.
Conforme o digvijay bem disse, o correto nesse caso seria substituir essa linha do script:
Por:
Hello man thanks for the answer.
It worked perfectly as I imagined.
Best regards!
Seria uma medida paleativa mas não resolveria o problema... É porque o objetivo era ter os registros em um seletor dropdown...
De qualquer maneira, obrigado pela resposta Hudson, um abraço!
Assim foi feito Thiago, obrigado pela resposta...
Um abraço!