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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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