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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Change Axis field according to a a slicer

Hi guys, I have a data set which shows sales over 3 years.
My client requires a slicer which would contain "Year,Quarter and month".
If i select year,a bar chart should show sales by year for all the years,
If i select quarter ,it should show sales by quarter for the last 8 quarters and
if i select month,It should show the sales by month for the last 12 months.

 

And to make things worse,I'm using direct query. Any way to do this?

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

Here is a good article about how to present the end user with a slicer on the report page with options of Year, Quarter, Month and Day and when the user selects one of the options, visuals react accordingly and display the appropriate aggregated values.

 

As you're using DQ, you'll need to try creating the tables mentioned in the solution on your source side(DB). Or I'll suggest you use the Drill Down feature to switch the Axis between Year,Quarter and month on the chart. Smiley Happy

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Employee
Employee

Hi @Anonymous,

 

Here is a good article about how to present the end user with a slicer on the report page with options of Year, Quarter, Month and Day and when the user selects one of the options, visuals react accordingly and display the appropriate aggregated values.

 

As you're using DQ, you'll need to try creating the tables mentioned in the solution on your source side(DB). Or I'll suggest you use the Drill Down feature to switch the Axis between Year,Quarter and month on the chart. Smiley Happy

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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