Forum Discussion
Cumulative Sum less then Current Date
- 3 years ago
Hi Suhel_Ansari
Create a measure:
Measure = IF ( MAX('Table'[Contract end date]) <= TODAY (), CALCULATE ( SUM ( 'Table'[ST_Day_Duration] ), FILTER ( ALL ( 'Table' ), 'Table'[Contract end date] <= TODAY () && 'Table'[Country] = SELECTEDVALUE( 'Table'[Country] ) ) ) )Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Suhel_Ansari ,
In order to better understanding your demands and give the right solution, could you please tell me what's your expected output?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Suhel_Ansari3 years ago
Helper V
Hi v-yadongf-msft ,
I want the Cumulative Sum for all the row for the "ST_Day_Duration" for a given Country provided the Contract End Date is less then Today() Date. Exmaple for the country INDIA i want to sum the (16.9389+7.0278+20.916) = 44.8827 Rows, Except the first Row whos Contract End Date is "5/18/2026".Regards
Suhel