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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
boyddt_mn
Helper IV
Helper IV

Two charts based on different date range with a single slicer

Hello, I have a request to show two column charts with a date slicer. The date slicer would select the date range for the top chart and I need a way to filter the second chart for the month previous to what is selected in the slicer. The screen show shows the page but with two slicers.

boyddt_mn_0-1696444166308.png

Is there a way to filter the bottom based on calculated dates from the date slicer?
I will post a link to a pbix file once I get off-site.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @boyddt_mn 
If I understand you correctly you don't need a bottom slicer.

If this model is without a date table
You can just use 2 Dax measures above :
1. Basic:
for example 
sum profits = sum('financials'[ Sales])

Ritaf1983_0-1696479354673.png

2. For previous month :

Ritaf1983_1-1696479455946.png

The best practice is to use a date table, it will help for all measures with time intelligence.

please refer to the linked tutorials

https://www.youtube.com/watch?v=-gEhRzdhKro

https://blog.enterprisedna.co/power-bi-calendar-table/

https://www.datacamp.com/tutorial/how-to-create-date-tables-in-power-bi-tutorial

My example is linked Here 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @boyddt_mn 
If I understand you correctly you don't need a bottom slicer.

If this model is without a date table
You can just use 2 Dax measures above :
1. Basic:
for example 
sum profits = sum('financials'[ Sales])

Ritaf1983_0-1696479354673.png

2. For previous month :

Ritaf1983_1-1696479455946.png

The best practice is to use a date table, it will help for all measures with time intelligence.

please refer to the linked tutorials

https://www.youtube.com/watch?v=-gEhRzdhKro

https://blog.enterprisedna.co/power-bi-calendar-table/

https://www.datacamp.com/tutorial/how-to-create-date-tables-in-power-bi-tutorial

My example is linked Here 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

@Ritaf1983In our production environment we do have a date table. I put the sample together on the fly more as a visual tool than a model. Per your response, we would use the previousmonth command with the date table also, correct?

Hi @boyddt_mn 
yep 🙂

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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