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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.