Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Trying to get average Revenue by hour measure

Hi, 
 
I'm trying to get the average rev by hour, I have a calculated column that extracts the HOUR from my date/time column. I then want the average revenue that is produced in each hour. 
 
I have the following DAX that I thought would give me this value, but when put into my visual it gives me the total value. 
 
Average Revenue by Hour = AVERAGEX( VALUES('Transactions'[Purchase Hour]), [Revenue] )
 
 
Any help greatly appreciated!
2 REPLIES 2
Kishore_KVN
Solution Sage
Solution Sage

Hello @Anonymous ,

 

Please use ALLEXCEPT function to calculate for specific hours. So your measure should be :
Average Revenue by Hour = Calculate(AVERAGEXVALUES('Transactions'[Purchase Hour]), [Revenue] ),
ALLEXCEPT('Table Name','Table Name'[Hour_Column])
This will give you average by hours. 

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

Anonymous
Not applicable

This is still giving me the total revenue for each of the hours and not the average rev. 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.