Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7408503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:55:43+00:00 2026-05-29T05:55:43+00:00

I have created a matrix report. I have a column ‘Model’ and values are

  • 0

I have created a matrix report. I have a column ‘Model’ and values are (Classic, semi classic, Grand, twin , full, king , queen). Requirement was to split these values in columns.

I created column group for that and write expression like that:

=Switch(Fields!model.Value = "   ", "NULL" ,
    Fields!model.Value = "classic", 1, 
    Fields!model.Value = "semi classic", 1,
    Fields!model.Value = "Grand", 1,
    Fields!model.Value = "Twin", 1,
    Fields!model.Value = "Full", 1,
    Fields!model.Value = "King", 1,
    Fields!model.Value = "Queen", 1
)

Now I have to sort these models into particular order ( not in A-Z or Z-A).

order should be : twin, Grand, Queen, Classic , Full, semi classic, king

Can some one help me in this how to twist expression or some property.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:55:44+00:00Added an answer on May 29, 2026 at 5:55 am

    You’ve got most of this already written. If you set the Sorting to this expression, I think you’ll get what you want.

    =Switch(
     Fields!model.Value = " ", 100 ,
     Fields!model.Value = "classic", 4,
     Fields!model.Value = "semi classic", 6,
     Fields!model.Value = "Grand", 2,
     Fields!model.Value = "Twin", 1,
     Fields!model.Value = "Full", 5,
     Fields!model.Value = "King", 7,
     Fields!model.Value = "Queen", 3)
    

    Use the expression above for the Sorting only. Don’t use this for the values of the cells. For that use your initial values.

    By the way, seems like your original switch statement has some redundancy that could be eliminated. This would be different for any values not listed in your switch but other wise would give you the same results:

    =IIF(Fields!model.Value = " ", "NULL" , 1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i created a matrix report that have 2 rows and 6 columns. picture 1
I have created a SQL Server 2005 matrix with a total column. I want
I have created a SSRS 2008 report.I have created a matrix.I want to make
I have a need to basically create a matrix of values in my Silverlight
I have created a scene in 3DS Max with a stock engine model and
I have a 2d matrix created with the code: for(i=0; i < size; i++)
I have created a report in SSRS that contains 2 matrices (not tables/lists), each
I have created dll in C# 3.5 which does some memory intensive matrix calculations
I have created a sparse matrix using MEX and also created a sparse matrix
I have created the following type using implicit type construction: open System type Matrix(sourceMatrix:double[,])

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.