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.
Solved! Go to Solution.
try like
count of deepdischarge =
VAR _value= SUMX ( VALUES ( 'Table'[IoT device ID] ), IF ( [Deep Discharge hour]> 1, 1 ) )
RETURN
IF( _value=BLANK(), 0, _value )
Hi @reynold522
you can use
count of deepdischarge = SUMX ( VALUES ( 'Table'[IoT device ID] ), IF ( [Deep Discharge hour]> 1, 1, 0 ) )
try like
count of deepdischarge =
VAR _value= SUMX ( VALUES ( 'Table'[IoT device ID] ), IF ( [Deep Discharge hour]> 1, 1 ) )
RETURN
IF( _value=BLANK(), 0, _value )
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |