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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Date filtering Error

Hi, 

 

I am wanting to use this date filter in my reports: 

 

Date filter.PNG

 

I am also wanting to do a Year over Year comparison with the data after the date is selected:

 

yoy help.PNG    yoy help2.PNG

 

As you can see, I filtered the October 17, 2016 - October 17, 2017; it's given me just that [ NOT year over year ].

 

 If I filter just October 17, 2017; 2016 column goes away 😞

 

yoy help2.PNG

 

 

 

Could someone please help in this?

 

8 REPLIES 8
Anonymous
Not applicable

HI @Anonymous,

 

>> If I filter just October 17, 2017; 2016 column goes away Smiley Sad

Current slicer only support show the filtered part. If you removed the 2016 part in your slicer, matrix visual will shows the filtered 2017 part.

In my opinion, I'd like to suggest you write a measure to get the previous records based on calendar date.

 

Regards,

Xiaoxin Sheng

Ashish_Mathur
Super User
Super User

Hi,

 

Your question is not clear.  What do you want to show in the Table visual?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi,

I want to show current and last year's count for the same month and day that's filtered by the date slicer.

Hi,

 

Try to use the SAMEPERIODLASTYEAR() function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

How would I factor it into my sum measures?

The table is counting total Sales. I am unsure how to use it within this visual.

Hi,

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

I attempted the "sameperiodlast year" function.. and got this error when using it in the matrix:

 

:: Function 'SAMEPERIODLASTYEAR' expects a contiguous selection when the date column comes from a table on the 1-side of bi-derectional relationship

 

Hi,

 

Share the link from where i can download your file.  Please also show there the result you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.