SSRS Alpha Numeric value Search - mdx

My SSRS report is connected to SSAS. I have a parameter called Plant Code. In data base my plant code is in alpha numeric format like '02plant123'. Wen i search the report with a plant code the following error occurs 'plant123' not fount and by default the numerics before the text are getting removed. what kind of conversions are to be made in my MDX so that the numerics are also considered?

Related

#Error in SSRS tablix but ok in SQL side of SSRS

I am using Visual studio 2019 with SDDT 2017.
My report pulls the data direct from SAP B1, all of the fields in the SQL query designer give the output I am expecting. When I use this data in building my tablix I get a #Error.
The calculation that works ok in SQL is WOR1.IssuedQty - OWOR.CmpltQty * WOR1.BaseQty, the answer gives me 11 decimal places
I have narrowed it down to the field WOR1.BaseQty this field is causing the output to Error., the field in SQl shows the type as numeric ( 19,6) ( as it does for the other numeric fields in the table but they all present ok in the ssrs output tablix and as I say calculates all ok.
When I choose the field in the Tablix I get no answer just #Error. I have tried casting and converting the output of the calculation in SQL side and within adding a filed post SQL ( in the dataset properties and within the Tablix,to different data types but still get the error.
I have exhausted google.
I would appreciate some help ….. please....
Thanks
Tony

SQL Server Report Builder Number Formatting

I am creating Reports in SQL Server Report builder.
When I set format of any number fields, in design it is displaying sample value.
For e.g. If I set format 0.00 to one numeric field, it started to display 12345.00
I have 10-12 fields in design, it caused very much confusion.
Is there any solution to change this?
When I open report in Visual Studio, it doesn't display like that.
Check Following screenshots:
In Report Builder:
In Visual Studio:
Finally, I got solution:
There is option in toolbar.
From what you described looks like you have an issue with the regional settings number format.
In your development environment, the decimal values are retrieved correctly, so you got 123.45 instead of 12345.00
In your target environment, the format of the decimal values is different, for example is 123,45 (comma instead of dot) so you get 12345.00

Data type issues faced while exporting report from cognos to excel

When I export report from cognos to excel 2002 or 2007 format I want to convert the numbers to numeric data type.
I face issues after exporting when i try to find sum of certain columns it has values as
23,3456|
2356|
45,686.89|
20.00
due to this comma or other characters its taking the columns as text or some other data type.
so I manually convert to numeric data type and then apply summation functions. Need a solution to avoid this.
I want the decimal values to be decimal and numeric values to be numeric.
The region/language settings of your Cognos install does not match the region/language settings of Excel (which is inherited from Windows). The best solution is to adjust Windows settings to match Cognos or vice-versa.
Alternatively in the report in question you can override the Data Format of the values by selecting them and choosing Data Format from the properties window. From there you can adjust various settings such as forcing a specific data type as well as other options such as whether to use a comma separator.

How to change the parameter type in crystal report of the existing report?

I have a crystal report with 2 subreports. The type of the one of the field got changed in the database from number to string. The main report has no parameters but the subreport has this parameter. Now when I try to run the report I get the error in the record selection formula. A string is expected here. My question is How do I make the type change for that field so that I can run my report. ?
Easy to do. And FUN, too!
Assuming you can change the link to the subreport, you can:
1) create a formula to manipulate that field in the main report, explicitly converting it into the format you neend. Then,
2) use THAT formula as the link to the subreport
Should work a charm, "Bob's yer oncle", and all that.
The solution was to remap the bindings of the report with the changed datatype in the dataset

Pentaho Report Designer: How to create a chart based on an OLAP cube?

Using Pentaho Report Designer, I can successfully display my OLAP cube's data as a table.
But when I want to display the same data as a chart, it always fail saying "CHART.USER_NO_DATA_AVAILABLE".
Actually, I don't really know what I should enter for category-column and value-columns. I tried:
category-column = [Area].[prefecture]
value-columns = [[Product].[Product.Product].[All Products].[productA]]
And any other variation I could think of, but no success. Any idea? Thanks!
My OLAP cube is a Pentaho Analysis: sales count for each product and prefecture.
Just use:
[Product].[Product.Product].[All Products].[productA]
You only need the extra square brackets around the entire fieldname if it's a formula.
Or pick the field from the dropdown.. then you know you have the right one!
If you're doing a timeseries xy, note you have to repeat the category column value as many times as the value column.
also make sure you have a series name too.