Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
wnicholl
Resolver II
Resolver II

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 Available])
 
Thank you!
1 ACCEPTED SOLUTION

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))
)

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
wnicholl
Resolver II
Resolver II

I tried to create a visual that shows year (2023) over year (2024), and my measure is not producing the correct %. 

 

wnicholl_0-1714164687311.png

My current measure for 2024 is below. I only really need just this measure "Retention Rate = DIVIDE(AISCVGP[Total Bound (Active)],AISCVGP[Total Available])" with a date. I'm going to remove the filters.

 

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"}),
    ALL(AISCVGP[ACCUS#]),
    DATESBETWEEN('Calendar'[Date], DATE(2024,01,01), DATE(2024,12,31))
)

  

 

 

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))
)

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for your reply!  

vanessafvg
Super User
Super User

if you have a date taable and that date link to a date in your table thaat hold the retention date, then all you need to do is filter on the current year.  

 

Unless I misunderstanding what you are asking.    Can you share what you are doing?  you can add the date but one would need to understand what you have in your model.

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors