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
Gelain
Frequent Visitor

Column calculated with IF

Hi! 

 

Table A: szatendimento

datasaida

statusconta

30/05/2017

NULL

30/05/2017

C

 

I need to create a calculated column where:

 

If the datasaida column is filled and the account status is different from C, generate the letter F, otherwise generate the letter A.

 

I did so:

 

StatusF = IF (SZATENDIMENTO[DATASAIDA] <> BLANK (); "F"; "A")

 

I could not include the condition "and other than C".

 

I ask for help!

 

Thank you.

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Gelain

 

StatusF = IF (SZATENDIMENTO[DATASAIDA] <> BLANK () && SZATENDIMENTO[STATUSCONTA]<>"C"; "F"; "A")




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@Gelain

 

StatusF = IF (SZATENDIMENTO[DATASAIDA] <> BLANK () && SZATENDIMENTO[STATUSCONTA]<>"C"; "F"; "A")




Lima - Peru

Thank you @Vvelarde

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.