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. Value.ReplaceType

Value.ReplaceType

MValor

Substitui o tipo de value pelo type informado.

Sintaxe

M
Value.ReplaceType(value as any, type as type) as any

Parâmetros

valueanyObrigatório

Valor cujo tipo será substituído.

M
[Column1 = 123]
typetypeObrigatório

Novo tipo atribuído ao valor.

M
type [Column1 = number]

Retorna

any

Exemplo

M
Type.RecordFields(
    Value.Type(
        Value.ReplaceType(
            [Column1 = 123],
            type [Column1 = number]
        )
    )
)[Column1][Type]

Resultado

M
type number

Mais informações

Subgrupo
Value
Referência
https://learn.microsoft.com/pt-br/powerquery-m/value-replacetype
Função anteriorValue.ReplaceMetadataPróxima função Value.Subtract
Biblioteca