cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: Column calculated with IF

@Gelain

 

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




Lima - Peru

View solution in original post

2 REPLIES 2
Highlighted
Community Champion
Community Champion

Re: Column calculated with IF

@Gelain

 

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




Lima - Peru

View solution in original post

Highlighted
Frequent Visitor

Re: Column calculated with IF

Thank you @Vvelarde

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors