Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sjanacek
New Member

Query for SCCM required updates

Hi all!

I'm building in Power Bi reports for our SCCM (System Center Configuration Manager).

It's already connected and I'm pulling all data from the SCCM SQL server.

Now I want to have a table which is showing me all the updates which are required and also a column with the number of the devices where the update is required.

 

I found this article: https://thesleepyadmins.com/2020/03/30/mecm-check-for-all-updates-that-are-required-but-not-deploy-s...

 

But there is only this SQL query:

 

select distinct
UI.DatePosted as ‘Release Date’,
UI.articleid as ‘ArticalID’,
UI.Title,
Update_Required=(case when UCS.Status=2 then ‘Yes’ end),
CS.NumMissing,
Updates_Deployed=(case when UI.IsDeployed=0 then ‘NotDeployed’ end),
UI.InfoURL as InformationURL

from V_UpdateComplianceStatus UCS
join v_UpdateInfo UI on UI.CI_ID=UCS.CI_ID
join v_Update_ComplianceSummary CS on CS.CI_ID=UCS.CI_ID
WHERE UCS.Status=2 and UI.IsDeployed=0
order by NumMissing desc

 

I was thinking about to create a new table and running this query to get the data I need. What is the easiest way to "translate" this SQL query into Power Bi (DAX). Or any other idea how I can get this results?

1 ACCEPTED SOLUTION

Hi,

I found a pbix-template for SCCM and got now another solution, where I'm using this at the beginning:

= SQL.database ("servername", "databasename", [query=..........])

 

With this I can work now 🙂

 

Thanks and have a greate new year! 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@sjanacek , you can bring these tables in power bi and join CI_ID

 

you can create a calculated column for this

if (V_UpdateComplianceStatus [Status]=2 , "Yes",blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

I found a pbix-template for SCCM and got now another solution, where I'm using this at the beginning:

= SQL.database ("servername", "databasename", [query=..........])

 

With this I can work now 🙂

 

Thanks and have a greate new year! 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.