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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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