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
THENNA_41
Post Partisan
Post Partisan

Value compare based on The True or false

I am trying to compare values based on the two columns . If DCL BOM column has DCL value at the same time, DCL column has value  its return True and  DCL has NDCL and DCL column has a blank, its also return True . for false condition  

 

DCL Bom column has a DCL  value and the DCL column have a  blanks are false and  if the DCL BOM column has NDCL  a value,  DCL column also have  its false 

 

DCL Bom         DCL 

 

DCL               DCM PM                    --  true 

 

NDCL                                               -- true 

 

DCL                                                 -- Fasle 

NDCL             DCMPM                    --Fasle 

 

Looking for support thanks in advance

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

try to add a new column with the code below:

Column =
IF(
    OR([DCL Bom]="DCL"&&[DCL]<>BLANK(), [DCL Bom]="NDCL"&&[DCL]=BLANK()),
    TRUE,
    FALSE  
)
 
i tried and it worked like this:

FreemanZ_0-1669612544229.png

 

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

try to add a new column with the code below:

Column =
IF(
    OR([DCL Bom]="DCL"&&[DCL]<>BLANK(), [DCL Bom]="NDCL"&&[DCL]=BLANK()),
    TRUE,
    FALSE  
)
 
i tried and it worked like this:

FreemanZ_0-1669612544229.png

 

@FreemanZ  Thank you for your reply .DCL column  will be differ based on the data its not a static value  

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.

Top Solution Authors