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

Join 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.

Reply
yorkehead
Frequent Visitor

Calculating a metric DAX: Couting values if all values on the column > 10

Hi all,

 

I have a a table with two columns, for example.

 

 ID  OtherID

X      12345

X      12456

Y       .....

Y      ......

Z      .....

 

 

IF the count of OtherID ( for every ID)  is bigger than 10 I want to count all the IDs bigger than 10.

 

Thanks.

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @yorkehead,

 

If I understand you correctly, you should be able to use the formula(DAX) below to create a measure to get the expected result in your scenario. Smiley Happy

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( Table1, Table1[Column A], "CountOfColumn", COUNTROWS ( Table1 ) ),
        [CountOfColumn] >= 5
    )
)

Note: you will need to replace Table1 with your real table name.

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @yorkehead,

 

If I understand you correctly, you should be able to use the formula(DAX) below to create a measure to get the expected result in your scenario. Smiley Happy

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( Table1, Table1[Column A], "CountOfColumn", COUNTROWS ( Table1 ) ),
        [CountOfColumn] >= 5
    )
)

Note: you will need to replace Table1 with your real table name.

 

Regards

Thanks!!! That's exactly what I needed!

yorkehead
Frequent Visitor

Hi all,

 

I want to create a metric in DAX that allows me to Counting all ID's that count bigger than 5  in other column.

 

Example:

Column A( ID) Column B

1                          123

2                          456

1                          234

1                          235

1                          236

1                          234

 

In this case ID 1 will be counted.

 

Can you help me?

 

Thanks.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors