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
dgadzinski
Helper I
Helper I

DAX calculate column - assets

Hello, 

I would like to calculate the column which will contain values like as COMPLIANT, NON-COMPLIANT and ERROR. If we have asset we need to show how is he: COMPLIANT, NON - COMPLIANT or ERROR. 

*Asset = server which has a specified number of settings

General rules:

  1. The first one: NON - COMPLIANT: We have assets which have
  • at least 1 settings compliant
  • at least 1 settings non - compliant 
  • at least 1 settings error 

Anything that has at least one non - compliant value = NON - COMPLIANT 

 

  1. The second one: ERROR: We check if there are any assets with compliant and error values, if so = ERROR 

 

  1. At the end: If we have vaule only for compliant = COMPLIANT 

 

Here is PBIX file: https://1drv.ms/u/s!AgEIVveTY4GymiLgMa04vFAHjw0C?e=NCZPQf 

Could you help me, please

1 REPLY 1
grantsamborn
Solution Sage
Solution Sage

Maybe try this:

zColumn = 
    IF(
        [Non-Compliant] > 0,
        "Non-compliant",
        IF(
            [Error] > 0,
            "Error",
            "Compliant"
        )
    )

 

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.