Forum Discussion
Dam
4 years agoNew Member
Problems with accumulative count
Hello, I've got some problem with this field (accumulative count) : Z_Cumul_Qtés = CALCULATE ( COUNT ([DOSSIER]), FILTER (ALL('DATA'[CI_MOIS]),DATA[CI_MOIS]<= MAX(DATA[CI_MOIS])...
- 4 years ago
Dam , if CI_MOIS is in YYYYMM format
Z_Cumul_Qtés =CALCULATE (COUNT ([DOSSIER]),FILTER (ALL('DATA'[CI_MOIS]),DATA[CI_MOIS]<= MAX(DATA[CI_MOIS])))orZ_Cumul_Qtés =CALCULATE (COUNT ([DOSSIER]),FILTER (ALL('DATA'[CI_MOIS]),DATA[CI_MOIS]<= MAX(DATA[CI_MOIS]) && DATA[Year]= MAX(DATA[Year])))If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
amitchandak
Super User
4 years agoDam , if CI_MOIS is in YYYYMM format
Z_Cumul_Qtés =
CALCULATE (
COUNT ([DOSSIER]),
FILTER (ALL('DATA'[CI_MOIS]),DATA[CI_MOIS]<= MAX(DATA[CI_MOIS])
)
)
or
Z_Cumul_Qtés =
CALCULATE (
COUNT ([DOSSIER]),
FILTER (ALL('DATA'[CI_MOIS]),DATA[CI_MOIS]<= MAX(DATA[CI_MOIS]) && DATA[Year]= MAX(DATA[Year])
)
)
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.