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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Advocate I
Advocate I

switch slicer poor performance

Hi all. 


Can anybody suggest why my solution works so poorly in terms of speed? 


1) I am building a scatter chart.

2) As a X and Y values I supply dynamic measures hidden in 2 slicers.

3) These measures are calculated as SWITCH(MIN([index]); 1; [measure1]; 2; [measure2].....) up to 38 values both . 

4) When I choose one slicer and second slicer, it takes minute or two to calculate and display scatter chart. 


Hope you got the idea, it is pretty popular way to slice table by columns, rather than rows. 


Thanks a lot,



5ere used to be an issue where if statements and switch would evaluate every possible answer (eg 38 in total) even though you only need 1 of them. I heard this was fixed, but maybe not. 

* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors