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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Count Rows + greater than

Hi!
Looking for some guidance with simple DAX Calculation.I created one Measure to count rows:

 

Measure = COUNTROWS(FullTable)

 

Then on a matrix table I add the following:

 

Lines:
Account Number
Transaction Number
Date of Transaction

 

Values:
Current Value
Measure


I want this table only to show "Account Numbers" that had more than 30 rows count. I just added a filter in the visual for measure field to show me "is greater than 30" but the table doesn't apply this filter.

 

Feel kind stupid since this sounds basic. But I fell this has something to do with those 2 extra lines I added (Transaction Number / Date of Transaction).

 

Can you guys help me?

Thanks,
Barbara

1 ACCEPTED SOLUTION
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

There must be a better way to achieve this, but here you go.

 

a. Create a new column in the table with value 1

            New_Column = 1

b. Use the below measure to count the number of Accounts.

 

Accts Cnt = SUMX(SUMMARIZE('Blank Report','Blank Report'[Country],"ABC",CALCULATE(SUM('Blank Report'[Column]),ALLEXCEPT('Blank Report','Blank Report'[Country]))),[ABC])
 
Replace 'Blank Report' with you table name and Country with Accounts column.
 
If it helps, mark it as a solution.
Kudos are good too.

 

Connect on LinkedIn

View solution in original post

3 REPLIES 3
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

There must be a better way to achieve this, but here you go.

 

a. Create a new column in the table with value 1

            New_Column = 1

b. Use the below measure to count the number of Accounts.

 

Accts Cnt = SUMX(SUMMARIZE('Blank Report','Blank Report'[Country],"ABC",CALCULATE(SUM('Blank Report'[Column]),ALLEXCEPT('Blank Report','Blank Report'[Country]))),[ABC])
 
Replace 'Blank Report' with you table name and Country with Accounts column.
 
If it helps, mark it as a solution.
Kudos are good too.

 

Connect on LinkedIn
Anonymous
Not applicable

Hi @VasTg, How are you? Me again. I had worked perfected before but now I only need to show the distint count for "Transaction Numbers" and then filter it. In this formula you gave me, how do I changed it? Thanks, Barbara

@Anonymous 

 

I am doing good. Thanks for asking.

 

Do you mind share a sample input and output data?

 

Thanks,

Vas

Connect on LinkedIn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Solution Authors