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
RAdams
Helper III
Helper III

Previous Year Weekend Measure Not Summing Correctly

I know this is a known issue but I just can't get my Previous Year Weekend Measure to Sum Correctly in my matrix table. I know I'm missing somethign small but just can't figure it out. Any help would be appreciated! 

 

LY-W = 
VAR getdate = MAX ( 'DSR'[InvoiceDate] )
VAR wot = WEEKNUM (getdate,1)
VAR ly = YEAR (getdate)-1
RETURN
        SUMX(
            VALUES('Calendar'[PY Weekend]),
            CALCULATE(SUM('DSR'[TotalSale]),
        FILTER (
            ALL ( 'Calendar' ),
            WEEKNUM('Calendar'[Date],1) = wot
                && Year('Calendar'[Date]) = ly
        )
    ))

 

0 REPLIES 0

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.