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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
akhil148265
Frequent Visitor

YTD Average showing me blank values after filtering a value from slicer

Hi,

 

I need your help for solving this. I am creating a YTD average by using the below formulas

 

akhil148265_0-1661929283241.png

 

akhil148265_1-1661929346925.png

 

 Correct Result that i need:

akhil148265_2-1661929383062.png

Challenge:-

As soon as i filter a date from the slicer the YTD average value is giving me blank result instead of the corresponding value as shown in the above table.

 

akhil148265_3-1661929473585.png

 

Am i missing something in the DAX can you please help?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@akhil148265 , The first formula, averageX should use calculate in expression

 

example

averageX(Values(Data[Sample Date]), calculate(Sum(Table[Value])) )

 

for YTD try time intelligence

 

YTD Sales = CALCULATE(averageX(Values('Date'[Date]), calculate(Sum(Table[Value])) ) ,DATESYTD('Date'[Date],"12/31"))

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@akhil148265 , The first formula, averageX should use calculate in expression

 

example

averageX(Values(Data[Sample Date]), calculate(Sum(Table[Value])) )

 

for YTD try time intelligence

 

YTD Sales = CALCULATE(averageX(Values('Date'[Date]), calculate(Sum(Table[Value])) ) ,DATESYTD('Date'[Date],"12/31"))

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors