<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Query for SCCM required updates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2259839#M54604</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I'm building in Power Bi reports for our SCCM (System Center Configuration Manager).&lt;/P&gt;&lt;P&gt;It's already connected and I'm pulling all data from the SCCM SQL server.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this article:&amp;nbsp;&lt;A href="https://thesleepyadmins.com/2020/03/30/mecm-check-for-all-updates-that-are-required-but-not-deploy-sql-query/" target="_blank"&gt;https://thesleepyadmins.com/2020/03/30/mecm-check-for-all-updates-that-are-required-but-not-deploy-sql-query/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there is only this SQL query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select distinct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.DatePosted as ‘Release Date’,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.articleid as ‘ArticalID’,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.Title,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Update_Required=(case when UCS.Status=2 then ‘Yes’ end),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CS.NumMissing,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Updates_Deployed=(case when UI.IsDeployed=0 then ‘NotDeployed’ end),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.InfoURL as InformationURL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from V_UpdateComplianceStatus UCS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;join v_UpdateInfo UI on UI.CI_ID=UCS.CI_ID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;join v_Update_ComplianceSummary CS on CS.CI_ID=UCS.CI_ID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE UCS.Status=2 and UI.IsDeployed=0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;order by NumMissing desc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Dec 2021 15:27:41 GMT</pubDate>
    <dc:creator>sjanacek</dc:creator>
    <dc:date>2021-12-29T15:27:41Z</dc:date>
    <item>
      <title>Query for SCCM required updates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2259839#M54604</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I'm building in Power Bi reports for our SCCM (System Center Configuration Manager).&lt;/P&gt;&lt;P&gt;It's already connected and I'm pulling all data from the SCCM SQL server.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this article:&amp;nbsp;&lt;A href="https://thesleepyadmins.com/2020/03/30/mecm-check-for-all-updates-that-are-required-but-not-deploy-sql-query/" target="_blank"&gt;https://thesleepyadmins.com/2020/03/30/mecm-check-for-all-updates-that-are-required-but-not-deploy-sql-query/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there is only this SQL query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select distinct&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.DatePosted as ‘Release Date’,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.articleid as ‘ArticalID’,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.Title,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Update_Required=(case when UCS.Status=2 then ‘Yes’ end),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;CS.NumMissing,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Updates_Deployed=(case when UI.IsDeployed=0 then ‘NotDeployed’ end),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UI.InfoURL as InformationURL&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from V_UpdateComplianceStatus UCS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;join v_UpdateInfo UI on UI.CI_ID=UCS.CI_ID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;join v_Update_ComplianceSummary CS on CS.CI_ID=UCS.CI_ID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE UCS.Status=2 and UI.IsDeployed=0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;order by NumMissing desc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 15:27:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2259839#M54604</guid>
      <dc:creator>sjanacek</dc:creator>
      <dc:date>2021-12-29T15:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Query for SCCM required updates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2259845#M54605</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="348638" data-lia-user-login="sjanacek" class="lia-mention lia-mention-user"&gt;sjanacek&lt;/a&gt; , you can bring these tables in power bi and join &lt;EM&gt;CI_ID&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can create a calculated column for this&lt;/P&gt;
&lt;P&gt;if (V_UpdateComplianceStatus [Status]=2 , "Yes",blank())&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 15:42:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2259845#M54605</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-29T15:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query for SCCM required updates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2260914#M54672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found a pbix-template for SCCM and got now another solution, where I'm using this at the beginning:&lt;/P&gt;&lt;P&gt;= SQL.database ("servername", "databasename", [query=..........])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this I can work now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and have a greate new year!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 09:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Query-for-SCCM-required-updates/m-p/2260914#M54672</guid>
      <dc:creator>sjanacek</dc:creator>
      <dc:date>2021-12-30T09:55:16Z</dc:date>
    </item>
  </channel>
</rss>

