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

Duration is reflecting in Time Format AM/PM

Hi,

 

I have a Data on Google sheet which is in Duration Format and when I link this sheet with Power Bi Data Source it is reflecting in Time Format AM/PM

 

I would really appreciate if anyone can please me show the same duration as it is in my data sheet.

 

PFB Screenshot for your refrenec.

 

Shayz2402_0-1658640161458.png

Shayz2402_1-1658640382371.png

 

Thanks.

 

2 ACCEPTED SOLUTIONS
SpartaBI
Community Champion
Community Champion

@Shayz2402 you can PM me and we could do a quick zoom to look together if you want. Hard to see from the sceenshots

View solution in original post

@ this is the code:

 

Five 9 Total = 
VAR _value = SUM(Sheet7[Five 9 Login TIme])
VAR _hours = DATEDIFF(DATE(1899,12,30),_value,DAY) * 24 + HOUR(_value)
VAR _minutes = MINUTE(_value)
VAR _seconds = SECOND(_value)
RETURN
    _hours & ":" & _minutes & ":" & _seconds

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

6 REPLIES 6
Shayz2402
Frequent Visitor

Request everyone to please Help me.

@ this is the code:

 

Five 9 Total = 
VAR _value = SUM(Sheet7[Five 9 Login TIme])
VAR _hours = DATEDIFF(DATE(1899,12,30),_value,DAY) * 24 + HOUR(_value)
VAR _minutes = MINUTE(_value)
VAR _seconds = SECOND(_value)
RETURN
    _hours & ":" & _minutes & ":" & _seconds

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Thanks a lots @SpartaBI You are an very knowlagable and amazing Person. You safe my day and also it means a lot to me.

Thanks a Lot and Much appreciated your help and support.
Looking forward to work with you.

@Shayz2402 MY PLEASURE!! 🙂

SpartaBI
Community Champion
Community Champion

@Shayz2402 you can PM me and we could do a quick zoom to look together if you want. Hard to see from the sceenshots

Hi @SpartaBI Thanks for your reply. Can you please confirm your availablity for today to connect on Zoom.

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.