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 »
SQLBlog Nederland Business Intelligence & Datawarehousing