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
Anonymous
Not applicable

In M query how to get minute part from UTC

 

Dear all,

 

Please help in getting Minute's part from UTC date. I tried for Hours it worked but not for Minute's. M Query which i used is below

 

 

ReportAlert = var _Hours = FORMAT(UTCNOW(),"HH")
var _minutes = INT(FORMAT(UTCNOW(),"MM")) 

return _Hours - Working i'm geting hour part
return _minutes - Not working it's giving month instead of minute's, here I'm expecting minute's.

 

Thanks,

Suman

 

 

1 ACCEPTED SOLUTION
gooranga1
Power Participant
Power Participant

Hi @Anonymous

 

that looks like DAX not M you are wrting with. Have you tried this

 

var _minutes = minute(UTCNOW())

View solution in original post

2 REPLIES 2
gooranga1
Power Participant
Power Participant

Hi @Anonymous

 

that looks like DAX not M you are wrting with. Have you tried this

 

var _minutes = minute(UTCNOW())
Anonymous
Not applicable

Thanks that worked Smiley Happy

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.