Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Table Help Pls

Hi all, another little question please. There is the following data below. Need to add all the "ETC" by Month and Name and then divide by "Avail".    So for example, for Sam in Jan, the result shou...
  • mahoneypat's avatar
    6 years ago

    Here is one way to get your desired result with a measure (if your visual includes person and month columns) or a DAX calculated column.

     

    Result =
    VAR sumest =
    CALCULATE (
    SUM ( Avail[Est] ),
    ALLEXCEPT ( Avail, Avail[Month], Avail[Person] )
    )
    VAR sumavail =
    CALCULATE (
    SUM ( Avail[Avail] ),
    ALLEXCEPT ( Avail, Avail[Month], Avail[Person] )
    )
    RETURN
    sumest / sumavail

     

    If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat