Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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.
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?
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
Direct Query: Multi query date slicer
Best Regards
@Anonymous , refer I tried two slicers on this blog
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
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...