I have a table on power bi which have counter column:
Over this column I have to make some sums, which I'm trying as follow:
sum(my_table[contador])
But I get an error that sum operator does not allow string values. Hence I tried to cast it this way:
sum(INT(my_table[contador]))
But now I get an error that SUM only acepts columns as arguments. How can I cast each value keeping the column?
EDIT:
I have also tried to use the query editor, but it seems this solution is not compatible with DirectQuery Mode