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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

Reply
azeemnazim
Helper II
Helper II

Time Intelligence function

 https://drive.google.com/file/d/15bz4a5Pq5bsgNZuE68eTeKWwNrDmNsdo/view?usp=sharing 

 

Hi,

I have been facing serious issues while creating the time intelligence function in the above-mentioned file. The calendar table that I have created is perfectly fine but I am facing issues when I use a DatesMTD  using the mentioned  formula 

MTD Sales = CALCULATE([Sum sales],DATESMTD(Calender[Date].[Date])) , but I am getting no values I have also created a table for reference in the above-mentioned path to the Pbix file. I have also been facing issue with the calendar table as the value picked up from the calendar table and my fact table does not show value please help me in this and what is causing this issue.
 
Thanks 
Azeem
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@azeemnazim , please avoid using . Date

Ventas MTD: CALCULATE([Sum sales],DATESMTD(Calender[Date]))

Power BI — YTD
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
Power BI — QTD
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
Power BI — MTD
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

@azeemnazim , please avoid using . Date

Ventas MTD: CALCULATE([Sum sales],DATESMTD(Calender[Date]))

Power BI — YTD
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
Power BI — QTD
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
Power BI — MTD
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

Hi Amit,

I tried the same but I am still facing the issue, Please check my Pbix file if possible.

Thanks

If possible can you please check why I am not getting any values when I am using date from calendar table and just selecting sales in table its not giving any values.

Thanks, I found the issue myself.

Hi @azeemnazim ,

Glad to hear the issue is solved. You can kindly share your solution and accept your reply as solution, that way, other community members could easily find the answer when they get same issues.


Best Regards,
Yingjie Li

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.