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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
whitehatone
New Member

strange date format in table

Hi!
I got a column in format 2018-09-30 00:00:00.000000 +02:00     

But how do I format a new column as yyyymmdd from that data?  

I tried to split into three new column and merge but I get a -"This query contains transformations that can't be used for DirectQuery."

Error when I apply changes?  

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @whitehatone,

According to your snapshot, you are faced with date timezone values but they seem not correctly recognized and converted to DateTime values. (You can use this type of value in query edit but the power bi data mode table does not support these types of values)

In addition, it seems like you are working with 'direct query' mode. currently, this mode has been limiting most of the Dax functions used in the calculated column or table.

Perhaps you can change to import mode to enable these edit features or try to use t-sql query to do split and transform operation if the data connector support advanced SQL statements.

Power Query SQL Server connector - Power Query | Microsoft Docs
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @whitehatone,

According to your snapshot, you are faced with date timezone values but they seem not correctly recognized and converted to DateTime values. (You can use this type of value in query edit but the power bi data mode table does not support these types of values)

In addition, it seems like you are working with 'direct query' mode. currently, this mode has been limiting most of the Dax functions used in the calculated column or table.

Perhaps you can change to import mode to enable these edit features or try to use t-sql query to do split and transform operation if the data connector support advanced SQL statements.

Power Query SQL Server connector - Power Query | Microsoft Docs
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@whitehatone , You can not do that in a direct query. What you can do, in Report view, you can click on the column and you will see column tools. In column tools, you can choose a format and try

 

Data Format New Rib.png

 

Hi!

I cannot find a way to change format?  

Only in drop down is Text?  

 

 

whitehatone_1-1640776942166.png

 

 

@whitehatone , Your date has been detected as text. First try to change Data Type to Date, if that works out, then open format and check

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.