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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
fleuhusen
Regular Visitor

Slicer with Multiple Dynamic Pie Charts

Hello everyone!

 

Thank you for taking the time to help. I've been looking through the forums but have had a hard time finding any solution. I'm trying to have a slicer that dynamically controls the values of pie charts. I don't want the pie charts to show the total amount, but rather show individually data for each year.

 

Below is an image of what I'm trying to do, and I have the red text below showing what I want the output to be in the charts.

Screen Shot 2021-07-01 at 11.37.14 AM.png

 

Do you have any ideas about how I can accomplish this with the slicer, or another slicer, so that each one of the pie charts will show data on a year by year basis related to the slider. In the example above it shows 2017 - 2019, but if I change the slider to 2016-2018, then I want the three charts to update to show those years instead.

 

It would also be interesting to find out if there is a function with the slicer that always restricts the values to 3 years in this case, as otherwise I can only imagine that there will be errors if more/less years are choosen.

 

Thank you for your insight and I appreciate your expertise.


Best regards,
Fredrik

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@fleuhusen , As of now small mutiple is not supported on pie visual. This would be an easy go.

You can log an idea for that.

 

Not you might create measures based on max year for last three years, three different visuals. but that would be static

 

example

This Year = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

Last to last Year = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-2))

 

 

Also, check some custom visuals if that can support this.

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@fleuhusen , As of now small mutiple is not supported on pie visual. This would be an easy go.

You can log an idea for that.

 

Not you might create measures based on max year for last three years, three different visuals. but that would be static

 

example

This Year = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

Last to last Year = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-2))

 

 

Also, check some custom visuals if that can support this.

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

Thank you @amitchandak! I'll log an idea for it and we'll see if it moves forward anytime soon. Your code is helpful, but I feel that maybe the charts in that case would more easily be controlled with a filter if the code makes the values static.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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