Viewing 15 posts - 391 through 405 (of 3,475 total)
For example? maybe check out Jeff Moden's article on Crosstabs
January 21, 2022 at 2:44 pm
Your case statement is a bit off... try this:
use tempdb;
go
CREATE TABLE tibbleTransactions(TransactionID INT IDENTITY, TransactionDescription VARCHAR(10), Amount INT);
GO
INSERT INTO tibbleTransactions(TransactionDescription, Amount) VALUES ('Positive',10),('Negative',20),('Positive',20);
SELECT TransactionID, TransactionDescription, Amount
FROM tibbleTransactions;
SELECT...
January 21, 2022 at 4:38 am
Use a running aggregate before you pivot?
SELECT n
, rt = SUM(t.n) OVER (order by n rows between unbounded preceding and current row)
FROM Testdb.dbo.tally t;
tally is just a...
January 19, 2022 at 10:47 pm
Understanding what the different tables describe helps a lot. You don't necessarily have to understand the entire diagram, just the part(s) you're going to use.
January 16, 2022 at 4:18 pm
Look at the database diagram?
January 15, 2022 at 11:27 pm
Just saw a video from Chandoo (Excel MVP), right here. Watch the next to last section - the biggest game changer in Excel in the last year is PowerQuery,...
January 14, 2022 at 12:43 pm
Use sp_ForEachDB to loop over the DBs, and @@ROWCOUNT to collect the number of records affected/inserted?
I'd just create a counter variable and increment it after each insert. Then if you...
January 13, 2022 at 7:26 pm
LEFT(SourceString,4) & FORMAT(RIGHT(SourceString,2),"000")
?
January 9, 2022 at 2:43 am
Thanks for the update. It's pretty much what I expected to have to do... use something (PowerBI, Excel) to generate the PowerQuery and then copy and paste.
January 7, 2022 at 7:09 pm
What was the solution? I'd be interested to know, because I haven't used PowerQuery inside SSIS yet.
(Do you still have to write the PowerQuery in Excel or PowerBI and then...
January 6, 2022 at 3:14 pm
Are you in SSRS or in ReportBuilder?
As far as I know, they should show if you're in SSRS. I haven't used ReportBuilder in so long I honestly don't remember anymore...
January 4, 2022 at 5:31 am
I want so say you create a function that generates the page(s) you need to go to. I saw Reza Rad do it in a class I took. It was...
January 4, 2022 at 12:22 am
It looks like you can now use PowerQuery as a source in SSIS. The nice thing is that Excel can write PowerQuery for you - all you have to do...
January 3, 2022 at 3:26 am
Please help us to help you. Read Jeff Moden's article "Forum Etiquette: How to post data/code on a forum to get the best help", and follow the instructions outlined...
January 1, 2022 at 1:57 am
Viewing 15 posts - 391 through 405 (of 3,475 total)