Forum Discussion

iandespradel's avatar
iandespradel
Regular Visitor
5 years ago
Solved

Help with Visuals and Making Measures or Calculated Columns, %Days Worked, %Broken %Standby

I work in a company that lends equipment and machinery for construction projects.   I have +100 equipment, each identify by an unique ID.   I have a log of all the borrowed equipment.(Status: "Ac...
  • amitchandak's avatar
    5 years ago

    iandespradel , Try like

     

    % of the days Broken =
    var _tot = countx(equipment,equipment[ID])
    return
    divide(calculate(distinctcount(Table[ID.Equip]), filter(Table, Table[Status] ="Broken")), _tot)

     

    % of the days Active=
    var _tot = countx(equipment,equipment[ID])
    return
    divide(calculate(distinctcount(Table[ID.Equip]), filter(Table, Table[Status] ="Active")), _tot)