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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Compare a value of selected month with the value of value on 31/12/.... of the previous year

MijnBuurman_0-1645219561130.png

Thanks for your reply!

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

How about something like this?

Diff =
VAR _CurrDate = MAX ( DateTable[Date] )
VAR _PrevYearEnd = DATE ( YEAR ( _CurrDate ) - 1, 12, 31 )
RETURN
    SUM ( Table1[Amount] )
        - CALCULATE ( SUM ( Table1[Amount] ), DateTable[Date] = _PrevYearEnd )

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you very much Alexis O.!

AlexisOlson
Super User
Super User

How about something like this?

Diff =
VAR _CurrDate = MAX ( DateTable[Date] )
VAR _PrevYearEnd = DATE ( YEAR ( _CurrDate ) - 1, 12, 31 )
RETURN
    SUM ( Table1[Amount] )
        - CALCULATE ( SUM ( Table1[Amount] ), DateTable[Date] = _PrevYearEnd )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.