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
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
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.