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! Request now

Reply
Anonymous
Not applicable

Time Intelligence Function is not working

Time Intelligence Function is not working for SAMEPERIODLASTYEAR(), DATESYTD(), TOTALYTD(), etc.

 

Act Month Revenue LY = //CALCULATE(SUM('Module General Ledger'[monthly amount]), SAMEPERIODLASTYEAR('Date Table'[Date]))
CALCULATE([Act Month Revenue],SAMEPERIODLASTYEAR('Date Table'[Date]))
 
Act YTD CY Revenue = CALCULATE(SUM('Module General Ledger'[monthly amount]), FILTER('Module General Ledger','Module General Ledger'[scenario] = "ACT"), FILTER('Module General Ledger', 'Module General Ledger'[account] IN {"40010", "40020", "40030", "40040"}), DATESYTD('Date Table'[Date]))
 
Act Month Revenue LY column is not showing data.
Act YTD CY Revenue is showing the same value as in Act Month Revenue column
 
Here I have attached the sample table.
 
TimeIntelligence.png  
 
Thanks in advance.
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , make sure the date table is marked as a date. and You have all the required date in the date table.

 

Also, refer

Power BI — YTD Questions — Time Intelligence 1–5
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a

Power BI — MTD Questions — Time Intelligence 3–5
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

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

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , make sure the date table is marked as a date. and You have all the required date in the date table.

 

Also, refer

Power BI — YTD Questions — Time Intelligence 1–5
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a

Power BI — MTD Questions — Time Intelligence 3–5
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

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

@amitchandak Thank You

I marked date table as date.

Now SAMEPERIODLASTYEAR function is working. The table shows the last year data. But still now DATESYTD is showing the same data as in Actual Month Revenue column for each period.

praisy_0-1595917270563.png

 

@Anonymous , to me monthly look like YTD.

Can you share sample data and sample output in table format?

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

Greg_Deckler
Community Champion
Community Champion

See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...

 

Also, there is good information on how to get time intelligence functions to work here: https://community.powerbi.com/t5/Quick-Measures-Gallery/To-bleep-With-STARTOFQUARTER/m-p/1240067#M56...

 

And also sound advice on not using them quite frankly.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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