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

Where Clause in Set Analysis

Hi everyone, is it possible to write something like that in a formula (set analysis)?

=Sum ([QTA 1 Documento]), where [Documento] in 'INT-BUONOCAR','INT-BUONOSCA'

please do not suggest me to use the where clause in Load, because I cannot do it...I need to find a way to use it in the set analysis...

Thanks to anyone, who will try to answer me!

14 Replies
Not applicable
Author

they are field values for the Codice Documento variable

MayilVahanan

HI

Try like this

=Sum ({<[Documento] = {'INT-BUONOCAR','INT-BUONOSCA'}>}[QTA 1 Documento])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

if they are field values then this should work

=Sum({<[Codice Documento] = {'INT-BUONOCAR','INT-BUONOSCA'}>} [QTA 1 Documento])


Not applicable
Author

If Codice Documento is a variable:

if([Codice Documento] = 'INT-BUONOCAR' or [Codice Documento] = 'INT-BUONOSCA', sum(QTA 1 Documento))

If Codice Documento is a field in your data model:

sum({<[Codice Document] = {'INT-BUONOCAR','INT-BUONOSCA'}>} [QTA 1 Documento])

ashfaq_haseeb
Champion III
Champion III

Hi you get correct result.

however your field INT-BUONOSCA is not conneced with date.

may be need to check the model.

Regards

ASHFAQ