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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Pls help in calculate distance timestamp and value

I have a transaction table, and have to calculate distances to ID-s in time intervall e.g. hours into a new column like the unnamed one in this sample.


The problem is, that the first fact data can be 0, so first have to fill up the value by the last before maximum value of fact. If not avaible value have to find the last near equal value into fact.

 

So first have to fill up the fact by coulmn value whit a logic, and after that have to calculate the diference between fact values (grouped by ID and hour.)

Pls if u can help me

 

IDTimeFact 
79972019-01-03 10:13:00.000159269,000,00
79972019-01-03 10:13:00.000159269,000,00
79972019-01-03 10:13:00.000159269,000,00
79972019-01-03 10:13:00.0000,000,00
79972019-01-03 10:17:00.000159269,000,00
79972019-01-03 10:57:00.000159285,1816,18
79972019-01-03 10:57:00.000159285,180,00
79972019-01-03 11:06:00.000159286,431,25
80012019-01-23 12:01:00.000159986,680,00
80012019-01-23 12:01:00.000159986,680,00
80012019-01-23 12:54:00.000160008,0421,36
80012019-01-23 13:05:00.000160008,040,00
12142019-01-23 13:05:00.0000,000,00
12142019-01-23 13:42:00.000160013,290,00
12142019-01-23 13:44:00.000160013,290,00
12142019-01-24 09:37:00.000160024,8211,53
33332019-01-24 09:39:00.000160024,950,00
33332019-01-24 09:39:00.0000,000,00
33332019-01-24 11:36:00.000160036,1611,21
33332019-01-24 15:24:00.000160081,5845,42

 

(distinctcount ID more than 10000, the whole data more than 1m rows)

0 REPLIES 0

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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