Forum Discussion

wnicholl's avatar
wnicholl
Resolver II
2 years ago
Solved

Add date to calculated measure.

Is it possible to add a date to this measure? I need to see the retention rate show for a full year Jan 2024 to Dec 2024.    Retention Rate = DIVIDE(AISCVGP[Total Bound (Active)],AISCVGP[Total Ava...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    2 years ago

    Hi,

    Does this measure work?

    2024 Retention % =
    CALCULATE(
        DIVIDE(AISCVGP[Total Bound (Active)], AISCVGP[Total Available]),
        FILTER('AISCVGP', [ACSTA] IN {"ACT", "CAN", "CLO", "LER", "NON", "PEN"}),
        FILTER('AISCVGP', [ACNOR] = "R"),
        FILTER('AISCVGP', [ACPROD] IN {"APL", "CPA"}),
        DATESBETWEEN('Calendar'[Date], DATE(2024,01,01), DATE(2024,12,31))
    )