Forum Discussion
PS_78
2 years agoHelper II
SUMX with COUNT returns incorrect value
Hello All - I have issue with a measure created to calculate count using SUMX function. My requirement is to calculate count of document #'s where type = "TP1". But the measure I created returns incorrect values. It seems to be multiplication of Count (Sum of Count where type = TP1) with total count (Count of Doc #). In additional I also need to calculate distinct count for doc #, CC and Year combination. Please help check this. I am also giving a link of PBIX file here. SUMX Count Issue.zip
Formula in the measure =
Msr_Count = SUMX(FILTER('Table', 'Table'[Type] = "TP1"), COUNT('Table'[Doc #]))
Thanks,
Phani
In additional I also need to calculate distinct count for doc #, CC and Year combination.DC = COUNTROWS(summarize('Table',[CC],[Doc #],[Year]))
3 Replies
- lbendlinSuper User
In additional I also need to calculate distinct count for doc #, CC and Year combination.DC = COUNTROWS(summarize('Table',[CC],[Doc #],[Year]))