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

Average values in the same column.

Originally, I had a column with values every second.  I converted the timestamp column from HHMMSS to HHMM. Now how can I average the values that belong to the same HHMM. Can somebody please help?

 

thank you

 

Jorge

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @jopaqui , 

It seems that you want to get average of same timestamp, right? You could achieve this like below(group by on "SAMPLETIME_UTC BY MINUTES")

657.PNG658.PNG659.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Also, a sample of your data would be tremendously helpful, did you add a column in Power Query when you converted to HHMM?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Yes, I added the column on the right hand side (SAMPLETIME_UTC BY MINUTES). Is this screenshot good enough or you need the file I am working with?

 

 I will try your solution and let you know.

 

thanks a lot

 

Jorge

 

 

74-23_EngineRPM_HHMM.JPG

dax
Community Support
Community Support

Hi @jopaqui , 

It seems that you want to get average of same timestamp, right? You could achieve this like below(group by on "SAMPLETIME_UTC BY MINUTES")

657.PNG658.PNG659.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

jopaqui
Frequent Visitor

Hello Zoe,

 

 I tried the Group by and it worked.  It was very simple and effective.

 

thank you for your help.

 

Jorge 

Greg_Deckler
Super User
Super User

I was just helping someone with something similar a short while ago, see if this works: https://community.powerbi.com/t5/Quick-Measures-Gallery/Mind-the-Gap-Irregular-Time-Series/td-p/9917...

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors
Top Kudoed Authors