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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
deepakv
Frequent Visitor

Facing issue with YTD and MTD

Hi Team, When I am working with YTD. I am facing some issues Using quick measure I was able to get this error as it says 

"Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."

Could you please help? 

YTD = CALCULATE([Totalsales],DATESYTD(DATE[FISCAL_DATE].[Date]))
 
Regards,
Deepak
4 REPLIES 4
deepakv
Frequent Visitor

deepakv_0-1654528798454.png

Can you please let me know what might be the issue?

HI, @deepakv 

Can you show the formula you are currently using for measure [Totalsales]?

Is "FISCAL_YEAR" a field of your table 'Date'?

If possible, please share your sample file.

 

Best Regards,
Community Support Team _ Eason

deepakv
Frequent Visitor

I am not facing any issues, but am not able to slice as the values are constant.

Upon filters, the values are not reflecting/changing.

 

Anonymous
Not applicable

First of all, You must have a DATE table

2) Declare this table as DATE TABLE

JamesFr06_1-1654520268925.png

 

3) Create relationshuip between your date table and your fact table

JamesFr06_2-1654520339676.png

and change the measure

YTD = CALCULATE([Totalsales],DATESYTD(DATE.[Date]))

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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