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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
barbaraferreira
Regular Visitor

Calculate the sum of the day's sales distributed over the 24 hours of the day

I need to create a dax expression that calculates the sum of hourly sales, as I need to create a monitoring graph throughout the day. Which dax expression would help me create this calculation? I have a sales table that contains the invoice IDs, the date and time of the invoice and the total value of these invoices, I need to add the sales values ​​every 1 hour.

 

 

1 REPLY 1
Fowmy
Super User
Super User

@barbaraferreira 

Total Sales = SUM( 'TableName'[Value])


Try this meassure on a line chart where you will add the invoice date to the X Axis and this measure to the Y axis

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.