Viewing 15 posts - 1 through 15 (of 30 total)
Yes agree that LAG LEAD cannot add rows. I've managed to amend the CTE suggestion to work how I need it, a long with the outer join approach. Basically I've...
November 18, 2015 at 6:48 am
At the moment we are using data from 1st September 2015, and have about 180,000 rows that are made up of 10,000 unique assets.
I'm not sure how I am supposed...
November 17, 2015 at 4:58 am
Thanks Drew, out of curiosity why do you think LAG is not best for the job? I tried the LAG version and your version and the LAG version runs much...
November 17, 2015 at 3:20 am
Thanks Jason, copy and paste error! Fixed in original post 🙂
J Livingston I'll give that a go thanks!!
November 16, 2015 at 6:57 am
Hopefully this is suitable!
Here is the table with my raw data
--===== If the test table already exists, drop it
IF OBJECT_ID('TempDB..#mytable','U') IS NOT NULL
...
November 16, 2015 at 6:37 am
Sample data attached.
The first tab shows the raw data. Asset ID 1 was purchased on 13/11/2015 and sold on 16/11/2015. This is why the only rows that exist are between...
November 16, 2015 at 6:01 am
Thanks for that, but I'm struggling to get it to work!
I've tried to use this SWITCH() statement..
CountMeasure:=SWITCH (TRUE (),FIRSTNONBLANK ( 'ConsolidatedFiles'[AdminSystem], TRUE () ) = "TB", CountA ( [DiligentaCode] ),FIRSTNONBLANK...
July 14, 2015 at 6:38 am
I don't know what to put in the Calculated Member though?
July 14, 2015 at 5:09 am
What would I put in the computed column? I can't put the TOTALMTD function can I?
July 13, 2015 at 10:25 am
I thought as much. Seems as though they've given this power to Power View! 🙁
May 21, 2015 at 7:53 am
Wow, so simple! Thanks 🙂
May 13, 2015 at 7:46 am
Viewing 15 posts - 1 through 15 (of 30 total)