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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
madscientist
Frequent Visitor

Ignoring Legend filter

Good day all,

 

I currently have a stacked bar chart with two products having the following annual sales:

 

ProductYear 1Year 2Year 3
A101010
B102030

 

I also have a slicer setup with values that allow me to filter out products with total sales over various thresholds (e.g >$5M, >$20M, etc).

 

When I select >$20M on the slicer, I see both products as single bars which makes sense as their totals are $30 and $60 respectively.  However, when I bring in Year as a legend, the only bars visible in the chart are for Product B, Years 2 and 3 only.  Is there a way to ignore the product size slicer when the Year legend is applied?

 

The measure I am using is: product sales = if( Calculate( [sales])>=Selectedvalue (productsize_slicervalue), Calculate ([sales]),Blank())

 

Thanks for your insights!

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@madscientist , you can unpivot the date have a year in row

https://radacad.com/pivot-and-unpivot-with-power-bi

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

Hi @madscientist ,

 

Try to unpivot your table like:

 

Capture2.PNG

 

And you measure will work.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@madscientist , you can unpivot the date have a year in row

https://radacad.com/pivot-and-unpivot-with-power-bi

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandakHi - in the underlyding dataset, year is already in a row via a calendar table (along with all other date-related attributes).

Hi @madscientist ,

 

Try to unpivot your table like:

 

Capture2.PNG

 

And you measure will work.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.