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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.