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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

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

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.