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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Rolling 12 month based on selection date.

Hi Team,

 

Could you please help me to get rolling 12 month data based on selection date.

Below DAX used to get the value, but showing blank records.

 

SalesCost_R12 =
CALCULATE(
    'Measure'[SalesCost],
    DATESINPERIOD('Calendar'[Date], MAX('Calendar'[Date]), -12, MONTH))
 
Thanks in advance.
 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , this is correct.

 

Check there is not timestamp on the date of your table(not date table), and change the data type to datetime, and it should show only 00:00 hour or 12:00 AM

if there is any other time then create a date column

Date = datevalues(Table[DAte column])

 

make sure Join is single directional

 

check others

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors