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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
emionline
Frequent Visitor

Count repeated ids

Hello,

I wonder how I could get a measure that counts the number of IDs that are repeated more than 3 times.

 

For example, I have a table like this:

 

ID, Value, X

A, 20, 200

B, 10,500

A, 10, 300

A, 40, 50

B, 10, 30

A, 60, 80

 

In this example, the result should be 1

How could this be possible?

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@emionline ,

Check if it is working or not,

Count of  More than 3 ID = 
VAR _temptable = SUMMARIZE(
    'Table (4)','Table (4)'[ID],"@Count",COUNT('Table (4)'[ID]))
VAR _result = COUNTX(
    FILTER(_temptable,[@Count]>3),[ID])
RETURN _result

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@emionline ,

Check if it is working or not,

Count of  More than 3 ID = 
VAR _temptable = SUMMARIZE(
    'Table (4)','Table (4)'[ID],"@Count",COUNT('Table (4)'[ID]))
VAR _result = COUNTX(
    FILTER(_temptable,[@Count]>3),[ID])
RETURN _result

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


yes, perfect, thanks

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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