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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
lhdp
Helper I
Helper I

Cumulative Month to Date from average daily values

Hi the community,

I need a relatively simple calculation: sum (or month-to-date) of average daily rainfall values ​​from different rain gauges. The calculation must be made regardless of the rain gauges(s) chosen by a slicer. I tried summarize or groupby and reach to have the calcultation for all rain gauges but I "lost" the rain gauges and I can't filter with my slicer.

 

lhdp_1-1677769697685.png

 

Thanks for help!

Laurent

1 ACCEPTED SOLUTION
YukiK
Impactful Individual
Impactful Individual

You can use the formula like this:

Sum of Daily Rainfall Avg = 
SUMX(
    VALUES( Table[Date] ),
    CALCULATE( AVERAGE( Table[Rainfall] ) ) 
)

You iterate each date to calculate the average and you sum those calculated averages.

 

Please consider giving it a thumbs up and accept as solution if this helps!

View solution in original post

2 REPLIES 2
lhdp
Helper I
Helper I

Perfect. It's ok (and simple). Thanks to you YukiK.

YukiK
Impactful Individual
Impactful Individual

You can use the formula like this:

Sum of Daily Rainfall Avg = 
SUMX(
    VALUES( Table[Date] ),
    CALCULATE( AVERAGE( Table[Rainfall] ) ) 
)

You iterate each date to calculate the average and you sum those calculated averages.

 

Please consider giving it a thumbs up and accept as solution if this helps!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.