Forum Discussion
MojoGene
Post Patron
9 years agoSAMERPERIODLASTYEAR - Non Contiguous Date Selection Error
I've read multiple posts on this error: "SAMEPERIODLASTYEAR expects a contiguous selection when the date column comes from a table on the 1-side of a bidirectional relationship." I am still baffled b...
- 9 years ago
I get the same exact error message.
MojoGene
Post Patron
9 years agoIt is definitely a date table.
bblais
Resolver III
9 years agoI mean the DateKey column specifically?
- MojoGene9 years ago
Post Patron
Yes, I should have been more specific. The DateKey column is type date.
- bblais9 years ago
Resolver III
Ok, I'm thinking it's something to do with the fact that your Fees Billed measure is filtering by BillSubType. So what's happening is that it's coming up with blanks for some of the past year's dates when it's trying to calculate the Fees Billed and it doesn't like it.
For the heck of it, can you try adding +0 to your Fees Billed formula:
Fees Billed = CALCULATE(SUM(FactTable[AmtBilledForSubtype])+0,FactTable[BillSubtype]="FEE")
I know this won't fix the issue necessarily, but it would confirm what's going on.
- MojoGene9 years ago
Post Patron
I tried the suggestion, but it had no apparent effect on any of the 3 measures.