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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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