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

Selection of field with If condition

Hi All

I want to pick one value in negative using set analysis with this condition where

CBSDesc = 'TRANSFER OF FUNDS #239983'

CBSAmount<1


then I want the result. This condition is not working in KPI


IF(CBSDesc = 'TRANSFER OF FUNDS #239983' AND CBSAmount<1, sum({$<CBSDesc = {'TRANSFER OF FUNDS #239983'}, 0)

Could you please help with this.

9 Replies
jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this

=Max({<CBSDesc = {'TRANSFER OF FUNDS #239983'}, CBSAmount={'<0'}>} SomeFieldName)


Note: Replace SomeFieldName with your actual field name.


REgards,

jagan.

reddy-s
Master II
Master II

Hi Renu,

As Jagan suggest a set analysis statement should help you solve the issue. Also this document should help you understand the statement.

A Primer on Set Analysis

Thanks,

Sangram.

Not applicable
Author

Thanks Jagan for your kind help, this worked...

Not applicable
Author

Thanks Sangram for sharing this document...

jagan
Luminary Alumni
Luminary Alumni

Hi,

If you got the answer please close this thread by giving Correct and Helpful Answers to the posts which helps you in getting the answers.

Regards,

jagan.

jagan
Luminary Alumni
Luminary Alumni

Hi Renu,

Please close this thread by giving Correct Answer to the post which helps you.

Regards,

jagan.

reddy-s
Master II
Master II

Always Welcome!

Not applicable
Author

hi i need if condition to select fields that is if two coloumns are having some datas so i need to add one coloumn data into other coloumn data.

reddy-s
Master II
Master II

Hi Pramod,

Try this:

if(columnA = Column B, calumnA & ' ' & ColumnB) as fieldname

Thanks,

Sangram.