Viewing 15 posts - 61 through 75 (of 3,422 total)
Okay.. I got things working so far... not quite what I want, but closer:
Okay... progress, of a sort.
Excel Source
to
Derived Column (unit price)
to
Data Conversion (Convert PQ and Excel Types to SQL...
July 5, 2024 at 3:14 am
I tweaked my code because I wanted to be able to call the PowerQuery function that reads the PDF once for each file... here's the code (Note: this works perfectly...
July 4, 2024 at 3:33 am
Just wondering... can I put the PowerQuery source inside a For Each File Loop, and then, if I make the PowerQuery a variable, basically do a REPLACE (Yes, I know,...
June 29, 2024 at 3:01 pm
DECLARE @TextToParse VARCHAR(100) = 'for col1, for col2, for col3, for col4';
INSERT INTO #SomeTable(SplitValue)
SELECT TRIM(value) AS SplitValue
FROM string_split(@TextToParse,',');
is one way
June 28, 2024 at 10:41 pm
This is absolutely a post which would benefit immensely from a sample record or two.
I see no reason why you can't use something like DelimitedSplit8K or SPLIT_STRING() to separate the...
June 28, 2024 at 9:48 pm
oh, the 25 minutes. that's the giveaway. use LAG, like I said.
use tempdb;
go
CREATE TABLE ds(
ID INT NOT NULL,
Flag BIT,
EventTime DATETIME2
);
GO
INSERT INTO ds VALUES
(10,0,'2024-06-24 14:20:19.437'),
(11,1,'2024-06-24 14:45:45.027'),
(12,0,'2024-06-24 14:47:35.067'),
(13,1,'2024-06-24 15:14:45.653'),
(14,0,'2024-06-24...
June 25, 2024 at 5:12 am
use LAG()? I tried to use your picture to create a table, but SSMS didn't know what to do with the picture when I tried to paste it in.
In all...
June 25, 2024 at 4:07 am
After fiddling with this for what seems like forever, I finally got most of the way there. The PowerQuery transform works, but the data type transformations do not. I inserted...
June 24, 2024 at 1:08 am
Okay, I got it to work sort of. Had to resort to using Excel to run the PowerQuery on a folder source, filter for PDFs I want, and then once...
June 21, 2024 at 1:38 am
I think I understand how to do it now. Running totals of Sales Amount (Gross Revenue) is straightforward. With the SCD2 of Product, I can store the unit cost of...
June 19, 2024 at 4:31 pm
I haven't touched SSRS in forever (looks in book). You *might* be able to use RunningValue(), but I would do this in T-SQL as it's much easier to do there....
June 19, 2024 at 4:12 pm
Phil,
Not sure I totally answered your question before... To make a long story short(er), I'm basically trying to see/analyze/understand how profitable the business is over time (with the crazy grain...
June 18, 2024 at 6:22 pm
This design works assuming that you may want to add the costs of a product's ingredients, but only ever want to aggregate the selling price of products by using an...
June 14, 2024 at 11:54 pm
but only ever want to aggregate the selling price of products by using an average across time...or the latest value which is similar to what you would have done if...
June 14, 2024 at 2:48 pm
Martin,
I think I understand your answer. (Took a couple days!) Basically, the ProductIngredient table (ProductID, IngredientID, Weight...) factless fact handles the slowly changing dimension by pointing each new version of...
June 13, 2024 at 10:31 pm
Viewing 15 posts - 61 through 75 (of 3,422 total)