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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhmiller89
Helper V
Helper V

Auditing machines using power bi

I have an Excel spreadsheet that lists ComputerName and Application. The ComputerName column has repeating values as each machine has multiple applications installed.

 

If all of the required applications are installed on a machine, the machine needs to be marked "Compliant." if any of the applications are missing it needs to be marked "Non-Compliant" 

 

If a machine is "Non-Compliant" I then need to be able to visualize those ComputerNames and which Applications are missing. 

 

Any ideas how to do this is appreciated 

1 ACCEPTED SOLUTION

Hi @bhmiller89 

 

Please see the attached file.

I did have to add an extra table "Applications" and create a relationship with the sample table that you provided, this allows to list applications that are missing.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @bhmiller89 

 

Sure, can you provide a data sample?

 

Best Regards,
Mariusz

Please feel free to connect with me.
Mariusz Repczynski

 

@Mariusz Here's some basic dummy data. If the 5 required applications to make a machine compliant are Word, Excel, Spotify, ShoreTel, and PowerBI, only Mach1 is compliant in the dummy data. Thanks for your help!

 

ComputerName         Application

Mach1Word
Mach1Excel
Mach1Spotify
Mach1ShoreTel
Mach1PowerBI
Mach2Word
Mach2Excel
Mach2Spotify
Mach3Word
Mach3Excel
Mach3Spotify
Mach3PowerBI

Hi @bhmiller89 

 

Try this.

Measure = 
VAR _compliantList = { "Word", "Excel", "Spotify", "ShoreTel", "PowerBI" }
RETURN
    SUMX(
        VALUES( 'Table'[ComputerName] ),
        INT(
            CALCULATE( 
                COUNTA( 'Table'[Application] ), 
                TREATAS( _compliantList, 'Table'[Application] ) 
            ) = COUNTROWS( _compliantList )
        )
    )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

@Mariusz  that worked great to get the values! 

 

Can you assist in helping me list out the Non-Compliant machines and their missing applications? 

Hi @bhmiller89 

 

Please see the attached file.

I did have to add an extra table "Applications" and create a relationship with the sample table that you provided, this allows to list applications that are missing.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.