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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors