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
Anonymous
Not applicable

Summarizing Daily Data to a Monthly Table of Ratios

Hi all,  Thank you for taking the time to look at this. 

 

I have daily water production data that I am trying to summarize as the monthly  average  of the average day in each month divided by the maximum day in the year.

 

I used the following measures to create a summary table by month and year

Average Day = AVERAGE(daily_usage[Usage])
Max Day = max(daily_usage[Usage])
Max Day Year = CALCULATE([Max Day],ALLEXCEPT('Calendar','Calendar'[Year]))
ADM/MDY = DIVIDE([Average Day],[Max Day Year])
 
Which gives me the correct table:
 
YearMonthAverage DayMax DayAvg Day/Max Day
2018January2164440.49
2018February2244440.5
2018March2454440.55
2018April2924440.66
2018May3434440.77
2018June3974440.89
2018July4074440.92
2018August4154440.93
2018September3774440.85
2018October3134440.7
2018November2594440.58
2018December2204440.5
2019January2094380.48
2019February2004380.46
2019March2314380.53
2019April2804380.64
2019May3104380.71
2019June3664380.84
2019July4054380.92
2019August4074380.93
2019September3634380.83
2019October3074380.7
2019November2404380.55
2019December2044380.47
 
 
 But when I try to summarize it to the month I always end up with the average use over all periods in that month divided by the max day of all periods.  What I need to get to is just andaverage of the last column:
MonthAvg Day/Max Day
January0.485
February0.48
March0.54
April0.65
May0.74
June0.865
July0.92
August0.93
September0.84
October0.7
November0.565
December0.485
 
 
Thanks in advance for any help.
 
Chris
5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

Any updates?

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Anonymous ,

 

Could you tell me if my post helps you? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

I am sorry but once I had a solution I moved on.  I am trying to get some time to try your solution.

Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry I could not clarify your scenario without data sample, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

In case you may try:

=AVERAGEX(FILTER(ALL('TABLE'),[MONTH]=MAX('TABLE'[MONTH])),[Avg Day/Maz Day])

 

Best Regards,
Eyelyn Qin

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

Anonymous
Not applicable

So I have a solution but seems like a terribly inefficient way to accomplish it.  I used summarize to create a table of annual max days.  Then I created a column in my original table and used lookup to link the max day in each year to the daily data.  Finally I created measures and used averagex to calculate the tables.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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