Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
angelorauber
New Member

Convertion Value error on Text.Combine function

Olá,

 

     Estou preparando uma consulta com parâmetro de entrada de tabela do Excel para o Power Query. Criei a coluna customizada concatenando os dados. Porém quando vou usar a função Text.Combine, acusa o erro:

------------------------------------------------------------------------------------------

Expression.Error: Não conseguimos converter o valor "f.datadm between '01..." em tipo List.
Detalhes:
Value=f.datadm between '01/01/1900 00:00:00' and '31/12/2500 23:59:59'
and f.numemp in (1,2,3)
order by 1,3,5,6
Type=[Type]

 

Criação da nova coluna concatenada:

--------------------------------------------------------------------------------

= Table.AddColumn(#"Tipo Alterado", "Custom", each "f.datadm between '"&[#"Admissão (DE)"]&"' and '"&[#"Admissão (ATÉ)"]&"'
and f.numemp in ("&[Empresa]&")
order by 1,3,5,6")

 

--------------------------------------------------------------------------------

Conteúdo da Coluna concatenada:

--------------------------------------------------------------------------------

f.datadm between '01/01/1900 00:00:00' and '31/12/2500 23:59:59'
and f.numemp in (1,2,3)
order by 1,3,5,6

 

Função utilizada:

--------------------------------------------------------------------------------

= " and "&Text.Combine(#"Personalização Adicionada"{0}[Custom])

 

Se puderem me ajudar.

 

Primeira vez que estou utilizando

 

Muito obrigado.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

and f.numemp in (" & Text.Combine([Empresa],",") & ")

 

between '01/01/1900 00:00:00' and '31/12/2500 23:59:59'

Please don't do that.  Use realistic dates, or leave them blank.  You are adding millions of rows of data to your data model for no reason.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

and f.numemp in (" & Text.Combine([Empresa],",") & ")

 

between '01/01/1900 00:00:00' and '31/12/2500 23:59:59'

Please don't do that.  Use realistic dates, or leave them blank.  You are adding millions of rows of data to your data model for no reason.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors