cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

I get the same exact error message. 

View solution in original post

Highlighted
Helper V
Helper V

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

Is there a method in Power BI to confirm that a table is marked as a date table?

Highlighted
Resolver III
Resolver III

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

I don't believe so or that it's necessary.  I just always make sure my PK is an actual date column and not a key like 20170401 or something like that, as I've found many of the DAX capabilities won't work correctly if you don't use a date column when relating tables. 

 

The only other thing I can think of for you to check is to see if there are other roundabout relationships between the date table and another table that then joins back to your fact table directly or indirectly.  If there's any bi-directional relationship there, it might affect what you're trying to do even though your direct relationship between date and fact table is single...

Highlighted
Helper I
Helper I

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

Hi Guys,

 

I had same issue before and I found out that  as @bblais mentioned, I had two tables havng relationship with dates table. Once I set corss filter direction single for both of them. problem was resolved.

Highlighted
Frequent Visitor

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

I had this issue and changing the sameperiodlastyear from my year-month column to the full date column as suggested solved the issue, thanks!

Highlighted
New Member

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

This is what I did to solve the issue.

Highlighted
Frequent Visitor

Re: SAMERPERIODLASTYEAR - Non Contiguous Date Selection Error

I had the same issue.

I had another table with an inactive relationship and still couldn't get a month over month view.

I only had it solved after delete the inactive relationship between the date table and other table. 

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors