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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors