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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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