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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

YTD Calculation Not working in Power BI Direct Query

I have created a measure for YTD calculation but it returns no results, not sure what I am doing wrong
 
YTD SALES = CALCULATE (
SUM('Group Results'[FC_OCC8_CLAIMS]),
FILTER (
ALL ( 'CalendarGroup' ),
CalendarGroup[Day Date] <= MAX ( CalendarGroup[Day Date] )
&& YEAR ( CalendarGroup[Day Date] ) = YEAR ( MAX ( CalendarGroup[Day Date] ) )
)
)
 
 
Capture.PNG
2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Could you please share some sample data and clarify more details about your requirement?

 

Regards,

Jimmy Tao

Anonymous
Not applicable

What is the other relationship connected to Group Results. That formula looks like it should work.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

October NL Carousel

Fabric Community Update - October 2024

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