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
IAmCare
Frequent Visitor

SAMEPERIODLASTYEAR with cumulative column

Hello,  I am trying to cumulate units available monhtly for the last fiscal month.  I wrote this measure and it works perfectly until i dry to add SamePeriodAsLastYear.  If i leave off Invoice_DimDate[IsCurrentFiscalYear] = 1) then it works but it goes back to the begining of time for the data and the unit couts are huge.   I just want the  current fiscal year.  Can anybody helpme get the current year unit counts and the previous year unit counts?

 

 

YearRunningTotal =
CALCULATE (
    COUNTROWS( 'Invoice Fact_WIPDaily'),
    FILTER (
        ALL ( 'Invoice Fact_WIPDaily' ),
        'Invoice Fact_WIPDaily'[INV DATE (I10)]<= max('Invoice Fact_WIPDaily'[INV DATE (I10)])),Invoice_DimDate[IsCurrentFiscalYear] = 1)

 

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.