Viewing 15 posts - 1,291 through 1,305 (of 3,500 total)
Re-reading my question, you're right... that's not answerable as stated. I'm doing this in PowerBI / DAX, so I have a simple star schema with Customers and Sales ...
May 12, 2018 at 4:37 pm
Henric,
Nice post for a rookie. Welcome to SSC. Here's a script to create the table and populate it with some data... I added a few extra records to make...
May 3, 2018 at 10:43 pm
LOL. I just did that yesterday... except it was above my head.
April 27, 2018 at 4:00 pm
Maybe use a Matrix? hard to say without more details or a dummy dataset.
April 27, 2018 at 3:32 pm
...and post the CREATE TABLE script for the 'PersonalProfiles' table... just want to make sure that you've defined the columns properly. Using the wrong datatype could cause unexpected results.
April 26, 2018 at 5:07 pm
April 26, 2018 at 3:48 pm
One way to do this is to use a Calendar table, then you can filter for Month/Year.
Otherwise, you'd have to use something like:
WHERE [EventDate] >= '01-Jan-2018'...
April 24, 2018 at 4:33 pm
you never check the destination table for existing records. Why not?
April 22, 2018 at 2:47 pm
This should give you a start (although you might need a Calendar table to join to so you can PARTITION wherever you want.)
https://blog.bertwagner.com/heres-a-quick-way-to-generate-a-running-total-in-sql-server-f5654d310030
April 21, 2018 at 5:09 pm
April 17, 2018 at 6:50 pm
You'd just wrap this part in the INSERT statement:
SELECT *
FROM Ranked
WHERE Ranked.Rnk < 4
ORDER BY Ranked.StoreNo,
Ranked.Rnk DESC
(well, you'd have to expand the *...)
April 4, 2018 at 6:37 pm
One way of doing this is to wrap your query in a TOP predicate --- I'm using AdventureWorks2014 (because being able to test my answers hopefully keeps me from making...
March 28, 2018 at 7:19 pm
Just gonna throw this out there...
What if you created a few variables in your report and grabbed the population size from somewhere? Then you can just divide by that?...
March 28, 2018 at 2:21 pm
Maybe it's me, but I think the table design they gave you (if accurate) is horrible. Subjects are facts/information, and don't really belong in column names. Would be a lot...
March 28, 2018 at 11:41 am
NineIron - Wednesday, March 28, 2018 7:01 AMThanx but, I was hoping for something I can use as a field value.
You should...
March 28, 2018 at 7:04 am
Viewing 15 posts - 1,291 through 1,305 (of 3,500 total)