Tenho uma tabela com vários registros de entrada e saída, gostaria de saber como eu faço para filtrar e mostrar somente o último registro daquela planilha com base na coluna Tipo de movimentação.
Obrigada desde já pela ajuda.
Solved! Go to Solution.
In general, you could use the MAXROW() based expression in a slice and then base the view on that slice to show the only latest one record.
In general, you could use the MAXROW() based expression in a slice and then base the view on that slice to show the only latest one record.
Bom ... Vai depender de como está estruturada a sua tabela.
Pessoalmente eu gosto de estruturar o ID das minhas tabelas no formato número e aplicar uma fórmula incremental no Initial value, mantenho, assim, uma contagem dos meus registros e sempre saberei que o maior número foi o último registro.
Se você também utiliza esse método, poderá Filtar a tabela e solicitar que retorne o maior valor de registro com base no determinado tipo de movimentação.
Espero ter ajudado!
Se precisar de algo mais, estou à disposição,
@St0n3 wrote:
Personally, I like to structure the ID of my tables in number format and apply an incremental formula to the Initial value, thus keeping a count of my records and I will always know that the largest number was the last record.
Hi @St0n3 ,
If you are referring to sequential numbering of keys etc. then it is not a recommended approach in AppSheet , especially in multi-user apps.
Sequential keys - AppSheet Help
The article starts with the following description
Please take a look at the initial description in the following tip as well.
Serial Numbers, If You Must - Google Cloud Community
I hadn't really thought about the possibility of using my system offline and how the incremental ID value could have a negative impact, thanks for the tip.
Good thing it's not scaled or used offline
Even so, I will resctrutre my tables.
Thanks!
Usei o MAXROW() conforme o amigo informou acima, no caso eu criei uma coluna virtual usando maxrow e referenciando a data do último registro e depois eu criei outras colunas virtuais usando essa referência mas mostrando as outras colunas que eu queria apresentar através desse último registro. Obrigada!
Coluna Virtual: UltimaMovimentacao
MAXROW("Note_EntradaSaida","Data_conclusao",[Maquina]=[_THISROW].[N_serie])
Coluna Virtual: UsuarioUltimaMovimentacao
[UltimaMovimentacao].[Usuario]
User | Count |
---|---|
17 | |
11 | |
7 | |
5 | |
5 |