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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

sameperiodlastyear working in table but not in matrix

Hi

I ran into a strange problem. I get the "..Contigious Selection" error. I am showing a measure : 

SumAmount LY = Calculate([SumAmount], SAMEPERIODLASTYEAR('Date'[Date] ) )
and a date column in the same Matrix visual. 
When I change it to a Table is works?? Even if I move my date field to the first position in the rows it works. 
Why is it not working and how to fix it? 
I do use a proper Date Table so that is not the issue.
 
4 REPLIES 4
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

I tested it on my side and it works fine, could you please send your dummy pbix that I can check further?

0005.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

Anonymous
Not applicable

I have.. it is in a normal Calendar table with a row per date. What is really puzzling me is that it works on a table but not a matrix.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.