Apply conditional formatting when a report is exported to CSV format
Hello
OBIEE dasboard has the option to export the report data to CSV format.
But the problem is that on some columns of the report, it uses various different types of conditional formatting that tells, what to display when data is equal to one of those edge cases. So hence the report on the dashboard page shows accordingly which is fine.
But when the report is exported to CSV format, no conditional formatting is applied and all the raw data is shown without any formatting.
Is there any way to make sure that the conditional formatting is applied even in the data exported to CSV format.
thanks
CSV is supposed to be a data dump .. i dont think you can have formatting saved when u download csv file.. try downloading it to excel and changing it to CSV
Similar Messages
-
Apply conditional formatting for a textbox in a matrix that contains an expression
I have a matrix that contains one row, and one of the columns in this row (a field ) contains an expression. I know this field is "Textbox24" but anyway, I have created a placeholder for this field and in Placeholder Properties I have given the
label "PD". Note that the Value in this placeholder shows "Expr" because it contains an expression.
I don't think this is relevant, but just in case, the expression is:
=Code.GetPercentageDifferenceBetweenCurrentAndPreviousValue()
where GetPercentageDifferenceBetweenCurrentAndPreviousValue is custom code for the report which returns a decimal value. This works correctly in Preview mode.
I now want to apply conditional formatting on this field so the colour of the font changes depending on the value of the expression. I clicked on the text box of that field, and in Properties > Color > Expression > I entered
=IIF(Fields!PD.Value >= 50,"Green","Black")
When I go to Preview mode I get the error "The Color expression for the text box 'Textbox24' refers to the field 'PD'. Report item expression can only refer to fields within the current dataset scope or, if inside an aggregate, the specified
data set."
I have tried a couple of other forms of the sytax for Fields!PD.Value but it doesn't work. Is my problem a syntax problem or a scope problem, and how do I solve it?
Thank youFrom your description, PD is not a field so you cannot reference it as a field. You can do what you want by referring to the textbox:
=IIf(ReportItems!Textbox24.Value >= 50."Green","Black")
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
How do I apply conditional formatting using SharePoint Designer 2013?
I'm attempting to apply Conditional Formatting to a list view web part via SharePoint Designer 2013, and I can't seem to find the option to do so.
I've a horrible feeling I'm just being daft, but here's what I've done so far:
- Created a new page (I've tried both web part and wiki)
- Added a list "App part" and saved the page
- Checked-out and opened the page via Designer
- Clicked the "Edit file" option
- Selected the XsltListViewWebPart tag
So far I can't find any options to add it. If I open the Conditional Formatting pane via the View menu it tells me the following:
> To use conditional formatting, select an HTML tag, data value, or
> range of text, and then click Create to specify formatting options.
I've tried selecting the web part tags in all manner of combinations with no luck. In previous version I would have simply selected the previewed data rows in the now-absent Preview pane.
Am I missing something?Create and edit a Wiki Page
Click Inset > Data View and Select “Empty Data View”
Click Inside the <DataSources> tags </DataSources>
Click Insert > Data Source “Your Data Source Name”
Hold down Ctrl button and select the Rows in the order you want them to appear from your “Data Source Details” Window.
After the Rows are selected click on the drop down “Insert Selected Fields as…” at the top of the “Data Source Details” Window.
Select “Multiple Item View” option (This will create the xsl where we need to add the conditional formatting to)
Find the <tr> tag that contains the Row Data. Insert the following right below the <tr> tag:
<xsl:attribute name="style">
<xsl:if test="@FieldName = 'Something'">background-color: #FF0000;</xsl:if>
</xsl:attribute>
I hope this helps. I figured this out by using the old 2010 Designer to figure out the where to place the code and how to do this. -
Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).Hi Tom,
Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
Please explain what you are trying to do.
Regards,
Ian. -
Apply conditional format to hierarchy groups
Hi experts!
(Using obiee 11.1.1.5.0)
I have a report that it has 3 columns
Hierarchical Column // Actual // Diference
Hierarchical column has different calc groups and when I have created this group with Format Option I fill format that I want.
Now I want to apply same format in Actual and Difference column.
I can't do that with conditional format in answers Actual Column because I can't see this group.
How can I achieve this??
Thanks!!My group of hierarchy is a new step in selection steps on table (add new group calc). When I create this new group I can put format (only in this group) but I don't know how to reference Actual column to this group.
Any help? -
Hidden report items with toggle are visible in Excel when a report is exported to Excel.
Hi
I have 4 Bar charts and 4 text boxes in one report in SSRS Report . These charts are hidden based on parameters. I have one visible chart and one text box when report is rendered .
When report is exported to excel 4 charts are visible. Each Bar chart has one textbox in toggle box. If I set toggle to None all hidden charts will be invisible in excel file.
I used iif(Globals!RenderFormat.Name=" EXCEL",False,True)
but it does not work when the chart is toggled by a text box.<v:shape alt="" id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:6in;height:396pt;"
type="#_x0000_t75"></v:shape>Hi Katherine
Thank you for your quick response.
I am working with three versions .(SQL SERVER 2008, 2008 R2 and 2012)
I designed all reports in SQL Server 2008 and uploaded them in other versions.
For example, I have a chart that it is invisible when the report is initially run.
I want to hide this chart in excel when I export it to Excel format.
In SQL Server 2008: If the toggleitem of a chart sets to a text box the chart is visible in excel when it is a hidden item in the report .
I checked in PDF and word format it is fine and hidden items are not displayed.
There is this scenario for SQL Server 2008 R2 and SQL Server 2012. I tested Globals! RenderFormat in two versions but it does not
work. The main issue is toggleitem. If I remove toggleitem from hidden items they are invisible in three versions when they are exported to Excel. I am not sure if I design report in Sql Server 2008 R2 I can hide some
report items with toggle in Excel format or Not?
Thanks -
I have got several (6-7) subreports in the m ain report. Several times client is interested in printing/exporting data of sub-report only for which when they try to export/print sub-report, entire report is getting export and print.
We have upgraded application from crystal 8.5 to crystal 2013 RAS API now. Earlier with crystal 8.5, client was able to export/print only sub-report.
It will be great if somebody can share his/her expertise with us.Hi,
As per my knowledge, currently there are no APIs available to export only subreport.
See the RAS SDK dev guide and API Reference.
http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip
http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip
Try the SAP Idea Place and log an enhancement request.
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications. -
Report output Export to CSV issue
Hi Experts,
I have a Bex Query. After running the report when I export the report in CSV format using "Export to CSV" from the report output screen, the data
is being dumped in different columns And when i try to convert that particular CSV file to Excel as we can only select one single column for delimiting the values using a separator into different cells the data in the other column is being truncated.
Kindly suggest me how to resolve this.
Thanks in Advance,
SushmaHi,
(If anything else on the BW side doesn't help).
Not so long ago I had a similiar problem all data (originally taken from several columns) were in one column - solved it with the help of VB coding.
Sth like this could help you.
Regards, Leszek
Dim tekst As String
last_row = Selection.SpecialCells(xlCellTypeLastCell).Row
Range("A1:Z" & last_row).Select
Cells.Select
Selection.NumberFormat = "@"
For wiersz = 1 To last_row
Cells(wiersz, 1).Select
tekst = Selection.Value
Cells(wiersz, 1).Value = Left(tekst, 21)
Cells(wiersz, 2).Value = Right(Left(tekst, 27), 6)
Cells(wiersz, 3).Value = Right(Left(tekst, 37), 10)
Cells(wiersz, 4).Value = Right(Left(tekst, 50), 13)
Next wiersz -
"No Error" exception when printing report after Export
Hello,
When calling a PrintToPrinter function after an Export of the same instance, the exception with the message "No Error" comes up.
This happens only for certain reports.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at FidelioCrystalNET.CrystalNET.Print() in CrystalNETLib.cs:line 127
Source - "rptcontrollers.dll"
Same error also comes when calling either Refresh or VerifyDatabase methods.
Crystal Reports 2008 Runtime SP2 is installed. Reports using Oracle DB connection.
.NET code uses Framework 2.0
Anybody knows how to fix it?
Thanks
Edited by: Vitaly Gamarnik on Oct 26, 2009 1:07 PMHi Ludek,
I am able to reproduce the problem in a simple test code pure .NET (C#) application.
Here is the code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace CrystalLibTest
public partial class Form1 : Form
private ReportDocument crpe;
private ConnectionInfo connectionInfo;
public Form1()
InitializeComponent();
ReportTest();
public void Init(string service, string user, string password)
connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = service;
connectionInfo.DatabaseName = service;
connectionInfo.UserID = user;
connectionInfo.Password = password;
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Sections sections = reportDocument.ReportDefinition.Sections;
foreach (Section section in sections)
ReportObjects reportObjects = section.ReportObjects;
foreach (ReportObject reportObject in reportObjects)
if (reportObject.Kind == ReportObjectKind.SubreportObject)
SubreportObject subreportObject = (SubreportObject)reportObject;
ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
SetDBLogonForReport(connectionInfo, subReportDocument);
private void AddCurrentValue(ParameterField field, object parameterValue)
ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
parameterDiscreteValue.Value = parameterValue;;
field.CurrentValues.Add(parameterDiscreteValue);
private void setParameter(string parameterName, Object parameterValue)
ParameterField field = crpe.ParameterFields[parameterName];
if (field != null)
AddCurrentValue(field, parameterValue);
private void ReportTest()
crpe = new ReportDocument();
Init("SERVICE", "USERNAME", "PASSWORD");
crpe.Load("c:\\temp\\report.rpt");
SetDBLogonForReport(connectionInfo, crpe);
SetDBLogonForSubreports(connectionInfo, crpe);
setParameter("SP-PARAM1", "param_value1");
setParameter("SP-PARAM2", 1111);
/* about 20 different parameters are here */
crpe.ExportToDisk(ExportFormatType.RichText, "c:\\temp\\export.rtf");
setParameter("SP-PARAM1", "param_value1");
setParameter("SP-PARAM2", 1111);
/* about 20 different parameters are here */
try
crpe.PrintToPrinter(1, true, 1, 65535);
catch (Exception e)
MessageBox.Show(e.Message);
/*here the error comes up*/
I also found that for some different reports, the error comes even when executing first time.
Vitaly -
Show user entered date when ssrs report exported to csv format
Hi All,
How can I show date range parameter entered by user when ssrs report is exported to csv format.
my csv output should look like this....
Date : 01/01/2015 TO 01/31/2015 (user selected dates)
ID,EmpFirstName,EmpLastName,Location
1,Tom,Garry,NY
2,John,Graham,NJ
3,Ron,Lorrie,CA
Thanks,
RH
sqlHi RH,
You can add two textbox at the top outside the tablix and using expression to get the parameter value use have selected to display in the textbox as blew:
TextBox1: =Parameters!Date.Value
TextBox2: =Parameters!To.Value
For Multiple value parameter you can use the expression like : =Join(Parameters!Date.Value,",")
You can rename the two textbox' name in the properties as "Date" and "To" then the two textboxs will display like belkow in the CSV report:
Date TO
01/01/2015 01/31/2015
ID EmpFirstName EmpLastName Location
1 Tom Garry NY
2 John Graham NJ
3 Ron Lorrie CA
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
Conditional Formatting in Discoverer 10g
Hello All,
I have created a workbook and applied conditional formatting to use colour coding basis come conditions.
Now when I export the workbook to excel, formatting is not retained. All colour coding is gone. Is this expected or am i missing something ?
Thanks,
Vishal.Hi
Can I make a recommendation for a great Excel plug-in for relational databases? It is called Excel-DB and is available from here: http://excel-db.net
It is priced at only $395 per user, with a 20% discount for 10 or more. I bought it myself about two weeks ago and have been amazed by its ease of use.
If anyone here does decide to buy it please put the code ASC on your purchase screen. That will let them know who recommended the product to you.
You can also see demos of its functionality by clicking here:
http://www.excel-db.net/demos.htm
I've not seen a better database plug-in for Excel in all my 25 years of working in the industry. A blog posting is in the works but for now you'll have to follow these links and take a look for yourself.
Best wishes
Michael Armstrong-Smith -
Conditional Formating in New Calculated Item??
Hi there,
In pivot table I've created a new calculated item in column that is % calculation of measure value A and B.
I need to apply conditional formatting on new calculated value only. I also want to add % sign on the calculated value.
Previously I modified the data format of measure values to percentage and manage to bring % sign in calculated item. Now I need to show both measure and calculated item in report with measure without % sign and calculated item with % sign
ThanksNo, I don’t think you can do that in New Calculated Item in Pivot Table.
What you can try is pulling another column in your report and try using this formula (case when stmt) in column fx and insert it in pivot table. -
Conditional formating in Pivot Table
Hi All,
I have 3 columns Year, Month & Sales in my pivot table. I have applied conditional formatting to sales column as
if sales < 20 million Red
Sales > 30 million green
Sales between 20, 30 yellow
Now,
I have set the drilldown such that, when i drill down the year it drills down to prod categories --> products --> etc
when i have just year, month & sales everything looks good, but when i drill down to next level ie: product category, the conditional formatting is getting carried to the next level which i dont want to.
Is there any way to make sure that the conditional formatting does not carry forward or give a new set of conditions to the next level.
Thanks in Advance,
VNKWith Navigation, you can customize the report that the parent report goes to when a user clicks on a value (or column). Set your child report with all the columns you want and with whatever conditional formatting you want.
On the value you want the user to click on to go to this child report, click on the format properties (finger icon) and click on the Column tab. Set the Value Interaction to Navigation and point to the child report.
In the child report, on the same column (you need to have the same column in the child report), add an "Is Prompted" filter.
This will give you full control of the conditional formatting you desired and the "drill down" effect. -
SAP Screen Personas - retain the conditional formatting
Hi,
I am currently trying to find a way to retain the conditional formatting (done on the table in a flavor) after the data is exported to a excel spreadsheet.
Also, would like to know if conditional formatting can be implemented on a report (e.g. can I format the MBBS transaction after it opens up on click of a button).
Any assistance on this front would be appreciated.
Regards,
Aaron D'CHi Steve,
MBBS report (refer below screenshot) is a old-style ABAP list report so I guess it possible to apply conditional formatting to it.
Thanks for clearing my confusion.
Regards,
Aaron D'C -
SharePoint 2010 list view web part not showing conditional formatting
when I create conditional formatting in custom list is working fine & when it call through web part page (Data view web part) conditional formatting not showing. data is showing without conditional formatting.
Dinuka M.When you use conditional formatting on some page it is writing inline CSS codes inside that page. thats why when you create a new page and add the same web part to that page, you must edit that page to apply conditional formatting to that
web part.
Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz
When you say edit the page, do you mean edit it in SharePoint Designer, or in SharePoint itself. And is it a case of just editing, then saving the page and it will apply the conditional formatting, or is there a specific property you need to edit, and if so,
what is it?
Maybe you are looking for
-
How is the quality of the iPhone display? Anyone seeing stuck pixels? Mine is free of stuck pixels but incase I find something odd in the 14 day exchange period I want to weigh that against the stuck pixel, which I would hate! How hard is it to remov
-
KEPM - COPA Planning - How to copy from version 1 to Version 2
< MODERATOR: Message locked. Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. > Hi SAP gurus, In KEPM transaction code,I have planned for version 1.Now i wanted to copy the data from version 1 to version 2.what
-
Exporting Eclipse Project -- Missing JARs
Hello, I developed an Application in Eclipse using Oracle Database Drivers. During my Developing I just included the Database Drivers by clicking project/properties/Libraries/Add External Jar. That modifies the Build Path in Eclipse and everything wo
-
Will I need any codec to import a FLV video file in PPro CS4?
Will it import the FLV natively? thanks..
-
Instructions on how to uninstall but no .exe anywhere for windows 8...? Is the link for windows xp-7 actually for 8 as well? or am I not allowed to what my movies that Ive paid apple for?