Forum Discussion
AndresEsteban
4 years agoHelper I
Distinct count filtering by other column
Hello community I would need your help. I have a table with the following records: -Device: are different types of devices and sensors. -Type of service: different types of services. Each devic...
- 4 years ago
AndresEsteban my bad please create a measure as below:-
Measure = SUMX ( SUMMARIZE ( 'Table', 'Table'[Type of service], "sum", DISTINCTCOUNT ( 'Table'[Location] ) ), [sum] )
Samarth_18
4 years agoCommunity Champion
Hi AndresEsteban ,
You can directly add "Type of service" column and "location" column with summerized as distinct count on the table visual.
output:-
Refer the attached file.
BR,
Samarth
- AndresEsteban4 years agoHelper I
Perfect, it works!!
And another question, how could I calculate the total number of deployed services, in this case 7?
Thank you
- Samarth_184 years agoCommunity Champion
AndresEsteban Add Type of service column again with summerized as count. Refer the attached file.
- AndresEsteban4 years agoHelper I
but the result should be 7 not 13. It would have to be done through a DAX measure.