in power bi I have following table, I want to calculate the total keywords from the table below. Ids are replicating because they are coming from some other Stored Procedure. I want sum to be like this 12+13+14.
Id Keywords
A 12
B 13
B 13
B 13
B 13
C 14
C 14
B 13
A 12
C 14
C 14
C 14
C 14
A 12
A 12
B 13
A 12
B 13
A 12
B 13
I tried X = SUMX(FILTER(Query1,DISTINCT(Query1[Id])),[Keywords]) and
X = CALCULATE(SUM(Query1[Keywords]), FILTER(Query1, DISTINCT(Query1[Id])))
But nothing is coming.
How this can be done?
