Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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 device will belong to one of them
-Location: location where the service is deployed.
As can be seen in the attached example data, there can be more than one device of the same service in each location.
The problem I have is how to count the number of services I have in operation. For this, the logic is that even if there are different devices of the same service and therefore different rows with the same service for each location, that should only count as 1.
In the example, the expected result is as shown below:
Thank you in advance
Solved! Go to Solution.
@AndresEsteban my bad please create a measure as below:-
Measure =
SUMX (
SUMMARIZE (
'Table',
'Table'[Type of service],
"sum", DISTINCTCOUNT ( 'Table'[Location] )
),
[sum]
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
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
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Perfect, it works!!
And another question, how could I calculate the total number of deployed services, in this case 7?
Thank you
@AndresEsteban Add Type of service column again with summerized as count. Refer the attached file.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
but the result should be 7 not 13. It would have to be done through a DAX measure.
@AndresEsteban my bad please create a measure as below:-
Measure =
SUMX (
SUMMARIZE (
'Table',
'Table'[Type of service],
"sum", DISTINCTCOUNT ( 'Table'[Location] )
),
[sum]
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Thank so much, it's work perfetly!!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 37 | |
| 31 | |
| 27 |