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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filtering two dates from one date selection in slicer

I have a problem where I need to show results for the current date selection as well as the December before the current date when selecting a date in a filter.

 

For example:

 

Select:

April 2017

 

Result:

April 2017

December 2016

 

Or

 

Select:

October 2016

 

Result:

October 2016

December 2015

 

 

Is arranging such a table possible within Power BI?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks @Phil_Seamark.

 

I found an acceptable solution which I was able to modify from a previous discussion here:

 

https://community.powerbi.com/t5/Community-Knowledge-Base/Rolling-N-Dates-based-on-slicer-selection/...

 

-Aman

View solution in original post

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

Yes this is possible by writing your DAX calculations to go find the december data.  Nornally these are usually written to find a previous period such as the previous month, but can easily be tweaked to meet your requirement.

 

If you share a small sample of your data, we can suggest a calculation.

 

Phil


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Thanks @Phil_Seamark.

 

I found an acceptable solution which I was able to modify from a previous discussion here:

 

https://community.powerbi.com/t5/Community-Knowledge-Base/Rolling-N-Dates-based-on-slicer-selection/...

 

-Aman

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.