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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ibrahim_shaik
Helper IV
Helper IV

How to Create a Calculated Hour Index Column

Hello Power BI Community,

 

I have 5 minute interval timestamp in an hour I want to create a column that gives me Hour Index value as 11111111 for all the 5 minute timestamps in a hour and the 2 hour it should give 22222222222.... it should start not start from 1 for the next date it should increment sequentially as the data keeps adding up.

 

HourIndex Column.png

 Please give a solution.

2 REPLIES 2
v-yanimei-msft
Community Support
Community Support

Hi all , 

@HotChilli , your ideas are very great. I tested the specific steps.

@Ibrahim_shaik , thank you for giving a specific description of the problem. Based on the ideas of @HotChilli, I will show you the specific steps.

1.The test table Table.

vyanimeimsft_0-1711516618317.png

2.Right-click Table, select New column and input:

 

Hour Index Column = HOUR('Table'[time])+1

 

 

vyanimeimsft_1-1711516656473.png

3.The outcome is in the following picture.

vyanimeimsft_2-1711516671386.png

 

 

Best Regards,

Caroline Mei

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HotChilli
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.