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