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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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