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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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