Report grouped by month, need months with no data to appear.
In my report, I have the data grouped on a formula field that concatenates month and year, so all of my months are returned in order with summary data for the months in headder along with the group name. The details are supressed.
I have two issues.
1) I need the headders to show up for all months, even months with no data. I've had a similar issue in the past, which I've worked around, but I was grouping based on a finite ordinal set that existed in my database. I simply let in a little more data than I needed, and supressed the extra rows. This isn't going to work here.
2) I need the zeroed data points to appear in a graph. Right now, the graph just ignores months that don't exist in the dataset, and as a result the time scale isn't an accurate representation of the actual data trend. ie: if Jan was 13, Feb was 0, and March was 13, on the graph, the line is continuous from 13 to 14. For a user who isn't paying attention to the axis would miss that there is actually a zero in there.
If you download the "Reports that demonstrate subreport functionality" zip file from this link:
https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm, there is a report in there called "Creating_Fake_Records.rpt" which may help you.
Similar Messages
-
SSRS Report Group By Vertical and Horizontally with Detail Data
Dears,
I am expecting your help to achieve blow task in SQL Reporting Service. I am pulling data from a SharePoint List and my data set looks like below; and, I need to show those data in following layout;
Group by: Destination and Week (vertical, horizontal)
Detail : JobNo and VessleName (no aggregation and should show detail text data)
How could I show that in SSRS Report? I tried Matrix and couldn’t get that layout yet; it shows me always 1<sup>st</sup> Job NO and Vessel Name for each Destination, not showing the rest.
Kindly share with me guide lines attached is for your reference.
ASP.Net, C#.Net, SQL Server ,Win32Dear Ricardo,
I was trying your project with my real data and was not success.
Also, when I check in details with my test data, I saw that Job2 is missing in your output.
I can not find any reason why it is missing, could you please tell me what could be the reason?
Also, it takes first lines of each Destination form below data as well, appropriate if you can test below data also.
with SampleTable(Destination,WekkNo, JobNo, VesseName, ATA)
as
Select 'GENOA-ITGOA' , '7','J507979', 'AL BAHIA', '14/2/15' Union All
Select 'GENOA-ITGOA' , '7','J507981', 'AL BAHIA', '14/2/15' Union All
Select 'GENOA-ITGOA' , '7','J508342', 'SABYA', '14/2/15' Union All
Select 'GENOA-ITGOA' , '7','J508343', 'SABYA', '14/2/15' Union All
Select 'GENOA-ITGOA2' , '7','J508418', 'SABYA', '14/2/15' Union All
Select 'GENOA-ITGOA2' , '7','J508342', 'SUDAIR', '14/2/15' Union All
Select 'GENOA-ITGOA2' , '7','J508343', 'SUDAIR', '14/2/15' Union All
Select 'GENOA-ITGOA' , '8','J508418', 'SUDAIR', '20/2/15' Union All
Select 'GENOA-ITGOA' , '8','J508606', 'JAZAN', '20/2/15' Union All
Select 'GENOA-ITGOA' , '8','J508607', 'JAZAN', '20/2/15' Union All
Select 'GENOA-ITGOA2' , '8','J508608', 'JAZAN', '20/2/15' Union All
Select 'GENOA-ITGOA2' , '8','J509006', 'HANJIN ELIZABETH', '20/2/15' Union All
Select 'GENOA-ITGOA' , '8','J509007', 'HANJIN ELIZABETH', '20/2/15' Union All
Select 'GENOA-ITGOA' , '8','J509129', 'HANJIN MALTA', '20/2/15' Union All
Select 'GENOA-ITGOA2' , '10','J509130', 'HANJIN MALTA', '7/3/15' Union All
Select 'GENOA-ITGOA2' , '10','J509326', 'SUDAIR', '7/3/15' Union All
Select 'GENOA-ITGOA' , '10','J509327', 'SUDAIR', '7/3/15'
Select * from SampleTable
ASP.Net, C#.Net, SQL Server ,Win32 -
Sample report for filling the database table with test data .
Hi ,
Can anyone provide me sample report for filling the database table with test data ?
Thanks ,
Abhi.hi
the code
data : itab type table of Z6731_DEPTDETAIL,
wa type Z6731_DEPTDETAIL.
wa-DEPT_ID = 'z897hkjh'.
wa-DESCRIPTION = 'computer'.
append wa to itab.
wa-DEPT_ID = 'z897hkjhd'.
wa-DESCRIPTION = 'computer'.
append wa to itab.
loop at itab into wa.
insert z6731_DEPTDETAIL from wa.
endloop.
rewards if helpful -
Crystal Report-Amount in Words Need correction and Delivery date.
Dear Experts,
Issue 1
In crystal reports i'm converting Amount in to words using the following formula. In that i am getting Every thing in Uppercase with - i.e. RUPEES ONE THOUSAND-FIVE HUNDRED AND .
I need in Sentence case i.e all First Letters in Capital and also want to Remove '-'
Amount in Word
numbervar RmVal:=0;
numbervar Amt:=0;
numbervar pAmt:=0;
stringvar InWords :="Rupees ";
Amt := {OPOR.DocTotal};
if Amt > 10000000 then RmVal := truncate(Amt/10000000);
if Amt = 10000000 then RmVal := 1;
if RmVal = 1 then
InWords := InWords + " " + towords(RmVal,0) + " crore"
else
if RmVal > 1 then InWords := InWords + " " + towords(RmVal,0) + " crores";
Amt := Amt - Rmval * 10000000;
if Amt > 100000 then RmVal := truncate(Amt/100000);
if Amt = 100000 then RmVal := 1;
if RmVal = 1 then
InWords := InWords + " " + towords(RmVal,0) + " lakhs"
Else
If RmVal > 1 then InWords := InWords + " " + ToWords(RmVal,0) + "Lakhs";
Amt := Amt - Rmval * 100000;
if Amt > 0 then InWords := InWords + " " + towords(truncate(Amt),0);
pAmt := (Amt - truncate(Amt)) * 100;
if pAmt > 0 then
InWords := InWords + " and " + towords(pAmt,0) + " paisa only"
else
InWords := InWords + " only";
UPPERCASE(InWords)
Issue 2.
At Delivery terms I'm using the following formula to display the delivery data. If the document date and due date is same it will print Delivery Immediate otherwise it should calculate the Delivery date from document date, but now it's printing DocDue date.
I need to calculate Delivery Date = DocDuedate - DocDate.
If {OPOR.DocDate} = {OPOR.DocDueDate} Then
"2. Delivery immediate"
Else
"2. Delivery on or before " & {OPOR.DocDueDate}
Thanks
KamalHi
Try this formula
numbervar RmVal:=0;
numbervar Amt:=0;
numbervar pAmt:=0;
stringvar InWords :="Rupees ";
Amt := {@GrandTotal} ;
if Amt > 10000000 then RmVal := truncate(Amt/10000000);
if Amt = 10000000 then RmVal := 1;
if RmVal = 1 then
InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crore"
else
if RmVal > 1 then InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crores";
Amt := Amt - Rmval * 10000000;
if Amt > 100000 then RmVal := truncate(Amt/100000);
if Amt = 100000 then RmVal := 1;
if RmVal = 1 then
InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " lakhs"
Else
If RmVal > 1 then InWords := InWords + " " + ProperCase (ToWords(RmVal,0)) + " Lakhs";
Amt := Amt - Rmval * 100000;
if Amt > 0 then InWords := InWords + " " + ProperCase (towords(truncate(Amt),0));
pAmt := (Amt - truncate(Amt)) * 100;
if pAmt > 0 then
InWords := InWords + " and " + ProperCase (towords(pAmt,0)) + " paise only"
else
InWords := InWords + " only";
ProperCase(InWords)
Regards
Vivek -
Helpdesk Report Group Users - Cannot create a connection to data source 'DataSource1'
Getting the following error for a User accessing the report who is a member of the reporting group. If I add them as a sysadmin in SQL they can get access. What permissions need changing for this user group?
Cannot create a connection to data source 'DataSource1'. ---> System.Data.SqlClient.SqlException: Login failed for userDave,
For a complete understanding of the permission and groups, I would rather suggest you to do the installation of the MBAM components in a single server infrastructure in a test environment.
Create the following domain security groups and use it during the configuration of the MBAM roles:-
1) MBAM Advanced Helpdesk Users
2) MBAM Helpdesk Users
3) MBAM Report Users
4) MBAM Read and Write Access
5) MBAM Read Only Access.
Create an application pool account and create a login in SQL for it. Use it only during:-
1) Configuration of "Compliance and Audit Database connection"
2) Configuration for All Web Applications.
If your application pool account is not a domain administrator, the run the following powershell command to set the service principal name :-
Setspn
-s http//<FQDN of MBAM Web Server> domain\<Application pool account>
Make sure the application pool account must be trusted for delegation.
That's all you need to do. Then after the installation you can check the properties of each group in SQL to verify the rights and permission assigned during the installation.
Regards, "Gaurav Ranjan" =========== NOTE: Mark as Answer and Vote as Helpful if it helps ======= -
Need help with saving data and keeping table history for one BP
Hi all
I need help with this one ,
Scenario:
When adding a new vendor on the system the vendor is suppose to have a tax clearance certificate and it has an expiry date, so after the certificate has expired a new one is submitted by the vendor.
So i need to know how to have SBO fullfil this requirement ?
Hope it's clear .
Thanks
BonganiHi
I don't have a problem with the query that I know I've got to write , the problem is saving the tax clearance certificate and along side it , its the expiry date.
I'm using South African localization.
Thanks -
Need help with Rollback data if there is error in Data load
Hi All,
We are trying to load data to Oracle 11g database. We want a trigger, procedure or something like that to rollback the data if there are errors in load. Is it possible to do rollback after all the records has been parsed ? So if we try to load 100 records and if there are 30 records with error, we want to rollback after all the 100 records are parsed.
Please advice.>
Thanks for the suggestion. I'll try that option. So currently we are only loading data that is validated and erroneous records are rejected using trigger. So we don't get any invalid data in table. But Now users are saying that all the records should be rejected if there is even one error in the data load.
>
I generally use a much simpler solution for such multi-stage ETL processes.
Each table has a IS_VALID column that defaults to 'N'. Each step of the process only pulls data with the flag set to 'Y'.
That allows me to leave data in the table but guarantee that it won't be processed by subsequent stages. Since most queries that move data from one stage to another ultimately have to read table rows (i.e. they can't just use indexes) it is not a performance issue to add a predicate such as "'AND IS_VALID = 'Y'" to the query that accesses data.
1. add new unvalidated data - automatically flagged an invalid by default of 'N" on IS_VALID column
2. run audit step #1 - capture the primary key/rowid of any row failing the audit.
3. run audit steps #2 through #n - capture error row ids
4. Final step - update the data setting IS_VALID to 'Y' only if a row passes ALL audits: that is, only if there are NO fatal errors for that row captured in the error table.
That process also allows me to capture every single problem that any row has so that I can produce reports for the business users that show everything that is wrong with the data. There are some problems that the business wan't to ignore, others that can be fixed in the staging tables then reprocessed and others that are rejected since they must be fixed in the source system and that can take several days.
For data that can be fixed in the staging tables the data is fixed and then the audit is rerun which will set the IS_VALID flag to 'Y' allowing those 'fixed' rows to be included in the data that feeds the next processing stage. -
Hi, I need help with the dates of plugins added to my browser
Hi I need to know what date a plugin was installed on my browser.
openh264 / video codec provided by cisco systems.
If you can't help, please point me in the direction of someone who can?
Any help greatly appreciated.The new "OpenH264 Video Codec provided by Cisco Systems, Inc." plugin that now shows up in the Firefox Add-ons Manager Plugins list was added in Firefox 33.0. It's installed in a subfolder of your [[Profiles|Firefox profile folder]], which you can confirm by typing '''about:plugins''' in the Firefox address bar to bring up a list of installed plugins (details [http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins here]) and checking its "Path" entry .
The first link in the [https://www.mozilla.org/en-US/firefox/33.0/releasenotes/ Firefox 33.0 release notes] under What’s New, has this:
'''New''' | [http://andreasgal.com/2014/10/14/openh264-now-in-firefox/ OpenH264 support] * (sandboxed)
[*] Quoted from the linked page, http://andreasgal.com/2014/10/14/openh264-now-in-firefox/
(which also includes a [https://andreasgal.files.wordpress.com/2014/10/openh264.jpg screenshot] of the Add-ons Manager entry):
<blockquote>Today in collaboration with Cisco we are shipping support for H.264 in our WebRTC implementation. </blockquote>
<blockquote>Cisco has agreed to distribute OpenH264, a free H.264 codec plugin that Firefox downloads directly from Cisco.</blockquote>
<blockquote> Note: Firefox currently uses OpenH264 only for WebRTC and not for the <nowiki><video></nowiki> tag, because OpenH264 does not yet support the high profile format frequently used for streaming video. We will reconsider this once support has been added. </blockquote>
See also:
*https://wiki.mozilla.org/Media/WebRTC
*https://wiki.mozilla.org/GeckoMediaPlugins -
Need help with enhanced data source in Production system
Hello Gurus,
1. I enhanced a datasource in BW and populated the field using customer exit using CMOD function. In Dev system, i dont have much data, so I deleted the whole data and did full load.
what shud I do in Production side, so that Delta wudnt be affected??since in production, we have millions of records, we wont do full load., what is the best way to populate the field in production after transporting the datasource to production without disturbing delta's, to reflect the new field for previous years data???
2. can we put 0customer and 0material in the same dimension?? how its going to affect the performance?
Thanks in advance.,
Best Regards,
PavanHi,
Please see this
1.
see this thread
populated the new field with historic data
2. can we put 0customer and 0material in the same dimension?? how its going to affect the performance?
Its better not to use them in a single dimension because one customer and take more than one material so if you have 100 customer and 1000 materials this combination will generate a large number of records. Its always better to keep characteristic which are having 1:N relation ship in one dimensional in you case customer and material will have an M:N type of relationship.which will result in slow performance.
Regards,
Ravi -
Crystal Reports XI R2 SP 6 - Issue with setting Data Source Location
Hello,
After some initial difficulty instally CR XI R2 with SP 6 on a windows XP machine (see thread Error on installation of CR XI R2 SP6), the Crystal Reports environment seemed fine, however, when I tried resetting the datasource location on an ODBC datasource between a development and production server, I get the message 'Some Tables could not be replaced as no match was found....' The tables in the two databases are identical so that isn't the issue.
Here is some additional information
The issue seems related only to DSN's that point to a progress database. I am able to reset datasource locations for DSN's that use the SQL server driver and also for those that use the XML CR ODBC XML Driver 5.0. I am not able to reset the datasource locations on the DSN's that use a Progress Open Edge 10.1 DB driver.
I can create a new report using the DSN for the Progress Driver and add tables, but the table names are coming up as an alias - i.e. if I add a table called PM_Plant, the table added to the report is PM_Plant1.
I also found I can go into existing reports, rename the tables in the database expert to be an alias (appending 1 to the end of the table name), then I am able to repoint them using the datasource location screen.
So it looks like there is a potential work around to the situation, but I didn't run across any information that we should need to do that.
Any recommendations how to fix the issue?
Thanks,Hi Don,
The reports were created with CR XI R1 on my PC initially and the progress drivers have not changed since. The reports were deployed to a server and I pulled them back to my PC to test out any changes after the CR XI R2 SP 6 upgrade. (so there is really only one machine involved, the one that had the upgrade).
I did look at the settings for verifying and tried playing around with those and also with verifying the database but that didn't make any difference.
I wasn't quite sure which registry keys to look at or what the values should be so wasn't able to pursue that option.
All the tables in the progress database use underscores as part of the table name (i.e. PM_Plant, PM_Company), do you think the upgrade to SP6 means that the underscore is now a reserved character and that is why the tables are getting aliased? If so, do you know how to change the alias settings or the list of characters that are reserved?
Just an FYI, I had to downgrade back to CR XI R1 at this point to get work done. If time allows, I'll retry the upgrade in about 5-7 weeks. I discussed the issue with a system admininstrator and we willl try removing the progress drivers and DSN's prior to trying an upgrade again to see if that makes a difference. I'll also make sure to keep track of all Report Options and Options and also registry keys to see what changes.
Thanks -
NEED HELP with contact/data recovery from restore backup before current
My girlfriend synched her iphone 5 to itunes 6 months after purchasing it and wiped all of her data. Instead of clicking "restore backup", she chose "Backup now", which replaced the version we needed. Is there anyway of retrieving the data from that restore?
No, not unless she had a backup of the data she loss.
-
Need help with converting date format to decimal in SSRS expression.
Hi all,
I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.
The TMDTOP column is the decimal data type with date records in yyyyMMdd format.
My return parameter is the following:
=IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd")))
When I try to run the report I get the following error:
Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)
I appreciate if anyone can help me on solving this problem.
Thanks in advance.why casting date to decimal here? Can you explain?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Need help with importing data in partition table
Hi,
DB:8.1.7
OS: win 2003 server
I have a table which is 4.5GB in size. I created a new partition table,with local indexes. I exported the original table with all indexes,triggers and procedures.
After creating the empty partitioned table,i imported the dump file. The data isn't loaded. My questions are:
1) Will the indexes be overwritten?
2) Will the data go automatically in allocated partitions?
3) Do i need to export only table data ignoring indexes,triggers etc?
Best Regards,ateeqrahman wrote:
1) Will the indexes be overwritten?Not if they already exist with the same name, or with the same logical definition (ie. same columns are already indexed)
2) Will the data go automatically in allocated partitions?Yes
3) Do i need to export only table data ignoring indexes,triggers etc?Do you need the triggers? do you need indexes that you haven't created manually? What about grants? -
Need help with infinity data extencion kit
i had bt infinity installed the other day and was not told i need a better wireless card to get full speed i rang up bt and they told me my wireless card is not compatable to go above 20mb so i ask them to send out a data extencion kit and they told me they will need to send out someone and it will cost £205 for it all, Surly this should be part of the install or at least the engineer should have discussed this with me please someone help
Read this topic
http://community.bt.com/t5/BB-in-Home/Data-Extension-Kit/td-p/64869
If any post helps tick the star box on the left
Just cause Im paranoid dont mean they are not out to get me -
Need help with JTable data selection.
Hi,
I have a table with multiple rows and each row has a checkbox.user might select checkbox for any row. i want to capture data of all those rows where checkbox is checked. i need to capture data on the click event of my Jbutton.kindly suggest how to proceed.
Thankshii,
1/ capture = PrintScreen
2/ capture = New Window
3/ capture = somehow to save selected row(s)
... kopik
Maybe you are looking for
-
Connect to MS-SQL Server from a Oracle 10g running under Solaris
Hi, I have the following problem. I want to access a MS-SQL server from an Oracle database (10g Enterprise licence) that is running on Solaris. After googling a while, the following questions arise: - Is it correct that the Oracle Transparant Gateway
-
Hi , can anyone tell me the logic for add one day to sysdate()? Thanks and Regards, Ranjith.
-
I need to know what software to download
I have the Blackberry Curve and tried to use the disk from the original package from ATT but it wasn't great. The guy at the ATT store told me it is better to download a desktop manager from the Blackberry site but I don't know which one I should do
-
Can we still use PEAP-MSCHAPV2 for authenticating to a WPA2-Enterprise network?
L.S, For authenticating to a BYOD wireless network a lot of companies use WPA2-Enterprise connected to a Microsoft IAS/NPS server to authenticate against Active Directory. There seems to be a way to intercept this wireless traffic using a roque acces
-
I don't want visual studio as my homepage/splash page
How can I get Internet Explorer to quit opening to the Visual Studio net framework homepage. I want my own homepage to open.