Forum Discussion

LeppyR64's avatar
LeppyR64
Regular Visitor
3 years ago
Solved

Count Weeks Above Target

I have the following tables:  - Calendar table (Date, ISO Year, ISO Week Number) - Operation Data (Date, Production Area, Order Number, Labour to be Completed) - Measure (Sum of Labour to be Comple...
  • amitchandak's avatar
    3 years ago

    LeppyR64 , try like

     

    Count of Weeks Above Capacity =

    var tbl = filter(summarize(Fact, DateDimension[Iso Year Week], "util", [Utilization Pct]), [util] > 1)

    return COUNTROWS(tbl)