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
Anonymous
Not applicable

Rolling 12 month not returning anything

Hi,

 

I have the following  measure, however it is not returning anything.. unique ref has values in so not sure what is going on there?

 

 

No of Referrals = 
    CALCULATE(
    count(Referrals[UniqueRef]),
    DATESINPERIOD( 'Calendar'[Date], MAX( 'Calendar'[Date] ), -12,  MONTH )
)

 

 

Any help appreciated

1 ACCEPTED SOLUTION
James-Harpin
Resolver IV
Resolver IV

So currently this will be doing the max date in 2040 minus 12 months, try changing the MAX date function to TODAY()

View solution in original post

4 REPLIES 4
James-Harpin
Resolver IV
Resolver IV

So currently this will be doing the max date in 2040 minus 12 months, try changing the MAX date function to TODAY()

James-Harpin
Resolver IV
Resolver IV

Hi @Anonymous 

For your MAX of Calendar Date is this value today, or a date in the future?

Anonymous
Not applicable

Hi ames,

 

The Calendar goes to 2040 but i am wanting rolling twelves months from today.

 

Thanks

Anonymous
Not applicable

Thanks James thats returning a result now which is great however if i put it next to the month name its returning the same number? against every date in the date table even though there is a two way connection between both tables?

 

 

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