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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

SAMEPERIODLASTYEAR Should not automatically go to the end of the month

Currently SAMEPERIODLASTYEAR automatically goes to the end of the month, so in reality it is not measuring the same period. Below is a fix that I am having to implement. Thankfully I QA'd my work and found the error otherwise I would be mis-reporting on the assumption that SAMEPERIODLASTYEAR is exactly the SAMEPERIODLASTYEAR.



DATESBETWEEN(REG000b[Actual End Date],
SAMEPERIODLASTYEAR(FIRSTDATE(DATESYTD(REG000b[Actual End Date], "31 March"))),
SAMEPERIODLASTYEAR(LASTDATE(DATESYTD(REG000b[Actual End Date], "31 March")))),

I don't think it would take much to build in the LASTDATE function into the SAMEPERIODLASTYEAR function?
Status: New
Comments
fbcideas_migusr
New Member
Status changed to: New