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 9108783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:53:11+00:00 2026-06-17T02:53:11+00:00

I have a dataset that can come with 5 columns, columns 6, 7, 10,

  • 0

I have a dataset that can come with 5 columns, columns 6, 7, 10, 20, or even 100.
At least two are static, the remaining are dynamic (am making a scale according to a table exists in the database).

How can I implement this in Reporting Services?

How do I specify the field of tablix that the value is dynamic?

The end result would be this:

|   TITLE | ENUNCIATION | GOOD | VERY GOOD | BAD | VERY BAD |
-------------------------------------------------------------
| title 1 |  question 1 |    5 |         3 |   1 |        0 |
| title 2 |  question 2 |    1 |         0 |   3 |        0 |
| title 3 |  question 3 |    0 |         0 |   1 |        0 |

|   TITLE | ENUNCIATION |   1  |     2     |  3  |     4    |
-------------------------------------------------------------
| title 1 |  question 1 |    5 |         3 |   1 |        0 |
| title 2 |  question 2 |    1 |         0 |   3 |        0 |
| title 3 |  question 3 |    0 |         0 |   1 |        0 |

Note: The first two are static, the remaining dynamics.

EDIT:

I have this table:

|   ID_SCALE  | ID_SCALE_ENTRY   | NAME          |
--------------------------------------------------
|      1       |        1        |    GOOD       |    
|      1       |        2        |    VERY GOOD  |   
|      1       |        3        |    BAD        |   
|      1       |        4        |    VERY BAD   |    
|      2       |        1        |       1       |    
|      2       |        2        |       2       |
|      2       |        3        |       3       |
|      2       |        4        |       4       |
|      2       |        5        |       5       |
|      2       |        6        |       6       |
|      2       |        7        |       7       |    

EDIT + NOTE:
I want to show exactly as shown in the first table. The problem is that (Good, Very Good, Bad, Very Bad, 1, 2, 3, 4) fields are created dynamically and it is not possible to specify this in the tablix.

An example: When I want the field value of the dataset, i put this expression Fields!Good.value But now imagine that it is not “Good” but “1” Fields! Good.value no longer exists. Conclusion, is a dataset with dynamic columns.

  • 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-06-17T02:53:13+00:00Added an answer on June 17, 2026 at 2:53 am

    First – You should use Matrix for that.

    Second – To accomplish what you want, in the method you return the data you must return at least three data fields.

    Ex:

    ColDescription - Column description
    StaticRowDescription - Row description / static column value
    Value - The real value for that column/row combination.
    

    Got it?

    Your Matrix should then be like this:

    | Any Text               | [ColDescription] |
    | [StaticRowDescription] | [Value]          |
    

    EDIT:

    Forgot to mention that Any text is my static column in this example. You can add more to match your need.

    —————————————————————

    An example due to your comment.

    This is how you would implement in your return method:

    Let’s say you have one static column Description and the others (n).

    public IEnumerable<YourReturnClass> GetData(int param) 
    {
        List<YourReturnClass> returnList = new List<YourReturnClass>();
        foreach (var row in allYourRows())
        {
            foreach (var col in row.getColumns())
            {
                returnList.add(new YourReturnClass(){
                    StaticRowDescription = row.Description,
                    ColDescription = col.Description,
                    Value = myValueAccordingToCurrentColumnXRow()
                });
            }
        }
    
        return returnList;
    }
    

    and this as your matrix:

    | Description            | [ColDescription] |
    | [StaticRowDescription] | [Value]          |
    

    That way if you had one row in allYourRows() with a description “Expenses” and two columns with the names “Gas” and “Electricity” you would have this as your matrix result:

    | Description | Gas | Electricity |
    -----------------------------------
    | Expenses    | 25  | 150         |
    

    Better?

    This is just to explain how matrix works, the way you get your data might be different than the one portraited.

    The report (RDL) will be the same, the only change is in how you get your data. If you have a table like this:
    (this would be a table from your database (where you have stored your data))

    | RowDescription | DynamicColumnHeader | Value |
    ------------------------------------------------
    | Year 2013      | January             | 500   |
    | Year 2013      | February            | 850   |
    | Year 2013      | March               | 265   |
    | Year 2014      | February            | 965   |
    

    Then your report would look like this:

    | Description | January | February | March|
    -------------------------------------------
    | Year 2013   | 500     | 850      | 265  |
    | Year 2014   |         | 965      |      |
    

    Got the idea?

    I attached an image of how your report would look like:

    image

    NEW EDIT:

    |   TITLE | ENUNCIATION    | [NAME]                          |
    -------------------------------------------------------------
    | [title] |  [enunciation] |  [ID_SCALE] OR [ID_SCALE_ENTRY] |
    

    *or a multiplication, sum, etc…

    EDIT BASED ON LAST COMMENT:

    |   TITLE | ENUNCIATION    | [NAME]                          |
    -------------------------------------------------------------
    | [title] |  [enunciation] | [Count(NAME)]                   |
    

    Is that it?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an rdlc that has a separately-defined dataset. The time has come that
I have a large dataset (over 100,000 records) that I wish to load into
i have a page that displays large datasets into html tables. how can i
I have a dataset that i am trying to set the default value as
I have a dataset that returns questions and answers from the database, each answer
I have a large dataset that load in with a fill method on page
I have a large dataset that I am dealing with in Python. It is
I have a (dense) dataset that consist of 5 groups, so my data.frame looks
Imagine you have a large dataset that may or may not be filtered by
I have a DataSet with some DataTables that are linked together with DataRelations (classic

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.