Forum Discussion
AnthonyXelya
5 years agoHelper II
DistinctCount with condition, 2nd version!
I also have a question with DistinctCount : I have a table with downtimes impacting several customers, I would like to have the sum of downtimes durations regardless of how many customers they impact...
- 5 years ago
AnthonyXelya , Try measure in one of the two ways
sumx(summarize(Table, Table[downtimeID], Table[downtimeDuration]),[downtimeDuration])
or
sumx(summarize(Table, Table[downtimeID], "_1", max(Table[downtimeDuration])),[_1])
- 5 years ago
Is this OK?
or
amitchandak
5 years agoSuper User
AnthonyXelya , Try measure in one of the two ways
sumx(summarize(Table, Table[downtimeID], Table[downtimeDuration]),[downtimeDuration])
or
sumx(summarize(Table, Table[downtimeID], "_1", max(Table[downtimeDuration])),[_1])