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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
LP2803
Responsive Resident
Responsive Resident

Countrows per multiple columns

Hi Team,

 

I need a measure or column for getting the below.

I want to count per meetingid, per participant, per Attribute,  if Value is greater than 5 and this 5 appears morethan 3 times then give 1 else 0.

 

MeetingInstanceIDParticipantsNameAttribute2Valueif >5?Latency? 
1fdLatency501<--   IF(COUNTIF(E2:E7,"1")>3,1,0)
1weLatency61  
1rrLatency91  
1eeLatency81  
1ttLatency61  
1qqLatency91  
2yyLatency201<--  IF(COUNTIF(E8:E15,"1")>3,1,0)
2reLatency91  
2grLatency10  
2rrfLatency81  
2fddLatency81  
2ffaLatency40  
2fasLatency20  
2asdLatency71  
1 ACCEPTED SOLUTION
LP2803
Responsive Resident
Responsive Resident

https://community.powerbi.com/t5/Desktop/Count-of-rows-based-on-multiple-column/m-p/1562926/thread-i...

 

the solution for this question is posted at the above link. Thanks for everyone helped.

View solution in original post

8 REPLIES 8
v-lionel-msft
Community Support
Community Support

Hi @LP2803 ,

 

Thank you for your solution!

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

LP2803
Responsive Resident
Responsive Resident

https://community.powerbi.com/t5/Desktop/Count-of-rows-based-on-multiple-column/m-p/1562926/thread-i...

 

the solution for this question is posted at the above link. Thanks for everyone helped.

v-lionel-msft
Community Support
Community Support

Hi @LP2803 ,

 

Or create a measure like this.

Measure = 
VAR __sum = 
SUMX(
    FILTER(
        ALLSELECTED(Sheet1),
        [MeetingInstanceID] = MAX([MeetingInstanceID]) && 
        [Attribute2] = MAX([Attribute2]) &&
        [ParticipantsName] = MAX([ParticipantsName])&&
        [if >5?] = 1
    ),
    [if >5?] 
)
RETURN
IF(
    __sum > 3,
    1, 0
)

v-lionel-msft_0-1608515047628.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-lionel-msft Hi lionel, thanks for the response.

 

I have multiple attributes, like  Latency, Packetloss, framerate etc which i need to include.

 

For example count the participant in a meeting who has got Packetloss of morethan 5 for 3 times.

Likewise count the participant in a meeting who has got Latency of morethan 400 for 3 times.

 

Any idea how I can do this in one query without create a extra columns

amitchandak
Super User
Super User

@LP2803 , Check if this can work

if(sumx(Filter(table, [MeetingInstanceID] = earlier([MeetingInstanceID]) && [ParticipantsName] = earlier([ParticipantsName])),if([Value]>5,1,0))>3,1,0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak thanks. 

I tried, but i get error "Cannot find name" 

 

check = if(sumx(Filter('Sheet1 (2)', 'Sheet1 (2)'[Column1.meetingInstanceId] = earlier([Column1.meetingInstanceId]) && 'Sheet1 (2)'[Column1.participantSessionId] = earlier([Column1.participantSessionId])),if([Value]>5,1,0))>3,1,0)

 

LP2803_0-1608553765224.png

 

Any idea please...

 

amitchandak
Super User
Super User

@LP2803 , Create a new column like

if(sumx(Filter(table, [MeetingInstanceID] = earlier([MeetingInstanceID])),if([Value]>5,1,0))>3,1,0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thanks amit, But I also need to consider ParticipantID and the Attribute columns as well.

 

In the example above, i couldnt show more participantID with same meetingID and attribute but in actual data i have duplicates in meetingid, participants & attribute.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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