Viewing 15 posts - 121 through 135 (of 3,475 total)
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
Martin,
Oh, like thaaaaaat!!! That's a lot to digest, but I have my Ralph Kimball secret decoder ring working. Makes sense! now to figure out how to create a table function...
June 11, 2024 at 4:14 am
Wow, Martin! Thanks! I understand most of it. The part I was waaaay wrong on is that YES, the changing prices DO get somewhat merged into the "Recipe"/ProductIngredient table. (I...
June 11, 2024 at 3:59 am
Eirikur,
(Oh wait, before I go too far, all of this mess is in DAX/PowerBI... "Run away, run away!" --King Arthur)
What do you mean by Scopes? ISINSCOPE() kinds of scopes? the...
June 11, 2024 at 2:53 am
There's a Sales fact, but that part is easy, once all the dimension stuff is fixed, so I left it out. Product is related to Sales too. I'm just having...
June 6, 2024 at 4:41 pm
I always think of EXISTS as being useful for testing if one table has ANY related records in another. (So the exact records in the related table aren't important to...
May 9, 2024 at 8:11 pm
At least the cert exams when I did them forced me to learn about and use features I didn't know about. That part was super useful.
May 8, 2024 at 7:12 pm
Viewing 15 posts - 121 through 135 (of 3,475 total)