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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors