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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CathleenO
Frequent Visitor

Time Intelligence

Hello,

 

I need some help with a complicated time intelligence calculation.

 

Its been working perfectly within my graph, but as we push forward into 2024, as its "datesytd" this calculation no longer functions for the future data in year "2024".

I would like to show both 2023, and now 2024.

 

I have tried datesbetween, datesinperiod, lastdate, nextyear, I cannot make it calculate. 

See the dax below.  I do have a calendar table. 

Can anyone help me out?  Thanks!~

 

Forecast = CALCULATE([Rolling Inventory Calc],DATESYTD('Calendar'[Date]))-CALCULATE(sum('2023 Open Orders'[Bal to Ship/Invoiced]),DATESYTD('Calendar'[Date]))
 
 
 
4 REPLIES 4
amitchandak
Super User
Super User

@CathleenO , the table should joined with Calendar Table using 1-M join. Calendar Table should have date for 2024

 

You can get last year like

CALCULATE([Rolling Inventory Calc],DATESYTD(dateadd('Calendar'[Date], -1, Year)))

 

 

refer

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-bd52912a5b...
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

Thanks Amitchandak,

 

So, as we are 2023, and the formula is fully functional for 2023, but I need to add 2024, would it work as follows? I will try it. LMK what you think. 

 

CALCULATE([Rolling Inventory Calc],DATESYTD(dateadd('Calendar'[Date], +1, Year)))

Sorry, I recieved this message:

CathleenO_0-1688564766863.png

 

Can anyone help?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors