Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
cosinho89
Contributor II
Contributor II

IF CONDITION

Hello everyone,

I need to create this dimension:

=IF([RATING_PUNTEGGIO] <'45', 'INSUFFICIENTE',
IF([RATING_PUNTEGGIO] >'45 and <'70', 'SUFFICIENTE',
IF([RATING_PUNTEGGIO]='70', 'BUONO',
IF([RATING_PUNTEGGIO]>'70', 'OTTIMO'))))

everything works excluding the and operator.

Someone can help me? 

Thanks

Marco

1 Solution

Accepted Solutions
GaryGiles
Specialist
Specialist

You need to repeat the field name, like:

=IF([RATING_PUNTEGGIO] <'45', 'INSUFFICIENTE',
IF([RATING_PUNTEGGIO] >'45 and [RATING_PUNTEGGIO] <'70', 'SUFFICIENTE',
IF([RATING_PUNTEGGIO]='70', 'BUONO',
IF([RATING_PUNTEGGIO]>'70', 'OTTIMO'))))

View solution in original post

1 Reply
GaryGiles
Specialist
Specialist

You need to repeat the field name, like:

=IF([RATING_PUNTEGGIO] <'45', 'INSUFFICIENTE',
IF([RATING_PUNTEGGIO] >'45 and [RATING_PUNTEGGIO] <'70', 'SUFFICIENTE',
IF([RATING_PUNTEGGIO]='70', 'BUONO',
IF([RATING_PUNTEGGIO]>'70', 'OTTIMO'))))