Viewing 15 posts - 46 through 60 (of 623 total)
Absolutely, there is enough formatting and layout flexibility in SSRS to arrange the pixels any way you desire. Can you show a preview of the data and the current report...
June 14, 2023 at 9:48 pm
Alternate way. Use the existing date dimension table as an intermediary which should eliminate all conversions. Sorry to be thinking out loud here....
--Staging table in ETL process
DROP...
May 22, 2023 at 7:00 pm
Computed persistent column idea. Renaming tables to Staging and Fact to better represent the actual use case.
--Staging table in ETL process
DROP TABLE IF EXISTS #Staging;
CREATE TABLE...
May 22, 2023 at 6:40 pm
My exposure to data virtualization limited but it seems to be a buzzword. So something for you to consider. The tool I used had drivers for various sources and allowed...
February 14, 2023 at 12:24 am
This author in the comments seems to indicate that the two methods are equivalent.
https://chris.koester.io/index.php/2017/06/21/process-ssas-tabular-tables-partitions-tmsl/
This documentation suggest starting with a Clearvalues.
So my current method is to Refresh-Clearvalues...
February 14, 2023 at 12:04 am
There are some 3rd party 'file watcher' components for SSIS. Not worth it on many levels. https://andyleonard.blog/2017/11/ssis-design-patterns-sniffer-file-watcher/
Like Jeff says poll as frequently as needed, log file found situations,...
February 10, 2023 at 11:32 pm
If you want to avoid an error if zero is passed in you can use this with an IIF:
ROUND(T.C, 6 - FLOOR(IIF(T.C=0, 0, LOG10(ABS(T.C)))))
Yes I have...
January 31, 2023 at 11:35 pm
Does this help?
Provide the table structure of table ing if you want help inserting into it.
;WITH ctevalues AS
(
SELECT
'pasta pollo' AS recp_name,
'paprika' ing_name,
'1' AS qty
)
--Provide...
January 31, 2023 at 6:34 pm
I went forward with the "Convert to float method with rounding to 6 (significant figures)" method above. It matches the Excel calc, avoids arithmetic overflow errors, produces output with enough...
January 31, 2023 at 4:31 pm
I am evaluating the below methods with my full data set. Now 'rounding' to 6. The excel formula uses the excel power function with the caret symbol and matches the...
January 30, 2023 at 3:25 pm
Yes it's a simplified rate of return function but not the more formalized IRR function which Excel has and others have done in tsql. Appreciate the help and will follow...
January 30, 2023 at 12:55 am
'Correct' answer for a negative.
--Excel thinks the correct answer is -20
SELECT
POWER(
CONVERT(FLOAT,80.00/102.93),
CONVERT(FLOAT,365/COALESCE((NULLIF(DATEDIFF(d,GETDATE(),'2023-12-31'),0)),365))
) - 1
--An invalid floating point operation occurred.
SELECT ROUND(T.C, 2 - FLOOR(LOG10(T.C)))
FROM
(SELECT
POWER
(
CONVERT(FLOAT,80.00/102.93),
CONVERT(FLOAT,365/COALESCE((NULLIF(DATEDIFF(d,GETDATE(),'2023-12-31'),0)),365))
) - 1 C) T;
January 28, 2023 at 12:28 am
Thanks all. I am replicating an Excel formula translated into SQL by a business analyst. They refer to it as rate of return. Seems to provide the 'correct' values but...
January 28, 2023 at 12:23 am
I suspect you are returning a duplicate columns. Do not use SELECT * except for testing, ad hoc types of queries. List all your columns explicitly.
January 24, 2023 at 10:57 pm
The create table statements is a technique to generate sample data for the purpose of demonstrating the select query in the dataset. Typically the dataset select query will query directly...
January 24, 2023 at 3:17 pm
Viewing 15 posts - 46 through 60 (of 623 total)