Solved

SSRS Report while Rendering to CSV format

Posted on 2014-02-07
4
598 Views
Last Modified: 2014-02-11
I have report it generates two columns

Date                    Spot price
2014-01-10           $100
2014-01-10           $200

while rendering into CSV format I would like to have a file like this. I don't want to repeat the Date value for every record and I want only in the first row.

Date               Spot Price
2014-01-10,$100
,$200
0
Comment
Question by:SURESH0518
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39842266
In Report Builder, Change your group by value..

You can do this by Organization: e.g. Accounting, HR, Engineering, etc.

Instead of by Organization, you can do this by date..

Consider this example..
For the Tablix..
Row Groups..
Date
table_details_ group

Here is one that I am using by department..  You can easily change to by date to get what you are looking for.
tablix design
grouping
And yes, I know when you run this in csv you want it to be a certain way, but I believe that when you run the report and export whether pdf, csv, mhtml, etc. it will export as presented on the screen,
0
 

Author Comment

by:SURESH0518
ID: 39842285
I can do this interactively. But Can I do this while rendering into CSV format not to repeat date value.
0
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39842327
You can do quite a bit with SSRS, but would be simpler to make a copy of the report and set it up to be the way you want in the export?  If you have it one way, and you have to program logic into the export (not saying it can't be done) but, would think a copy of the report in the way you want - would be easier..  There maybe some things you can do in the SSRS subscription to allow/disallow columns or components too.
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 39846573
But Can I do this while rendering into CSV format not to repeat date value.

Why on earth would you want to do that?  That would be really bad CSV design.  Each record in a CSV should be readable on its own, independent from other records.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to setup a best practice sql maintenance plan Transaction logs full 6 70
SSRS 2012 URL 11 57
SSRS Report Runtime Error 20 51
SSRS Access Remotely 5 55
Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now