Now I want to capture the Same period last year. But none of my measures work properly.
I’ve tried this measure thinking the SAMEPERIODLASTYEAR would work, but the issue is that it doesn’t capture the proper # of months, it gives me the FULL FY20 Billings. I thought it would recognize that the YTD FY21 Billings only has 3 months of costs, so it would give me 3 months of cost from the piror year.
Same Period Last Year= CALCULATE([YTD FY21 Billings], SAMEPERIODLASTYEAR(‘Date Table’[Date]))
The image below gives the visual, the $6.8Mil is correct for the current Fiscal, but the $27Mil is the complete spend for the prior Fiscal.
In my date table, should i be adding a new column of some sorts to run the measures against?
Hi Chad,
I am not too sure, but you can try further filtering down your measure by using “filter” and specifically mentioning the names of months.
Also please provide your pbix file, so other members can have a look at your data and suggest better solution.
Regards
Hello,
It would be great to have a sample of your PBIX file,
Meanwhile,
I believe the key for your requirements is basically not using any of the time intelligence “built-in” expressions, including DATEADD.
PYCustom =
IF (ISFILTERED( ‘Date Table’[FiscalYear]),
CALCULATE ([YTD FY21 Billings]),
FILTER (ALL ( ‘Date Table’),
‘Date Table’[FiscalYear] = VALUES ( ‘Date Table’[FiscalYear]) - 1
&& CONTAINS(VALUES ( ‘Date Table’[Day Number of the Year]), ‘Date Table’[Day Number of the Year], ‘Date Table’[Day Number of the Year])
)),BLANK ())
The expression above is doing the same as PARALLELPERIOD but is working for Fiscal Calendars down to the week.
If this helps your resolve it, please mark it as a solution
Best regards,
Karim,
I still couldn’t get it working… ugh… my original PBF is very large with allot of data i could not share. So I’ve taken the time to strip everything out. Which i should have done in the first place…
Hi @chad.sharpe, did the response provided by the users and experts help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query. Thanks!