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
acg
Resolver I
Resolver I

Create Conditional column based on several conditions

How do I write a conditional statement that creates a new variable 'procedures to verify new customer 0/1' based on the condition that 'v_QNA'[Answer] = "Yes"   and 'v_QNA'[Question Code]= " Q0056" ?

 

It is probably easier to simply create a new conditional column in the Transform Tab, but I think it only works with 1 condition only. 

Any suggestions?

Why the below does not work? 

 

procedures to verify new customer 0/1 =
IF
(
'v_QNA'[Answer] = "Yes" && 'v_QNA'[Question Code]= " Q0056",1,0
)
 
 
 
1 ACCEPTED SOLUTION
shreyamukkawar
Resolver II
Resolver II

Hi @acg ,

 

1. Create new column as

procedures to verify new customer 0/1 = IF(Sheet1[QNA]="yes" && Sheet1[QNA code]="Q0056",1,0)  
output:
shreyamukkawar_0-1676267266892.png

 

 

Best Regards,
Shreya

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

View solution in original post

1 REPLY 1
shreyamukkawar
Resolver II
Resolver II

Hi @acg ,

 

1. Create new column as

procedures to verify new customer 0/1 = IF(Sheet1[QNA]="yes" && Sheet1[QNA code]="Q0056",1,0)  
output:
shreyamukkawar_0-1676267266892.png

 

 

Best Regards,
Shreya

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

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.