Forum Discussion
Simao_Coimbra
6 years agoFrequent Visitor
Simple Cumulative Total with a measure
Hello everyone, I need some help that I think will be quite simple, but I'm not getting it. I have a measure called "HF_Mes", that returns the average chilling hours per month. HF_Mes ...
- 6 years ago
Hi Simao_Coimbra ,
Please refer to my sample.
I have a table like this.
Then I created a calculated column.
// It's best to use [MonthNo], because [Month] is text type data, we can't sort it. Month = [Date].[MonthNo]Then I created a meaure.
Cum = CALCULATE( [HF_Mes], FILTER( ALLSELECTED(Sheet1), Sheet1[Month] <= MAX(Sheet1[Month]) ) )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lionel-msft
Community Support
6 years agoHi Simao_Coimbra ,
Please refer to my sample.
I have a table like this.
Then I created a calculated column.
// It's best to use [MonthNo], because [Month] is text type data, we can't sort it.
Month = [Date].[MonthNo]
Then I created a meaure.
Cum =
CALCULATE(
[HF_Mes],
FILTER(
ALLSELECTED(Sheet1),
Sheet1[Month] <= MAX(Sheet1[Month])
)
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Simao_Coimbra6 years agoFrequent Visitor
Thank you v-lionel-msft a lot. It worked perfectly!