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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Baba
Frequent Visitor

How to use SWITCH function when using table for Matrix Header

Hello,

Can someone help me fix this issue?

I am using table for Matrix column headers and SWITCH function to bring the values but not able to find a way to bring very last column values because of # 11 (in the SWITCH function snip below).  Is there anyway to tell SWITCH if number is not equal to # 11 and 12? or only bring values if ">=6 and <=10"?

Baba_2-1714351067172.png

 

Baba_1-1714350635198.png

Thanks

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Baba 

 

Try this in your SWITCH

 

DisplayItem >= 6 && DisplayItem <=10, RESULT

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Baba 

 

Try this in your SWITCH

 

DisplayItem >= 6 && DisplayItem <=10, RESULT

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.