Finding Records if a field is used more than once in crystal report - crystal-reports

I am just trying to create a report that will give me the Job Numbers if the same address is being used for multiple Jobs.
E.g. if Jobs J1,J2 have same information for the field Job Address, I just need to pull those two Records.
Grouping by job Number helps but it also gives the valid Jobs which have the distinct Job Address.
Any help will be much appreciated . :)))

Related

{EpicorERP} Running a Report to see what users are doing/printing

I was wondering if anyone had a method of running a report to see what a user is doing in Epicor or what they are printing. We are having users report that in the middle of the night, when no one is here at the plant, there are 500 page reports being printed. We are able to see in the print queue who printed what, but the report doesn't match up with anything in our system. We would have for example a report called DailySales.rpt, but in the printer queue it would be something like hb986a87dthr.rpt. Just wondering if anyone else has seen this, or would have a solution that would let me see what a user is printing.
It is not possible to link the print job directly to the SysTask record because neither the print job number, the temp file, nor mac addresses are saved in Epicor for cross referencing. It can be approximated by looking at runtimes and the SysTask record.
You can create a BAQ and BAQ report to display Active and recently completed SysTask information by user. This will give you the report run, start/end times, user, and current status. If you need more detailed information such as the criteria used in the report, you can also join to the SysTaskParam table. Keep in mind that the SysTaskParam table is fully normalized by field name, so you may want to join multiple copies of the table with specific criteria if you need a lot of information. Unfortunately, for "print all pages" jobs, Epicor doesn't know how many pages the report will be until after the data is instantiated and then it is rendered in the reporting software, so you won't be able to get any estimate of number of pages or size.
There are many strategies for mitigating the issue you described. Here are a couple:
You can use criteria within the BAQ to limit the number of records returned for a specific query
You can create a subquery criteria from BAQ parameters to return no data when abnormally open parameters are used for the report (e.g. > 30 days range). You could also use this method with time gates based on the current system time.
Retrain users

Is there a way to get estimated time of completion of a currently running Informatica workflow in Infra metadata tables

I am working with this metadata table REP_WFLOW_RUN currently from Infra DB, to get status about workflows. The column run_status_code shows whether this wf is running, succeeded, stopped, aborted etc..
But for my Business use case I also need to report to Business, the estimated time of completion of this particular work flow.
Example: If suppose the workflow generally started at 6:15, then along with this info that work flow has started I want to convey it is also estimated to complete at so and so time.
Could you please guide me if you have any details on how to get this info from Informatica database.
Many thanks in advance.
This is a very good question but no one can answer correctly :)
Now, you can get some logic like other scheduling tool does.
First calculate average time the workflow takes to complete for a successful run. And output should be a decimal value.
select avg(end_time - start_time )*24 avg_time_in_hr, workflow_name
From REP_WFLOW_RUN
Where run_status_code='succeeded'
Group by workflow_name
You can use above value as estimated time to completion for that workflow. Output should be a datetime.
Select sysdate + avg_time_in_hr/24 est_time_to_complete from dual
Now, this value is an estimated figure and not correct value. So on a bad day, if this takes hours, average value will be bad but we cant do much here.
I assumed, your infa metadata is on oracle.

Is it possible to schedule refresh different parts of a dataset?

I have a report on PowerBI that has many pages/tabs and each one also has alot of data being displayed. As I didn't design this, I'm going through the report to eliminate as much as I can and possibly splitting the report as alot of the data only requries refreshing once a week.
This is where my query comes in, I have information on one page that requires a refresh every two hours over a 12 hour duration, one field of data that requires a daily refresh and two more fields only require refreshing when required.
Is it possible to segment scheduled refreshes throughout a single part of the report, or does scheduled refresh only allow the entire report to be refreshed? (I.E. Sales status is hourly, Outbound status is daily, and sales summary is weekly)
I'd rather avoid having to split reports, as it is very handy to have them on one page; rather than having to open two and view them on multiple monitors.
I am just starting out on PowerBI reports, having been shown enough to get what I need done; but plan to delve further in, this being my first port of call if it is possible.
Thanks for any reponses in advance.
Brian.
No. It's Not Possible.
PowerBI Internal working like Tabular Model.
In Import mode we can not do incremental refresh also.
So other option is you can create Reporting layer and define denormilized with calucaluated columns Reporting tables.( Sales ,summary )
and use Direct query or Refresh and Do ETL for This table.
So you can schedule ETL for specific Tables i.e.Sales or summary.

How to filter information in the dashboard of tableau where has two dimension on it

I'm building up a supervisor scorecard on Tableau, but stuck on filter the supervisor.
There're few criteria that needed to be integrated into the scorecard. Eg. The employees' lateness under each supervisor will be taken into account that supervisor's performance. Also, the supervisor's own lateness will also take into account his performance.
My expectation would be aggregating all the criteria in dashbaord, and filter supervisor's ID or Name to get his scorecard data.
Here is the sample of my data.
Now i've completed all the employee level data. I created multiple worksheet to evaluate the supervisor's performance based on their employees' performance, and filter by 'SupervisorID'
But i'm having a hard time to aggregate supervisor's own performance into it.
If i filter by SupervisorID, the Tableau will still give me employee level data. I've tried to create a set to only put Supervisor inside in a single worksheet, but all I can think of right now is to filter by EmployeeID to get the supervisor level data, but in this way, i'm not able to get the information in dashboard because i was using 'SupervisorID' to filter the supervisor.
Any idea would be helpful for me. Thank you in advance!
I'm having a hard time to aggregate supervisor's own performance into it.
If i filter by SupervisorID, the Tableau will still give me employee level data. I've tried to create a set to only put Supervisor inside in a single worksheet, but all I can think of right now is to filter by EmployeeID to get the supervisor level data, but in this way, i'm not able to get the information in dashboard because i was using 'SupervisorID' to filter the supervisor previously.
Can anybody think of a way for this situation? Any idea would be helpful for me. Thank you in advance!
Could you not filter by the role? This should show the same viz but with only the employees with "Supervisor" as the role.
Edit: I think I misread your need. It sounds like you want to show the supervisor with the total late mins for them and their reporting employees. I think that you might want to create a calculated field that shows the supervisor if the supervisorid is not null else show the employee name. In your example, this field would have lines 1,2, and 4 with "Johnny". You can then use this field in conjunction with your late minutes field. I think this may get you where you want to go.

Job ID owned by SSRS cannot match any Subscriptions on SSRS

I got a problem when I try to identify SQL Agent job that runs a Reporting Services subscription. However, I found there are a few Jobs owned by SSRS cannot match any Subscription. For instance, I have 16 jobs in job agent, but I only could identify 13 of them.
Does anyone have any ideas about this situation? Is there any way to figure it out where the unexpected job come from and trace them?
Appreciate it!!
It takes a bit of footwork, but you can figure this all out by looking in the ReportServer database that you specified at install time or in the SSRS Configuration tool.
The key tables you want to look at is reportSchedule and Subscriptions. Both will create jobs in your SQL Server Agent. The ScheduleID should match the job name. You can match ReportID with ItemID in the Catalog table to get the name of the report.
Here a query you can run to get more info on subscriptions. I made this into a report in SSRS that I review daily. Note: I probably ripped this off from another StackOverflow answer.
select c.Name,s.LastRunTime,s.LastStatus,s.Description,s.ScheduleID
from ReportServer.dbo.Subscriptions as s
left join ReportServer.dbo.Catalog as c
on c.ItemID=s.Report_OID order by LastRunTime desc