Hi @DylanM , Thanks for your reply.
I want to count total number of trips per week or month or daily based on user selection.
My data is coming for redshift materialized view contains two columns: date and trip_id.
I created two calculated fields and a parameter as said.
But now, how can a create a visualization using this calculated fields and parameters. I’m getting error, please see all the SS and help me.
Trip Date by Selection calculated field:
ifelse(
${DateType} = ‘Daily’, truncDate(‘DD’, date),
${DateType} = ‘Weekly’, truncDate(‘WK’, date),
${DateType} = ‘Monthly’, truncDate(‘MM’, date),
NULL
)
Trip date ny selection calculated field:
ifelse(
${DateType} = ‘Daily’, truncDate(‘DD’, date),
${DateType} = ‘Weekly’, truncDate(‘WK’, date),
${DateType} = ‘Monthly’, truncDate(‘MM’, date),
NULL
)
parameter:
Use parameters to dynamically control values in your fields, filters, and sheet.
Name
Data type (Not alterable after creation)
String
Values (Not alterable after creation)
Single value
Static default value.
**the error I’m getting : **
Error details
|region:|us-east-1|
| — | — |
|timestamp:|1715894065798|
|requestId:|31deb919-4473-444a-97f5-59fb3fd6fc34|
|sourceErrorCode:|DISTINCTCOUNTOVER_INVALID_ARGUMENT|
|sourceType:|REDSHIFT|
