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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.