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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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