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
harryli
Helper II
Helper II

Get the certain index value

harryli_0-1663130175246.png

Dear all,

as you may see in the above picture of column[current - consult].

I would like to make a column the value will be like the following:

New current - consult

22

32

null

15

39

Thanks

1 ACCEPTED SOLUTION
harryli
Helper II
Helper II

I make the new column be like:

((Time.Hour(DateTime.LocalNow()) - Time.Hour([CONSULT_TIME]))*60)
+((Time.Minute(DateTime.LocalNow()) - Time.Minute([CONSULT_TIME])))

to solve my problem, thanks all.

View solution in original post

3 REPLIES 3
harryli
Helper II
Helper II

I make the new column be like:

((Time.Hour(DateTime.LocalNow()) - Time.Hour([CONSULT_TIME]))*60)
+((Time.Minute(DateTime.LocalNow()) - Time.Minute([CONSULT_TIME])))

to solve my problem, thanks all.

Vijay_A_Verma
Super User
Super User

Use this in a custom column

= DateTime.ToText(DateTime.From(Text.Middle([#"current - consult"],2)),"mm")

this method only available to "Import" mode

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.

Top Solution Authors