Forum Discussion

icbd's avatar
icbd
Helper I
4 years ago
Solved

Total planned production time calculation

Good morning everyone.   I am using PowerBI to visualize data in a SQL database. I am trying to make a measurement that will calculate the total planned production times.   I have three different...
  • icbd's avatar
    icbd
    4 years ago

    I was able to do this properly using the following by creating a calculated column containing the Date&ShiftId. I named this ShiftDate.

     

    From there, I used the following DAX formula:

     

    SUMX((DISTINCT(DataPartCell1[ShiftDate])), FIRSTNONBLANK(DataPartCell1[ShiftLength],0))