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
Tokotor
New Member

Two identical datetime columns. Different appearance in Power BI with a live connection to SSAS

Hello,

 

I have a problem with datetime formats in Power BI Desktop.

I have a live connection with SSAS database and have one table with two columns that are both a datetime format.

 

The strange thing is that Power BI only shows the date by one and the date + time on the other.

I can't change the format because of the live connection but that shouldn't be necessary because there both in the datetime format.

 

Both columns are formatted as dd-mm-yyyy hh:mm:sss

 

Power BI changes that for one column to dd-mm-yyyy and the other one to dd-mm-yyyy hh:mm

Both of them should be dd-mm-yyyy hh:mm

 

Is this a known problem or how can I fix this?

 

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

Are you sure that both date Format defined in SSAS are same ?

Try explore these dates in excel and see what results you are getting.

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
FarhanAhmed
Community Champion
Community Champion

Are you sure that both date Format defined in SSAS are same ?

Try explore these dates in excel and see what results you are getting.

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




I found the problem. In SSAS in Visual Studio it changes the data format from general to custom. I don't know why. 

 

Tokotor_0-1595421391614.png

 

In SSIS in Visual studio the format is the same for all the date colomns.

 

2020-07-22 14_38_28-BI Meta Data Warehouse transaction - Microsoft Visual Studio.png

 

For some reason Visual Studio changes the data format for some colomns. Now it works so thanks. The next problem i need to find out is why Visual Studio changes the data format.

 
 
amitchandak
Super User
Super User

@Tokotor , try to check data type in power query. You can chnage format from the format ribbon.

 

Data Format New Rib.png 

@amitchandak  I can't change the format because i work with a Live Connection to a SSAS database.

 

Tokotor_0-1595420683869.png

 

Anonymous
Not applicable

Try adding a column next to it and use Dax to change the format. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.