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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Query M - get date and concatane - erros

Hello comunity,

Hope that you are doing well.

I would like to get a date and concatenate with , I would like the result having text format.

I did that, however I get this error. 

= let
Source1 =Text.Combine(Date.ToText(DateTime.Date(DateTime.LocalNow()),"yyyy-MM-dd"),"T00:00:00Z")
in
Source1
meta [IsParameterQuery=true, Type="Text", IsParameterQueryRequired=true]

Nikita4More_0-1732724105806.png

I see that for using Text.Combine for In, this function receive as a List

 

I changed like that , then I cannot get a good result.

Nikita4More_1-1732724294404.png

 

 

How can I get it ?

Thanks a lot.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

When I finally had to post my problem, and I find a few minutes the result. 

Here is below. I add the " { } in the Text.combine because , it's considered as list.

 

Nikita4More_0-1732725169998.png

Thanks, It could help someone else.

View solution in original post

2 REPLIES 2
hnguy71
Super User
Super User

Hi @Anonymous 

Try this instead:

let
    Source = DateTime.LocalNow(),
    DateOnly = Date.From(Source),
    AdjDateTime = Date.ToText(DateOnly, "yyyy-MM-ddT00:00:00Z")
in
    AdjDateTime


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

When I finally had to post my problem, and I find a few minutes the result. 

Here is below. I add the " { } in the Text.combine because , it's considered as list.

 

Nikita4More_0-1732725169998.png

Thanks, It could help someone else.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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