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
MaheshMk
Frequent Visitor

Show decimals as time duration

Hi, 

 

In order to map time series, I converted the source data into decimals and found it working. An issue, however, is while calculating variance. 

 

See below sample data - if the action time is beyond today, have added 24 hours to calculate variance and it throws up data in non-time format. Expected result in this sample data is -2.51

 

Any help in getting this time format please? 

 

Action Time1.06amNext Day
Limit22.15pmToday
Variance-2.91  

 

Thanks. 

6 REPLIES 6
v-xicai
Community Support
Community Support

Hi @MaheshMk ,

 

What does your original data table' structure look like? It may have no the words "Next Day" or "Today" in your table, right?

 

23.png

 

 

 

Best Regards,

Amy

@v-xicai  it was mentioned only for reference. Next Day / Today is not  part of structure!

Hi @MaheshMk ,

 

Could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.

 

Best Regards,

Amy

Hi @v-xicai , see attached the data in Excel with comments for the columsn. TimeSeries.xlsx

 

Variance is the column that needs help on. 

PBI TimeSeries Issue.png

 

 

 

@v-xicai  ANY LUCK?

After lots of research, trial & error and thanks to 

@Greg_Deckler , @konstantinos , @Zubair_Muhammad 

have reached a state to get the duration difference in time format. 

 

However, the challenges is difference calculated at Hours/Minute/Second separately and hence giving wrong results. 


Can someone help me please? 

 

 

PBI TimeSeries Issue partially resolved.png

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.