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
Anonymous
Not applicable

Check for text in multiple columns if in more than 2 columns

I am trying to create a "baseline" for a list of computers, so if the computer is found in 3 or more columns it should form part of the baseline.

I have tryind with nested "IF" but I do not get the correct returns.

Below is the kind of data I am looking for:



Test BL      

AD Devices ATP DevicesEracentSCCM DevicesSNOW Devices
YesServer1Server1Server1Server1 
NoServer2   Server2
Yes  Server3Server3Server3 



1 ACCEPTED SOLUTION

 @Anonymous  write this calculate column: 

 

 

Column = 
VAR _count = 
    INT('Table'[AD Devices ] <> BLANK()) + 
    INT('Table'[ATP Devices] <> BLANK()) +
    INT('Table'[Eracent]<> BLANK()) + 
    INT('Table'[SCCM Devices] <> BLANK()) + 
    INT('Table'[SCCM Devices] <> BLANK())
VAR _result =
    IF(_count >= 3, "Yes", "No")
RETURN
    _result

 

SpartaBI_1-1658744882264.png

 

 


 

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@SpartaBI I am looking for a check in "Test BL" to check if the device is in 3 or more columns.

 

 @Anonymous  write this calculate column: 

 

 

Column = 
VAR _count = 
    INT('Table'[AD Devices ] <> BLANK()) + 
    INT('Table'[ATP Devices] <> BLANK()) +
    INT('Table'[Eracent]<> BLANK()) + 
    INT('Table'[SCCM Devices] <> BLANK()) + 
    INT('Table'[SCCM Devices] <> BLANK())
VAR _result =
    IF(_count >= 3, "Yes", "No")
RETURN
    _result

 

SpartaBI_1-1658744882264.png

 

 


 

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

SpartaBI
Community Champion
Community Champion

@Anonymous not sure I understand. You can PM me to do a quick zoom if you want.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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