Viewing 15 posts - 226 through 240 (of 3,479 total)
Could you move a little? I can't see the actual stored procedure.
No, really. Post the code for it. Or did you intend for a game of pin the tail on...
February 20, 2023 at 6:16 am
If you created a running total of hours using a windowing function, then you should be able to tell when an employee is into overtime hours. So if you had...
February 20, 2023 at 1:55 am
Oh okay. Thanks, Grant. At least it's a place to start!
And no DAX required! =)
February 14, 2023 at 6:47 pm
Oh, super cool!!! I guess I'll look around for tutorials on it. You wouldn't happen to know any, would you? (Check learn.microsoft etc?)
February 14, 2023 at 4:29 pm
Can you use this logic to unpivot that part? (so you get a column for each)
=IIF(Parameters!IncludePTO.Value=1,IIF(Sum(Fields!strCategory.Value="Payrole", CInt(Fields!mnyMTDActual.Value)
+
IIF(SUM(Fields!strCategory.Value="OT",Cint(Fields!mnyMTDActual.Value)
+
IIf(Sum(Fields!strCategory.Value="PTO",CInt(Fields!mnyMTDActual.Value)
,IIF(Sum(Fields!strCategory.Value="Payrole", CInt(Fields!mnyMTDActual.Value)
+
IIF(SUM(Fields!strCategory.Value="OT",Cint(Fields!mnyMTDActual.Value)
February 14, 2023 at 2:17 am
Use something like this in your report:
= IIF(Parameter!IncludePTO = "Yes", [Payroll] + [OT] + [PTO Sales], [Payroll] + [OT])
Or use a CASE statement in your T-SQL code to do it.
February 13, 2023 at 11:59 pm
oh, right. That's the part I was going to try to avoid: SSIS.
Also, I wanted to maybe summarize them first, and then query... basically like if I were querying a...
February 13, 2023 at 10:12 pm
So just follow the instructions for it in an article like this?
Create a Format File (SQL Server) - SQL Server | Microsoft Learn
February 10, 2023 at 8:40 pm
oh god no don't use UNION ALL unless you really need to.
Why not just something like this to get all the records you need from each source?
INSERT INTO tempdb.TableName(col1, col2,...
February 9, 2023 at 9:17 pm
This works except for the "Top 4" rule, but you can do that using CROSS APPLY.
use tempdb;
go
CREATE TABLE #Diags ([ChartProcedureId] UNIQUEIDENTIFIER, [DiagnosisCodes] VARCHAR(200))
INSERT INTO #Diags ([ChartProcedureId], [DiagnosisCodes])...
February 9, 2023 at 7:52 pm
Congratulations on finding a relevant post that has the answer you need. Did you try it??
February 7, 2023 at 6:43 pm
Something like this maybe?
use tempdb;
go
CREATE TABLE Reading ( readingDate date, quantity int);
GO
INSERT INTO Reading VALUES ('02/03/2023', 170),('02/02/2023', 90),
('02/01/0223', 160);
SELECT readingDate,
quantity,
prevQty = LAG(quantity) OVER (ORDER BY...
February 4, 2023 at 6:35 pm
I would use LAG([Recordcount],1) OVER (PARTITION BY TableName ORDER BY SomeDate)
February 4, 2023 at 12:39 am
I would use LAG([Recordcount],1) OVER (PARTITION BY TableName ORDER BY SomeDate)
February 4, 2023 at 12:39 am
February 3, 2023 at 4:37 am
Viewing 15 posts - 226 through 240 (of 3,479 total)