Forum Discussion

bice_cold's avatar
bice_cold
Frequent Visitor
7 years ago
Solved

Payroll Number Semi-Monthly

I would like to create a column using dax that gives me a count of payroll, starting over each year and increasing semi-monthly on the 1st and 16th of each month. For example, the date table will sho...
  • AlB's avatar
    AlB
    7 years ago

    Try this

    NewCol =
    VAR Base_ = (2 * ( MONTH ( CalendarTable[Date] ) - 1 )) + 1
    RETURN
    SWITCH (TRUE ();
    DAY ( CalendarTable[Date] ) < 16; Base_;
    Base_ + 1
    )