Viewing 15 posts - 1,981 through 1,995 (of 3,500 total)
I'm just slow...
This worked:
HighestGrades = SUMMARIZE('Toxicity'
...
April 20, 2016 at 12:10 am
Can't really answer all your questions...
If you have something other than a free version of SQL Server, use SSIS to clean your data prior to writing it to your database.
Tools......
April 19, 2016 at 2:00 pm
I'm okay at SQL, so I sort think of DAX in terms of SQL, which is clearly not the best way to do it. Might have to re-read all...
April 15, 2016 at 8:50 am
happycat,
I was wondering how to do it in DAX without "cheating" (well, if you read Rob Collie's book, he does everything explicitly).
The basic idea of what I wanted was basically...
April 14, 2016 at 5:05 pm
Did you look at the execution plan for the SQL statement? It should tell you where the problems are.
If you're using scalar functions in there, then that could be a...
April 13, 2016 at 4:02 pm
there's no information on the structure of your function. What does your function do?
Not sure what you mean by "executing functions from Table column"... The solution to this might...
April 13, 2016 at 3:18 pm
The sample data doesn't make much sense... how a school could accept more people than applicants is a big weird, but anyway...
CREATE TABLE Applications(
AcadYr INT,
Accepted INT,
Applied INT);
GO
INSERT INTO Applications(AcadYr,Accepted,Applied)
VALUES (2010,100,400),
(2011,200,300),
(2012,300,200),
(2013,400,100);
SELECT...
April 6, 2016 at 7:07 pm
Got Google?
took maybe 15 seconds
April 5, 2016 at 9:27 pm
I think it would be something along the lines of
CALCULATE ( [Total Sales],
DATESBETWEEN(DATEADD("week",-6,Calendar[Date]),Calendar[Date]) )
April 5, 2016 at 8:09 pm
Super convenient that it's called REPLACE in T-SQL and something entirely different in .NET/SSRS, right?
I ended up with this:
=Replace(UCase(Fields!AcctStatus.Value),"CANCELLED","<span style='color:red;'>Cancelled</span>")
Maybe I'm doing it wrong, but it would be super handy...
April 5, 2016 at 6:24 pm
Now I'm confused. LIKE is a SQL keyword. AFAIK, you can't use it in SSRS.
If you're trying to color the word "cancelled" red, then you could do something like...
April 5, 2016 at 1:49 pm
Is the text containing the word "cancelled" static (or there are a limited number of versions of it)?
Might be that I don't know enough about SSRS, but I think you...
April 5, 2016 at 12:58 pm
Joe,
Do you only want to format the word "cancelled"?
This highlights the whole field:
=IIF(InStr(LCase(Fields!AcctStatus.Value),"cancelled")>0,"Red","Black")
(but it depends on what you attach the formatting to).
April 5, 2016 at 12:10 pm
Looks like he's trying to pass multiple values into a stored procedure without using a TVF, or something like DelimitedSplit8K().
This worked for me:
USE tempdb;
GO
CREATE TABLE test (testID int identity,
clientID int);
GO
INSERT...
April 5, 2016 at 10:56 am
You would execute your stored procedure inside the WHILE loop.
WHILE @CurrDate<@EndDate
BEGIN
EXEC myStoredProc @Param1, @CurrDate;
SET @CurrDate = DATEADD(wk,1,@CurrDate);
END
April 1, 2016 at 12:37 pm
Viewing 15 posts - 1,981 through 1,995 (of 3,500 total)