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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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