Visibility expression error in ssrs 2008 table column - ssrs-2008

Dears,
I have a table that is grouped by Currency, and when i export to excel it splited into sheets based on Currency Grouping and each sheet has Currency Name.
i need to set Visibility Expression to last 2 columns to be hidden if the currency is USD.
ive tried
=IIF(Fields!Currency1.Value="USD",True,False)but all sheets are hidden
ive tried
=IIF(Globals!PageName="USD",True,False)it gave me error global variables can only be used in headers and footers.
also
=IIF(First(ReportItems!Claim_Currency.Value)="USD",True,False)also error.
can any one advise ,
Regards,

Instead of dataset Field Values use Parameter values to show or hide.
For eg:
=IIF(INSTR(Join(Parameters!Currency.Value,","),"USD")=0,True,False)

Related

How to hide few details of GrandTotal in Tableau

In my report, I am showing both the shape(tickmark) and text as content.
Now I want only the tickmark in the rows,columns and only the text in grandtotal.
But the grandtotal automatically applies the tickmark to the final value also.
Can i show only the value in grandtotal?
You may append dome dummy data here.
Tableau may not have direct options to change mark types for grand total. As a workaround it id suggested that a calculated field may be used instead of using totals so that different marks in both fields may be used.
I created a calc field (in Tableau sample superstore data) named Gtotal as
{FIXED [sub category] : COUNT([People])}
and got this view

Using LIKE in Multi-Value Parameter in Crystal Reports 2011

I am developing a report in Crystal Reports 2011 that has 3 sub-reports pulling data from 3 different databases. I have a Multi-Value Parameter (String) in the main report that passes the input values to the 3 sub-reports which have the same Multi-Value String Parameter.
Sample Input Values are:
P000000030,
P000000930,
P000001730
The user does not want to input the leading alpha character and preceeding zeroes. They want to input the following:
30,
930,
1730
The sub-report pulls all of the records successfully if the user puts the entire string value in with the following Record Selection Criteria, but it does not work with the partial strings input:
{Command.Puchase Order} in {?Pm-?Reference}
Can anyone advise the syntax needed to pull the data in the subreport with the substrings as inputs?
Thanks in advance!
Thank you for your input guys!! I took a bit from everyone and came up with the following solution:
Create a column in the datasource that trimmed out the desired value --> ltrim(regexp_replace(a."po_num",'P',''),'0') as "Puchase Order2"
Modified my Record Selection Criteria to select for either column --> {Command.Puchase Order} in {?Pm-?Reference} or {Command.Puchase Order2} in {?Pm-?Reference}
I really appreciate your input! I am able to deliver the desired solution with your aid.
go ahead and create a formula that calculate the length of your parameter(len({?Pm-?Reference})) and place it suppressed on your report header. Then put below in your record selection formula
right({Command.Puchase Order},{your length formula}) in [{?Pm-?Reference}]
You could add the "number only" version of [Puchase Order] to your datasource...
cast(cast(right([Puchase Order], len([Puchase Order]) - 1) as int) as varchar(9))
as [Puchase Order Number]
...then use that in the select expert. I'm getting the number without the leading P, casting to int to remove the leading zeros, and then back to a varchar for the string comparison in Crystal.
You could do the same with a formula in Crystal reports. Then reference that formula in the select expert. Downside is having to repeat that in all 3 sub reports.

Warnings displayed in cells while exporting jasper report in excel format for different data types used in cross tab measure

I am using iReport 4.5.1. Using cross-tab with measures of different data-types namely date and double data-type. Problem is while exporting report in excel, execl gives warning as number stored as text. I cannot handle this in SQL query. I have tried using property in jasper report. But this property has no effect on excel report. I have seen other posts on stackoverflow.com, none of them matches with this requirement.
To display date data-type i have used in measure expression as,
$V{COL1}.equals("FSI") ? new SimpleDateFormat("dd.MM.yyyy").format(java.util.Date($V{COL2Measure}.toString())) : new Double(Double.parseDouble($V{COL2Measure}))
It displays date properly in execl without any warnings. But after type-casting to double still it shows warnings in excel report for numbers. Also Expression class is "java.lang.String". I cannot change it to number or double beacuse date type does not works.I changed expression class to "java.lang.Object", then it gives error in while type casting to Double that be applied to Object.
Any help on this would be greatly appreciated.

Display string formula not used when exporting from Crystal Reports XI

I've produced a report in Crystal Reports XI where I in one of the fields have used the display string formula to alter the apperance of some data as well as group similar data values to one value (e.g. "neg", "negative", and "-" now all displays as "negative" in the report.)
However, now when I export the report to CSV for delivery to a customer the raw data, and not the display string formula result, is in the export. I've tried all 4 settings with the checkboxes in the CSV export options.
Is there any way to make the display string formatted data beeing exported to the CSV?
Are there any alternate ways of achiving the desired formatting and getting the formatting preserved in CSV export?
Unfortunately, i've not found a way of using the display string formula and achieving the desired result.
Instead create a new formula and replace the object on the report with the new formula.
L

Crystal Report - Placing decimal point

I'm getting an integer value as 2345 but I want to display it as 234.5
is it possible??
To get what you are looking for in a simple fix is like what kingpin stated above. Divide the value by ten. To do this just create a new formula in crystal by going into your field explorer and right clicking on the formula fields section. Under there should be a option to create a new formula. Then in window that comes up put the field you want to manipulate in the formula and then divide that by ten. And there you go. Now use the formula field in the report instead of the original field.
Here is a example of how it could look.
{Table_Foo.value_Bar} / 10
There is a field property for it. Don't have access to crystal reports at the moment, but I know it's there:
Crystal Report Provides an easy to use default thousand separator for numeric Fields. You can use it by checking Thousand Separator from Field Properties.
If you need a customized separator, check Customized Thousand Separator in Crystal Report.
You also might want to find some tutorials on the Crystal Reports themselves if you still have trouble.