Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I would like to calculate the accumulated rainfall of several farms, but for that, I need to calculate the daily average and at the end add these averages. How to do this?
Solved! Go to Solution.
@gelsonwj Try:
Measure =
VAR __Table = GROUPBY('Table',[Date],"__Average",AVERAGEX(CURRENTGROUP(),[Value]))
VAR __Result = SUMX(__Table,[__Average])
RETURN
__Result
Hi, @gelsonwj
Date = LEFT([Start],9)
Then change the data format of this column to Date.
Column:
Average = CALCULATE(AVERAGE('Table'[Value]),ALLEXCEPT('Table','Table'[Date]))
Measure =
Var _table=SUMMARIZE('Table','Table'[Date],'Table'[Average])
Return
SUMX(_table,[Average])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @gelsonwj
Date = LEFT([Start],9)
Then change the data format of this column to Date.
Column:
Average = CALCULATE(AVERAGE('Table'[Value]),ALLEXCEPT('Table','Table'[Date]))
Measure =
Var _table=SUMMARIZE('Table','Table'[Date],'Table'[Average])
Return
SUMX(_table,[Average])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@gelsonwj Try:
Measure =
VAR __Table = GROUPBY('Table',[Date],"__Average",AVERAGEX(CURRENTGROUP(),[Value]))
VAR __Result = SUMX(__Table,[__Average])
RETURN
__Result
I want to calculate the accumulated each month, something like what's in the picture. How could I do that?
This looks like it's missing the column to group on.
You're right @AlexisOlson I edited it.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
22 | |
21 | |
19 | |
13 | |
12 |
User | Count |
---|---|
41 | |
31 | |
23 | |
22 | |
22 |