Forum Discussion

miguesnet's avatar
miguesnet
Frequent Visitor
2 years ago
Solved

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

  • Try the below formula:

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

2 Replies

  • Try the below formula:

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