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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Mabel_dlp_999
Regular Visitor

Time Value Clean-up?

I'm looking for the best way to clean my time data into one column. For this example, I have two columns.

Coulmn 1 is an integer between 1 and 24
Coulmn 2 is a text string that equals either Hours, Days, or Weeks

Example 1: In row 1, Col1 = 3 & Col 2 = Hours--> This would be 3 Hours
Example 2: In row 2, Col1 = 2 & Col2 = Days --> This would be 2 Days
Example 3: In row 3, Col1 = 4 & Col2 = Weeks --> This would be 4 Weeks

I know I could just merge the two together columns, but I'm concered doing so may not work with measures I create off this data. Any suggestions?

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Mabel_dlp_999 I would pick a time granularity and just convert everything into hours, minutes, or seconds for example.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Mabel_dlp_999
Regular Visitor

@Greg_Deckler Thanks so much for the speedy answer! You're the bomb, I was able to create a new column to show everything in terms of hours. 

Thanks again!

Greg_Deckler
Super User
Super User

@Mabel_dlp_999 I would pick a time granularity and just convert everything into hours, minutes, or seconds for example.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors