Power BI: The key didn’t match any rows in the table

Error: Refreshing Power BI report generates “The key didn’t match any rows in the table” error. Cause: Click “Edit Queries” button. If you do not see the error message, click “Refresh Preview” button. Once you have the error message, click “Go To Error“. Error message will remain, but you should have “Edit Settings” button now,…

May 18, 2018 · 1 min · 189 words · Vitalie Ciobanu

Count Adobe Reader versions

SELECT DISTINCT TOP (100) PERCENT DisplayName0, Version0, COUNT(Version0) AS Total FROM dbo.v_GS_ADD_REMOVE_PROGRAMS GROUP BY DisplayName0, Version0 HAVING (DisplayName0 LIKE ‘%Adobe Reader%’) ORDER BY Total DESC, DisplayName0

October 19, 2012 · 1 min · 26 words · Vitalie Ciobanu

Create a report to count all computer models and manufacturer for computers inside a specific collection

SELECT dbo.v_GS_COMPUTER_SYSTEM.Manufacturer0 AS Manufacturer, dbo.v_GS_COMPUTER_SYSTEM.Model0 AS Model, COUNT(dbo.v_GS_COMPUTER_SYSTEM.Model0) AS Total FROM dbo.v_GS_COMPUTER_SYSTEM INNER JOIN dbo.v_FullCollectionMembership ON dbo.v_GS_COMPUTER_SYSTEM.ResourceID = dbo.v_FullCollectionMembership.ResourceID GROUP BY dbo.v_GS_COMPUTER_SYSTEM.Model0, dbo.v_GS_COMPUTER_SYSTEM.Manufacturer0, dbo.v_FullCollectionMembership.CollectionID HAVING (dbo.v_FullCollectionMembership.CollectionID = ‘CollectionID’) ORDER BY Total DESC, Manufacturer, Model

September 21, 2012 · 1 min · 34 words · Vitalie Ciobanu

Report with computer models and manufacturers

SELECT TOP (100) PERCENT Manufacturer0 AS Manufacturer, Model0 AS Model, COUNT(Model0) AS Total FROM dbo.v_GS_COMPUTER_SYSTEM GROUP BY Model0, Manufacturer0 ORDER BY Total DESC, Manufacturer, Model

September 13, 2010 · 1 min · 25 words · Vitalie Ciobanu

Upgrade Configuration Manager client

Recently I reinstalled ConfigMgr server in my company and was looking for an easy method to upgrade all Configuration Manager clients to 4.00.6487.2000 version. Put some notes on the table and finally made the following plan: Create a report that counts all client versions. (This is optional, just for informational purposes). Report query is:SELECT TOP…

January 14, 2010 · 2 min · 216 words · Vitalie Ciobanu

All reports with links to other reports

Last month, after restoring the only ConfigMgr site and importing new reports, I saw that none of the reports I’m using have a link to another report. To be sincere, this was a problem I didn’t know where to start troubleshooting. Thanks to guys from Microsoft’s ConfigMgr forum, who helped me identify the problem and…

October 2, 2009 · 1 min · 194 words · Vitalie Ciobanu

Create collection with all Windows XP SP 1-2-3 systems

To create a collection with all Windows XP SP1 systems, use the query bellow: select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Caption like “%Windows XP%” and SMS_G_System_OPERATING_SYSTEM.CSDVersion = “Service Pack 1” Similarly, to create a collection with all Windows XP SP2 systems, just change the Service Pack version number: select…

August 24, 2009 · 1 min · 107 words · Vitalie Ciobanu

All .mp3 files on Desktop and My Documents folder

Want to know if your users store mp3 files on Desktop or My Documents folders? Add .mp3 file type to Software Inventory Client Agent properties Navigate to Site Database – Site Management – Site Name – Site Settings – Client Agents and double click Software Inventory Client Agent Select Inventory Collection tab Click the new…

June 16, 2009 · 1 min · 144 words · Vitalie Ciobanu