Viewing 15 posts - 226 through 240 (of 3,475 total)
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
Make your life easier. Create a stored procedure in the database (or send the query to whoever is allowed to do it) , and then create a dataset in SSRS...
January 26, 2023 at 12:06 am
Reassemble the (date, hour, minute, second) back into a proper date and then use DATEDIFF?
Failing that, you'd have to check if ExitHour < EntryHour, and then use (24 + ExitHour...
January 25, 2023 at 3:27 pm
Sounds like you need to cross join the two tables (creates all possible combinations... be careful with these!), and then subtract out the matches. (It would help us a LOT...
January 23, 2023 at 10:06 pm
That's Oracle syntax. Are you connecting to a SQL Server database?
January 20, 2023 at 8:31 pm
Viewing 15 posts - 226 through 240 (of 3,475 total)