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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:20:07+00:00 2026-06-16T05:20:07+00:00

I have a table with stats information per user, let’s say TABLE Stats user

  • 0

I have a table with stats information per user, let’s say

TABLE Stats
user varchar(50)
callsdate datetime
howmany INT

And I need to show a Tablix with the totals where the columns headings should be Jul-2012, Aug-2012, Sep-2012, etc., depending of what is there in the data.

  • 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-16T05:20:08+00:00Added an answer on June 16, 2026 at 5:20 am

    Ultimately you need to set up a group at the report level that is a concatenation of the month and the year.

    You could do this at the query level with something like:

    select
      [user]
      , monthYear = left(datename(mm, callsdate), 3) + '-' + cast(datepart(yy, callsdate) as char(4))
      , howmany
    from [Stats]
    

    Or even do the aggregating at the query level if you can:

    select
      [user]
      , monthYear = left(datename(mm, callsdate), 3) + '-' + cast(datepart(yy, callsdate) as char(4))
      , howmany = sum(howmany)
    from [Stats]
    group by [user]
      , monthYear = left(datename(mm, callsdate), 3) + '-' + cast(datepart(yy, callsdate) as char(4))
    

    With this dataset at the report level you can easily group on the monthYear column as required for your Tablix.

    You’ll run into an issue with getting correct ordering; I would add another calculated column to the dataset:

    select
      [user]
      , monthYear = left(datename(mm, callsdate), 3) + '-' + cast(datepart(yy, callsdate) as char(4))
      , monthYearOrder = cast(datepart(yy, callsdate) as char(4)) + right('0' + cast(datepart(mm, callsdate) as char(2)), 2)
      , howmany = sum(howmany)
    from [Stats]
    group by [user]
      , monthYear = left(datename(mm, callsdate), 3) + '-' + cast(datepart(yy, callsdate) as char(4))
      , monthYearOrder = cast(datepart(yy, callsdate) as char(4)) + right('0' + cast(datepart(mm, callsdate) as char(2)), 2)
    

    This will allow you to group and order by monthYearOrder but still use the text from monthYear.

    If you can’t aggregate at the query level, you could do something similar with an expression in the report, e.g. as a calculated column in the dataset:

    monthYear: =CDate(Fields!callsdate.Value).ToString("MMM-yyyy")

    monthYearOrder: =CDate(Fields!callsdate.Value).ToString("yyyyMM")

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

Sidebar

Related Questions

I have table called stats . In am inserting yes or no in the
I have a table named stats player_id team_id match_date goal assist` 1 8 2010-01-01
I have table to collect Contacts information if contact have more than one contact
I have 2 tables, tbl_students & tbl_inv. The student table holds all information for
I have an app with an SQLite database for storing information for a user's
I have a table with that contains information that I would like to show
I need to allow a user to process some data. Data is say 100
I have data for a game where in one table are the game stats
I have a large table with all of the state and county information in
I have three master tables for location information Country {ID, Name} State {ID, Name,

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.