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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors