Pular para o conteúdo
officetuning.aiofficetuning.ai
TreinamentosConsultoriaBibliotecaFerramentasConteúdoPortfólio
Entrar
officetuning.aiofficetuning.ai

Treinamento, consultoria e mentoria para decidir, construir e aprender nas quatro frentes da marca.

AI · Data · Productivity · Dev · São Paulo
contato@officetuning.ai
TreinamentosPower BIExcelSQLPowerPointIA + ProdutividadeTodos os treinamentos
PortalConsultoriaBibliotecaPortfólioBackground BuilderDashboard CanvasConteúdo
InstitucionalPolítica de privacidadeInformações legais
© 2026 officetuning.ai · São Paulo
  1. Biblioteca
  2. Power Query (M)
  3. Funções M
  4. Type.TableKeys

Type.TableKeys

MTipo

Retorna a lista, possivelmente vazia, de chaves do tipo de tabela fornecido. Cada chave é um registro com Columns (lista dos nomes de coluna da chave) e Primary (true se for a chave primária; caso contrário, false).

Sintaxe

M
Type.TableKeys(tableType as type) as list

Parâmetros

tableTypetypeObrigatório

Tipo de tabela a inspecionar.

M
AddKey

Retorna

list

Exemplo

M
let
    BaseType = type table [ID = number, Name = text],
    AddKey = Type.AddTableKey(BaseType, {"ID"}, true),
    DetailsOfKeys = Type.TableKeys(AddKey)
in
    DetailsOfKeys

Resultado

M
{[Columns = {"ID"}, Primary = true]}

Mais informações

Subgrupo
Type
Referência
https://learn.microsoft.com/pt-br/powerquery-m/type-tablekeys
Função anteriorType.TableColumnPróxima função Type.TablePartitionKey
Biblioteca