Forum Discussion

AppleMan's avatar
AppleMan
Helper III
3 years ago
Solved

TotalYTD Not Adding Correctly

Hi, I am having issues with the totalYTD function in PowerBI (I have also tried to do this with running total and gotten the same result).  Here is the issue, in the table below I am trying to get...
  • lbendlin's avatar
    lbendlin
    3 years ago

    This column definition is iffy:

    Salary Hours Column = Calculate(
            ([Active Salaried] * (40/7)) * MAX('Date Table'[Day])
    )

    as it includes a measure.  Now in this case the measure itself is a constant, but in general the rule is that you cannot create columns from measures/filters.

     

    Here is a proposal for an alternative, more pedestrian calculation. It uses day level granularity rather than relying on ENDOFMONTH.