Forum Discussion
Need help modifying dax formula for cumulative sumx
- 7 years ago
Gwhiz ,
In general, you may create an index column and create a calculate column using DAX like pattern below:
Business cumulative =
SUMX (
FILTER (
ALLSELECTED ( Opportunity[CreatedDate].[date] ),
Opportunity[CreatedDate].[date] >= MAX ( Opportunity[CreatedDate].[date] )
&& MONTH ( Opportunity[CreatedDate].[date] )
= MONTH ( MAX ( Opportunity[CreatedDate].[date] ) )
&& Opportunity[Index] <= EARLIER ( Opportunity[Index] )
),
[business days]
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yuta-msft Any other way than creating an index column?? I don't think that would be the best way to go about it, if you see my last formula it is exactly what I want but I need it changed from descending to ascending.
- Ashish_Mathur7 years ago
Super User
Hi,
Share the link from where i can download your PBI file.
- Gwhiz7 years ago
Helper I
Ashish_Mathur Here is a replica of the file: https://www.dropbox.com/s/ay6uqsw4e1ocdpe/cumulative%20business%20days.pbix?dl=0
Some of the dates got cut off so i would only look at the year 2015. Seems like the reverse formula only works for some months which baffles me.
- Ashish_Mathur7 years ago
Super User