cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nate Frequent Visitor
Frequent Visitor

Automatic type covert problem about 'YYYY-MM-DD' to 'YYYY-MM-DD HH:MM:SS' in Oracle DB

Hi, I got a probelm when i import Oracle DB to Power BI Desktop (with Direct query).

 

when i check in Oracle DB, It show me 'YYYY-MM-DD' in date type.

 

but when i import in Power BI, it change automatically 'YYYY-MM-DD HH:MM:SS'.

 

if i change type manually, i can not use direct query mode anymore.(must disable when i change anything manually).

 

anyone who has the same problem like me, please reply or advice plz...

이미지 044.jpg

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
prateekraina New Contributor
New Contributor

Re: Automatic type covert problem about 'YYYY-MM-DD' to 'YYYY-MM-DD HH:MM:SS' in Oracle DB

Hi @Nate,

 

Try this:

 

1. Get your data as is from Oracle DB.

2. Close the query editor

3. Click on the column in field list and then go to Modelling tab.

4. Change the type to date.

 

It might work.

 

Prateek Raina

View solution in original post

2 REPLIES 2
prateekraina New Contributor
New Contributor

Re: Automatic type covert problem about 'YYYY-MM-DD' to 'YYYY-MM-DD HH:MM:SS' in Oracle DB

Hi @Nate,

 

Try this:

 

1. Get your data as is from Oracle DB.

2. Close the query editor

3. Click on the column in field list and then go to Modelling tab.

4. Change the type to date.

 

It might work.

 

Prateek Raina

View solution in original post

fmx Regular Visitor
Regular Visitor

Re: Automatic type covert problem about 'YYYY-MM-DD' to 'YYYY-MM-DD HH:MM:SS' in Oracle DB

I don't have a readily available Oracle data source to check this out but can you confirm any of the following;

 

1. Are querying just the column or are you doing data transformation like to_date(...,''YYYY-MM-DD'')?

2. Can you change the data type to_char on the date part of the query itself?

3. Once changed, does PBI still transform it into a date/time data type?

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors