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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Assign date and time to values in columns

Hello everyone, 

 

I've been working with power BI around 4 months, and now I'm starting to get more complicated tasks in my work. I have a large dataset with a date column and several values columns (see annex): 

 

HELP.PNG

 

Each "DXX" column represents a time of date in which a value was measured (for example, column D00 means the value was measured at 00:00 from the day of DATE colum (DATE_VAL); column D01 means the value was measured at 00:30... and so each half an hour). 

 

My question is: it is possible to arrange the existing DXX values by time in the date column? I guess some rows with the hour corresponding to each value must be added to the date column. 

 

What I have: 

 

DATED00D01D02D03
01/01/202032252421

 

What I would like: 

 

DATEVALUE
01/01/2020 00:3032
01/01/2020 01:0025
01/01/2020 01:3024
01/01/2020 02:0021

 

Thank you so much in advance for your answers, 

 

Cheers!! 

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

Hi,

 

Please try to unpivot All 'Dxx' columns:

140.PNG

Then split the [Attribute] column:

141.PNG

After Apply&Close, please try to create a calculated column:

Column = FORMAT('Table'[Date]+TIME(0,'Table'[Attribute.2]*30,0),"YYYY-MM-DD HH:MM:SS")

The result shows:

142.PNG

Here is my test pbix file:

pbix 

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try to unpivot All 'Dxx' columns:

140.PNG

Then split the [Attribute] column:

141.PNG

After Apply&Close, please try to create a calculated column:

Column = FORMAT('Table'[Date]+TIME(0,'Table'[Attribute.2]*30,0),"YYYY-MM-DD HH:MM:SS")

The result shows:

142.PNG

Here is my test pbix file:

pbix 

Hope this helps.

 

Best Regards,

Giotto Zhi

Anonymous
Not applicable

I'ts perfect! Thank you so much for your help!! 

Gordonlilj
Solution Sage
Solution Sage

Hi,

 

Using the power query editor you could unpivot the DXX columns in order to achieve something like what you're after

ca.PNG

 

ca2.PNG

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.