Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
reynold522
Helper II
Helper II

countrow of count value

We have 10 IoT devices which upload voltage to the cloud continously.

we create a measure to count the voltage if voltage <13 V

if we put this measure (not a column in table) and IoT Number in visulization table in power BI

 

the value will be summarized in table visulization like following:

IoT IDCount (Voltage <13V)
1150
2130
3108
495
592
622
732
856
975
1032

 

Now I would like to 

1. count IoT devices which has measure: "count (Voltage<13V)" higher than 100, in this case will be 3

2. output maximum value of measure: "count (Voltage<13V)" among all IoT devices,in this case will be 150

 

Thanks in advance

1 ACCEPTED SOLUTION

@reynold522 
Exactly. Just use the measure in the code 

=
SUMX ( VALUES ( 'Table'[Lot Id] ), IF ( [Voltage <13V] > 100, 1 ) )
=
MAXX ( VALUES ( 'Table'[Lot Id] ), [Voltage <13V] )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @reynold522 
Please use

=
SUMX ( VALUES ( 'Table'[Lot Id] ), IF ( [Count (Voltage <13V)] > 100, 1 ) )
=
MAXX ( VALUES ( 'Table'[Lot Id] ), [Count (Voltage <13V)] )

Hi Tamerj1

 

thanks

 

it is not working as  count (Voltage<13V) is not a exist column, it is a result of following measure

Voltage<13V =
Calculate(
COUNT(table1[VOLTAGE]), table,[VOLTAGE]<=11.8))
 
how Can I integrate this measure into your formula. 
 
Thanks in advance

@reynold522 
Exactly. Just use the measure in the code 

=
SUMX ( VALUES ( 'Table'[Lot Id] ), IF ( [Voltage <13V] > 100, 1 ) )
=
MAXX ( VALUES ( 'Table'[Lot Id] ), [Voltage <13V] )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.