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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Chandana_V
Frequent Visitor

Splitting a DateTime Column into Date and Time Improve Memory Usage and Performance in Power Bi

Hi,


I'm working with large datasets in Power BI that contain a DateTime column. I’m wondering how splitting this single DateTime column into two separate columns can help reduce memory usage and improve query performance in Power BI.

Thanks

1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @Chandana_V ,
DateTime columns have high cardinality because each unique timestamp is treated as a distinct value. By splitting the column, you reduce the number of unique values in each column, which lowers cardinality and improves compression.

You can use power query to split column into Date and Time. Here is how:

  • Select the DateTime column.
  • Go to the "Add Column" tab.
  • Choose "Date" and then "Date Only" to create a new Date column.
  • Choose "Time" and then "Time Only" to create a new Time column.

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

 

Best Regards,
Shahariar Hafiz

View solution in original post

1 REPLY 1
shafiz_p
Super User
Super User

Hi @Chandana_V ,
DateTime columns have high cardinality because each unique timestamp is treated as a distinct value. By splitting the column, you reduce the number of unique values in each column, which lowers cardinality and improves compression.

You can use power query to split column into Date and Time. Here is how:

  • Select the DateTime column.
  • Go to the "Add Column" tab.
  • Choose "Date" and then "Date Only" to create a new Date column.
  • Choose "Time" and then "Time Only" to create a new Time column.

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

 

Best Regards,
Shahariar Hafiz

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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