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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
billyrich83
Frequent Visitor

Formula to calculate >7

Hi I've got a table in power bi that calcutes the number of days it taken to turn around a review. I looking for a forumla that wil count all of the ones less than 7 

 

I've added a screen shot for referecne. if you need any further info let me know KPI tab.png

1 ACCEPTED SOLUTION
Barthel
Solution Sage
Solution Sage

@billyrich83 

You can use the COUNTROWS function to count the number of rows in your table. And the CALCULATE function to filter the table for less than 7. Use this expression in a measure, which you can then use in visuals:

CALCULATE ( COUNTROWS ( 'KPI' ), KEEPFILTERS ( 'KPI'[Turnover] < 7 ) )

 

View solution in original post

2 REPLIES 2
Barthel
Solution Sage
Solution Sage

@billyrich83 

You can use the COUNTROWS function to count the number of rows in your table. And the CALCULATE function to filter the table for less than 7. Use this expression in a measure, which you can then use in visuals:

CALCULATE ( COUNTROWS ( 'KPI' ), KEEPFILTERS ( 'KPI'[Turnover] < 7 ) )

 

Thnaks works like a charm 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors