Viewing 15 posts - 1 through 15 (of 19 total)
Found a post about this issue here (unfortunately not fixed): https://social.msdn.microsoft.com/Forums/exchange/en-US/76208374-2846-4476-95a4-53baa1c37e4b/mdx-keywords-are-not-colored-in-the-calculation-script-in-sql-server-data-tools-for-vs-20171542?forum=sqlanalysisservices
November 30, 2017 at 6:04 am
March 1, 2017 at 9:01 am
This has finally been solved.
I had an Microsoft odata driver installed and a package connection manager that used that driver in one of the packages.
Removing that connectoion manager...
March 1, 2017 at 1:33 am
February 27, 2017 at 11:53 pm
fact_sales does have a sales_date but in this case that date should not be used as exchange_rate_date
I should probably have mentioned that it is related to ledger transactions and fact_accounting...
April 12, 2016 at 8:09 am
mister.magoo (3/19/2014)
joakim.fenno (3/19/2014)
Thanks!
You're welcome 🙂
Lets start with the "int" flag version, its does not produce the correct output if you add a value 101 (menas true for month 1, false...
March 19, 2014 at 3:41 am
mister.magoo (3/18/2014)
They all produce the same result, but query...
March 19, 2014 at 1:32 am
Jeff Moden (3/18/2014)
joakim.fenno (3/18/2014)
The bit_flag column contains 12 flag (and is therefore a nvarchar(12)) in the real example
Gosh. That's 24+2 or 26 bytes to store what could be stored...
March 18, 2014 at 2:46 pm
ChrisM@Work (3/18/2014)
ALTER FUNCTION fn_BITWISE_OR
(
@col1 VARCHAR(3)
)
RETURNS VARCHAR(3)
AS
BEGIN
-- try row-wise
DECLARE @LastValue INT
SELECT @LastValue = 000
SELECT @LastValue = @LastValue | d.bit_flag
--...
March 18, 2014 at 12:12 pm
Sean Lange (3/18/2014)
joakim.fenno (3/18/2014)
ChrisM@Work (3/18/2014)
joakim.fenno (3/18/2014)
CREATE TABLE my_table (col1 nvarchar(25) NULL, bit_flag nvarchar(3) NULL)
INSERT INTO my_table VALUES('A', '100'), ('A', '001'),('B', '010'),('A', '001');
expected output from query :
A 101
B 011
The bit_flag column...
March 18, 2014 at 9:59 am
ChrisM@Work (3/18/2014)
-- on a...
March 18, 2014 at 9:56 am
ChrisM@Work (3/18/2014)
joakim.fenno (3/18/2014)
CREATE TABLE my_table (col1 nvarchar(25) NULL, bit_flag nvarchar(3) NULL)
INSERT INTO my_table VALUES('A', '100'), ('A', '001'),('B', '010'),('A', '001');
expected output from query :
A 101
B 011
The bit_flag column contains 12 flag...
March 18, 2014 at 9:50 am
Sean Lange (3/18/2014)
joakim.fenno (3/18/2014)
CREATE TABLE my_table (col1 nvarchar(25) NULL, bit_flag nvarchar(3) NULL)
INSERT INTO my_table VALUES('A', '100'), ('A', '001'),('B', '010'),('A', '001');
expected output from query :
A 101
B 011
The bit_flag column contains 12...
March 18, 2014 at 9:41 am
ChrisM@Work (3/18/2014)
joakim.fenno (3/18/2014)
ChrisM@Work (3/18/2014)
If you can guarantee that your aggregate function would always and only ever generate the two values required by BITWISE OR, then you will find it far...
March 18, 2014 at 9:20 am
ChrisM@Work (3/18/2014)
If you can guarantee that your aggregate function would always and only ever generate the two values required by BITWISE OR, then you will find it far far easier...
March 18, 2014 at 9:10 am
Viewing 15 posts - 1 through 15 (of 19 total)