Forum Discussion
mcornfield
Helper III
4 years agoDAX Calculate SUM Help
I am Trying to Get a SUM of a COunt of Customer Names. They are not summing.
Hi mcornfield ,
Try the following code:
Count = COUNTROWS ( FILTER(SUMMARIZE(Table,Table[CustomerName], "Customer Total", [Customer Tolal]),[Customer Total] > 0 ))
2 Replies
- MFelix
Super User
Hi mcornfield ,
Try the following code:
Count = COUNTROWS ( FILTER(SUMMARIZE(Table,Table[CustomerName], "Customer Total", [Customer Tolal]),[Customer Total] > 0 )) - AlexisOlson
Super User
You can iterate over each of the customers like this:
SUMX ( VALUES ( Table[CustomerName] ), IF ( [Customer Total] > 0, 1, 0 ) )