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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
bevicor
Regular Visitor

Measure that calculates the maximum hourly sum for each day

I have a Power BI report with an area chart that compares hourly forecast data vs actual data. This data is the summation of multiple categories that can be filtered by a slicer. I have been asked to set a flag on the maximum hourly forecast value for each day in the chart, but the hour changes depending on which subset of categories have been selected. I think I need a measure that returns the same maximum hourly value for each hour in the day, but I can't figure it out. I tried 

 

MaxDailyForecastMeasure = 
         MAXX(SUMMARIZE(dr_load_history_postfactor,dr_load_history_postfactor[Timestamp],"MaxDay",SUM(dr_load_history_postfactor[FcstLoad])),[MaxDay])

 

But that just returned the hourly sum on the chart. See the pic below - the yellow just follows the blue, but I want it to pick the peak blue value each day. Any thoughts would be greatly appreciated.

bevicor_0-1717182625167.png

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Share data in a format that can be pasted in an MS Excel file.  Show the expected result in a simple Table format.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the reply Ashish. I'm new to this community, how do I add an Excel file here? I'll include sample data once I figure that out, but I can't provide the desired output, because it's variable. I want the max daily amount for any subset of my "Rate" categories based on whichever rate(s) the user picks to see in a chart on the report. But the chart is hourly, so every measure I've tried just returns the hourly value instead of the max daily value for every hour of that day.

If ou cannot share the sample result in a table, then i will not be able to help you.  Someone who understands your question will surely help you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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