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
Eng-mohd
Helper I
Helper I

undefined

I have number of id's and i wana count how many id call twice or more

Ex

1000 customer 

800 call mor than 1 

200 call only 1

 

I wana found number 800

 

 

The column have number 

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

Hi, @Eng-mohd 

try below

measure =
var a = ADDCOLUMNS(
          ALL('Table (5)'[id]),
         "count",CALCULATE(
                     IF(COUNT('Table (5)'[id])>1,1,0)
                 )
        )
return
SUMX(a,[count])

 

here my data 

Dangar332_0-1704100764869.png

out put according to data

Dangar332_1-1704100804143.png

 

View solution in original post

1 REPLY 1
Dangar332
Super User
Super User

Hi, @Eng-mohd 

try below

measure =
var a = ADDCOLUMNS(
          ALL('Table (5)'[id]),
         "count",CALCULATE(
                     IF(COUNT('Table (5)'[id])>1,1,0)
                 )
        )
return
SUMX(a,[count])

 

here my data 

Dangar332_0-1704100764869.png

out put according to data

Dangar332_1-1704100804143.png

 

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.