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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
insandur
Helper I
Helper I

Dynamic Indexing on Current day receiving time

Hi Experts😀,

 

I want to have a dyanamic index column based on recieving time of current day.

 

Eg. Every day i recieve 'Receieved Time' column and keeps changing everyday it might start from 5AM and next day it can be from 7 AM. Howverver i want to get index as 1 for starting hour like 5AM and 2 for next hour 6AM and so on.

 

Below are the reference table.

Received TimeRequired Index Next day it might beRequired Index
5/14/2024 5:001 5/15/2024 7:001
5/14/2024 6:002 5/15/2024 8:002
5/14/2024 7:003 5/15/2024 9:003
5/14/2024 8:004 5/15/2024 10:004
5/14/2024 9:005 5/15/2024 11:005
5/14/2024 10:006 5/15/2024 12:006
5/14/2024 11:007 5/15/2024  13:00:00 PM7
1 ACCEPTED SOLUTION
v-jingzhan-msft
Community Support
Community Support

Hi @insandur 

 

If you only have one day's data in this table every day, you can change the "Received Time" column to Datetime type, sort table by "Received Time" column ascendingly, then add an Index column starting from 1. 

vjingzhanmsft_0-1715822635435.pngvjingzhanmsft_1-1715822676130.png

vjingzhanmsft_2-1715822779697.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
v-jingzhan-msft
Community Support
Community Support

Hi @insandur 

 

If you only have one day's data in this table every day, you can change the "Received Time" column to Datetime type, sort table by "Received Time" column ascendingly, then add an Index column starting from 1. 

vjingzhanmsft_0-1715822635435.pngvjingzhanmsft_1-1715822676130.png

vjingzhanmsft_2-1715822779697.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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