Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

SUM DISTINCTCOUNT Does not work properly

I friends,  I would like to see the trend of sales through customers, so, I made a DAX expression where I have a distinct count of the product, but, when the table automatically sum the distinct count, the numbers aren't correctly

 

Here the DAX:

Sum of Unique = 

SUMX(VALUES(Consulta1[Producto]), CALCULATE(DISTINCTCOUNT(Consulta1[Cantidad]) )



)

But where I checked the total sum, it isn't the correct number

 

This calculation is based through weeknds

 

So, what can I do for fix this situation?

 

 

thanks mates

2 Replies