The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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)
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |