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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vitexo87
Post Prodigy
Post Prodigy

Concatenate Alphabetically

I have two fields of type date and I need to concatenate them, but when I do this they stop being of type date and they happen to be type text, and when I try to convert through power bi is occurring error informing that it is not possible to convert, I tried Convert through the measure but without success, how can I solve this?

 

Column = IndicatorValue [StartDateTime] & "-" & IndicatorValue [EndDateTime]

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

@vitexo87,

This is expected behavior.  After you concatenate two date type fields, the values in the new column are like “2/3/2017-5/1/2017”, which are not valid Date format. Thus you are not able to convert the column form Text type to Date type.

 

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

Any suggestions for turning this column into date?

@vitexo87,

It is not possible to convert value such as "2/3/2017-5/6/2017" from text type to Date type as the value is not a valid date value.

Why do you need to concatenate two Date type columns and convert the new column to Date type?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-yuezhe-msft

I need because when I play a field of the date type on the filter object the filter does not work as expected 

Hi @vitexo87

Can you add details about your problem with date filter? What tyope of date filter you used? What behavior you've expected and what went wrong?

Maxim Zelensky
excel-inside.pro

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.