November 6, 2018 at 4:46 pm
Hi,
I created a report and it shows below:
Office Name Employee #
ABC - OFFICE1 2
ABC - OFFICE2 3
ABC - OFFICE3 4
ABCD - OFFICE 1 6
ABCDE - OFFICE 5
How can i group office name with ABC altogether and display as below
Office Name Employee #
ABC 9
ABCD - OFFICE 1 6
ABCDE - OFFICE 5
I hope it makes sense and thank you for your help.
sincerely,
Kenny
November 6, 2018 at 5:08 pm
It would be infinitely clearer if you posted a proper CREATE TABLE script, with INSERTS to populate the table for your sample data. It's really easy to misinterpret the data as you have it right now. Besides, if you provide consumable data, you're much more likely to get a tested answer.
November 8, 2018 at 10:22 am
Sorry. I dont know anything about create table script. Because i was just using the dataset someone created for me.
When i drag and drop into design area, it already displayed something like below.
I just hope i can group the office beginning with ABC -XXXXXX altogether.
Office Name Employee #
ABC - OFFICE1 2
ABC - OFFICE2 3
ABC - OFFICE3 4
ABCD - OFFICE 1 6
ABCDE - OFFICE 5
thank you so much for your thelp
November 8, 2018 at 10:34 am
In SSRS, you can right-click on your dataset, and then choose "Add Calculated Field" and then do something like =LEFT(Fields!Protocol.Value,3)
Then you can group by that calculated field inside your report.
November 8, 2018 at 11:17 am
Thank you Pietlinden.
I tried right click on my dataset. All i see is only "General" option in Dataset Properties. There is no "Add Calculated Field" . thank you.
November 8, 2018 at 11:57 am
Are you authoring your report or just consuming it? Maybe you don't have rights to add columns?
November 8, 2018 at 12:01 pm
I guess i am just consuming it. So is there anything else i can do in SSRS besides "Add Calculated Field" ? thank you.
November 8, 2018 at 12:07 pm
Can you go back to the person that created the dataset and ask them to add it? (super annoying, but I have no idea how else to do it!)
November 13, 2018 at 7:17 am
kennyhuang0108 - Tuesday, November 6, 2018 4:46 PMHi,I created a report and it shows below:
Office Name Employee #
ABC - OFFICE1 2
ABC - OFFICE2 3
ABC - OFFICE3 4
ABCD - OFFICE 1 6
ABCDE - OFFICE 5How can i group office name with ABC altogether and display as below
Office Name Employee #
ABC 9
ABCD - OFFICE 1 6
ABCDE - OFFICE 5I hope it makes sense and thank you for your help.
sincerely,Kenny
If you created the report, you can group the data through the table wizard.
drag the Office field into the row group, then any other fields into the values section.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply