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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
miguesnet
Frequent Visitor

NB IF

Hi, 

 

I am trying to calculate the nb of weeks we are above a saturation rate of 90% ,

 

Ex : 

WeekWorkloadCapacity
1100100
290100
392100
480100
581100
695100
7100100
875100
985100
1098100

 

 

Measure :  Saturation rate = Workload / Capacity

 

Expected result : 4

 

Thanks in advance for your help

 

Mickael

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Try the below formula:

saturation above 90 = 
var summaryTable = ADDCOLUMNS('Table', "saturation", DIVIDE('Table'[Workload], 'Table'[Capacity]))
RETURN COUNTROWS(FILTER(summaryTable, [saturation] > 0.9))

View solution in original post

2 REPLIES 2
miguesnet
Frequent Visitor

Thanks a lot for your helps vicky_

vicky_
Super User
Super User

Try the below formula:

saturation above 90 = 
var summaryTable = ADDCOLUMNS('Table', "saturation", DIVIDE('Table'[Workload], 'Table'[Capacity]))
RETURN COUNTROWS(FILTER(summaryTable, [saturation] > 0.9))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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