This article will offer you a way to calculate a 4 week moving total in SQL using SQL Server. There are more ways to Rome but this is a way you can use to calculate it using a date dimension.
Read More »Recent Posts
Create a KPI box with an image / text overlap in SSRS
A common wish in SQL Server Reporting is to create an image with a text inside the image. When you are a common user of SSRS, you know this is not so easy. You cannot simply insert an image and a text on top of it. Your layout will be …
Read More »Postcoderange opsplitsen naar losse records
SSRS – Subscriptions in pending status
I had some subscriptions staying in the “Pending” LastStatus. It took me a lot of time to fix this problem. This blog will give you the solution for the problem.
Read More »SSAS OLAP is returning wrong results
Like the title says; my SSAS OLAP cube (SQL 2008R2) was giving me wrong results when selecting a combination of a measure and a fact. I was struggling for days with this issue. I called old colleagues, reading a lot of articles online but no solution yet.
Read More »How to implement Dimension Security in SSAS
I know it was not difficult to implement dimension security in Analysis Services. While it’s not difficult, why did it cost me a lot of days to get this to work? Well, its because you have to do a lot of little settings and it’s easy to make a small mistake …
Read More »Prevent Divide by Zero in SSRS
In a previous post, I wrote about how to prevent the divide by zero issues in Reporting Services. The problem with the custom code I used was that the code returned the value 0 when one of the numbers is 0 or unknown.
Read More »Calculate Lost Customers using T-SQL
A common question in the Business Intelligence world from customers is “how many customers did we lose this year” ? Businesses wants to know this so they can act faster to keep customers doing business with them. In this article, I will help you to create SQL to calculate this …
Read More »How To Find the slowest SQL Queries
This stored procedure displays the top worst performing queries based on CPU, Execution Count, I/O and Elapsed_Time as identified using DMV information. This can be display the worst performing queries from an instance, or database perspective. The number of records shown, the database, and the sort order are identified by …
Read More »Interesting Course about data visualisation from Google
Making Sense of Data Do you work with surveys, demographic information, evaluation data, test scores, or observation data? Are you interested in making the data you collect more useful by organizing it, analyzing it, and applying it in different ways? This self-paced, online course is intended for anyone who …
Read More »How to Refresh Reporting Services Cache?
I am working for a client which uses a Datawarehouse in which the data is loaded once a day during the night. During the rest of the day, nothing changes in the datawarehouse. After a couple of years, the database grows and grows and reports are getting slower and slower. …
Read More »Calculate time in hours and minutes between two dates
Sounds easy right? I want to calculate the difference in hours and minutes between two dates. A good readable notition for my report. I want a format like this: 00:36:53 OR 02:13:45 This can easy be done using a T-SQL Statement like this: CONVERT(nvarchar(64), EindDatum-StartDatum, 108) AS DurationCONVERT(nvarchar(64), EindDatum-StartDatum, 108) AS …
Read More »SSAS: How to format a dimension attribute?
I was looking for a method of formatting a dimension attrbibute in SSAS2008R2 to, for example a currency symbol €. In search of this question, I found out this is not possible within the default SSAS settings (format column). I thougt this was possible just like the measures settings with …
Read More »Powerpivot architectuur
Ik kwam vandaag een leuke pagina tegen op de Microsoft site over de architectuur van Microsoft Powerpivot.
Read More »SSRS2008R2 – Keep Header Visible While Scrolling
Als je in SSRS2008R2 een rapport maakt en je wilt dat de bovenste header vast blijft staan als je naar beneden scrollt dan zal je normaal gesproken verwachten dat de optie “Keep header Visibile While Scrolling” dit regelt. Niets is minder waar.
Read More »Punt en comma verkeerd SSRS
In SSRS kun je binnen een cel aangeven hoe de waarde afgedrukt moet worden. Dit kan wat problemen veroorzaken als je niet weet hoe je bepaalde instellingen moet doen. Punt en comma kan verkeerd worden weergegeven (SSRS Decimals). Neem het getal 100000,12. Dit zou je willen weergeven als 100.00,12. als …
Read More »SSRS Sparkline NU en TREND
De SSRS sparkline is een krachtig grafiekje dat in een oogopslag een trend kan laten zien. Google Finance gebruikt de sparkline bijvoorbeeld om de koers van een aandeel over de dag te tonen terwijl het getal dat je ziet de real-time koers toont. Dat is ook wat je vaak wilt …
Read More »After update trigger
Soms is het handig om een mutatiedatum of mutatieuser bij te houden op een veld, met name in een master data omgeving. Je kunt hiervoor gebruik maken van een trigger op een tabel. Dit moet zowel werken als er nieuwe data wordt ingevoerd als wanneer er data wordt bijgewerkt.
Read More »Dichtstbijzijnde werkdag uitrekenen
Ik had vorige week een leuke uitdaging. In de KPI tabel die ik gebruik voor bepaalde rapportages zijn enkel de normale werkdagen uitgerekend, maandag t/m vrijdag. Feestdagen komen ook voor. De weekenden zijn hier bewust uitgelaten ivm FTE tellingen die anders niet lekker lopen.
Read More »Nederlandse feestdagen in SQL Server
Er is helaas niet een standaard functie in SQL Server om te bepalen of een bepaalde datum een feestdag is. Om dit te bepalen is het handig om gebruik te maken van een datumdimensie zoals hier uitgelegd.
Read More »Doellijn/Stripline in Reporting Services
Binnen SSRS 2008 R2 is het mogelijk om aan een grafiek een doellijn toe te voegen. Dit kan handig zijn om aan te geven wat bijv. de norm is zodat je snel kunt zien welke waarden er over de norm gaan.
Read More »Excel Pivot online publiceren
Ik vond vandaag een leuk artikel over het online publiceren van een Excel Pivot sheet. Ik heb het zelf nog niet uitgetest maar dat ga ik zeker binnenkort eens doen! http://sqlblog.com/blogs/jamie_thomson/archive/2012/08/13/using-pivot-tables-in-the-office-excel-web-app.aspx
Read More »SQL Output naar Excel geeft miljoenen
Het zal vaak gebeuren dat je de uitkomst van een SQL query naar Excel wilt kopieëren om dit door te sturen voor bijvoorbeeld een controle op de cijfers of gewoon voor een simpel lijstje. Je zult dan ook merken dat Excel de getallen zal weergegeven in miljoenen. Dit artikel behandelt …
Read More »PowerPivot Format Percentage
In MS PowerPivot voor Excel kun je zelf calculaties toevoegen aan je draaitabel. Een handig truukje is om de gewenste formatting direct toe te voegen aan de formule. Als je gebruik maakt van een bepaalde deling om een percentage te berekenen is het voor de gebruiker/analist handig om het percentage …
Read More »Calculate DateDiff With Only WeekDays or Workdays
Today, I was working on a fact table for my datawarehouse. I was looking for a function to calculate the number of “normal weekdays” between two given dates I had a record in my Dwh from a HR system with two dates (start-end) and a number of hours “sick” . …
Read More »-
Klantgegevens verrijken met de postcodetabel
In een vorig artikel bespraken we kort wat je met de postcodetabel van Nederland kunt doen. Een …
Read More » -
SQL Server Optimize Insert Performance In 5 Steps
-
SQL 2016 Database Mail not working
-
Postcodetabel van Nederlands + SQL Script
-
Gratis E-Book SQL Server 2016
-
T-TSQL – Create 4 week Moving Total
This article will offer you a way to calculate a 4 week moving total in …
Read More » -
Create a KPI box with an image / text overlap in SSRS
-
SSRS – Subscriptions in pending status
-
Prevent Divide by Zero in SSRS
-
How to Refresh Reporting Services Cache?
-
Microsoft Azure, Amazon AWS, and Google Cloud: The Titans of the Cloud
The cloud computing landscape has never been more competitive. Among the leading contenders in the …
Read More » -
Introducing Data Factory in Microsoft Fabric
-
Understanding Lakehouse, Warehouse, and Datamart: The Differences Between the Three Fabric Objects
-
The Correspondence Between Excel Formulas and DAX Formulas: Why Financial Analysts Should Learn DAX
-
The Future of Business Intelligence: Trends and Innovations in 2023