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
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

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.

Top Kudoed Authors