Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi there,
I'm new to the PowerBi.
I have a device usage table (TableA) with all the devices and monthly usage data.
How can I calculate the number of devices (count) that were no use?
e.g 2020-01 only, there were two devices (B and C) has no hour use.
if both 2020-01 and 2020-02 are selected, then only one device (B) has no hour use.
Device | Month | Use Hours |
A | 2020-01 | 1 |
A | 2020-02 | 2 |
B | 2020-01 | 0 |
B | 2020-02 | 0 |
C | 2020-01 | 0 |
C | 2020-02 | 1 |
D | 2020-01 | 1 |
D | 2020-02 | 0 |
I was trying to use Calculate, but PowerBI doesn't allow the caculate function with a measure in the filter section?
measure_total_use = sum(TableA[Use Hours])
measure_zero_Use_Count = Caculate(distinctcount(TableA[Device], [measure_total_use]=0))
How to the get the count of no-use device from the table A above?
I appreciate any help!
Elac
Solved! Go to Solution.
you can try this
Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[device]),FILTER(VALUES('Table'[device]) ,[Measure]=0))
Proud to be a Super User!
wow! That works. The values function is wonderful here!
Thank you so much!
you are welcome
Proud to be a Super User!
you can try this
Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[device]),FILTER(VALUES('Table'[device]) ,[Measure]=0))
Proud to be a Super User!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 27 | |
| 25 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 54 | |
| 46 | |
| 38 | |
| 30 | |
| 21 |