I am trying to do a simple IN operation that we do in ex - where payment_method in (‘stripe’, ‘applepay’, ‘googlepay’)
How can I do this as a calculated field in quicksight . I want to do a distinct_countif
amount where payment_method in (‘stripe’, ‘applepay’, ‘googlepay’) and use other column consitions such as transaction_status = ‘successful’.
I tried a few things but it didnt work - ex :
distinct_countIf(
{money_transfer_id}, {transaction_status} = ‘successful’
and ({destination_fundholder_type} = ‘User’ OR {destination_fundholder_type} = ‘OneTimeUser’)
and ({payment_method_type} = ‘stripe’ OR {payment_method_type} = ‘applepay’ OR {payment_method_type} = ‘googlepay’)
)
distinct_countIf(
{money_transfer_id}, {transaction_status} = ‘successful’
and {destination_fundholder_type} = ‘User’,‘OneTimeUser’
and {payment_method_type} = ‘stripe’,‘applepay’,‘googlepay’
)