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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

More than one date slicer in the same report/one the same page

Hello,

I am constructing a report based on Measures in an Azure Analaysis Services database.

I would like this report to report on monthly data for three time periods (in the same report, preferably in the same visuals as well). The periods are as the following:
1. The last month (e.g. 1. - 31. January)
2. The last n months (n is often 6 months, but the user should be able to change this)(August 2020, September 2020, October 2020, November 2020, December 2020, January 2021)
3. The last N months (a time period longer than n months, for example the last 13 months)

That is; time periods 1., 2. and 3. all end in the same month (here January 2021). 2. goes n months back in time, and 3. goes N>n months back in time.

 


On some pages, I will only use data from one period, in others I will mix them. I want to be able to make visuals where I compare means from the three time periods in a bar chart e.g.

I have tried to use 3 slicers and Edit interactions so that they don't interact. However, I feel that this is a brute force method that is bound to fail. I have also tried to write som DAX code for it. This only works for cases when the length of the time periods is given on beforehand - I want the user to be able to change the length of time periods 2. and 3.

4 REPLIES 4
Anonymous
Not applicable

One solution I have figured out: since I have previously been Live Connected to the AAS, I will instead switch over to a DQ to this AAS and make a new .pbix file with the help-tables necessary to do the calculations (as proposed by @amitchandak).

Will I loose functionality when switching from a Live Connection to Direct Query for my AAS, in combination with a new .pbix-file as source files?

Anonymous
Not applicable

Hi @Anonymous ,

Which functionality do you want to achieve? Please review the content in the following threads, hope they can help you. If no, please provide more details about your expected result.

DirectQuery for Power BI datasets and Azure Analysis Services

Two date slicers in one tab

Two Date Slicers on one Page

Direct Query: Multi query date slicer

Best Regards

amitchandak
Super User
Super User

@Anonymous , refer I tried two slicers on this blog

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I find the solution you propose in the blog post interesting. However, I am using Azure Analysis Services to fetch data, meaning that I am not able to add a new table or column to the data model... 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors