Summary Expressions
Posted: Wed Nov 23, 2022 2:08 pm
Hi,
I am trying to write a conditional SumIf expression where the condition compares column values to a variable.
I have gotten as far as the below expression, which returns the value zero. Can anyone please let me know where I have gone wrong?
{SumIf(DataSource2.Sales,DataSource2.WeekEndingDate == DateTo)}
DataSource is my data source.
Sales is the column I'd like to sum. The data type is decimal.
WeekEndingDate is the column I'd like to filter by comparing to a variable. The data type is datetime.
DateTo is my variable. The Data type is datetime.
Perhaps there is a syntax issue or a data type conversion issue with my expression?
Thanks
I am trying to write a conditional SumIf expression where the condition compares column values to a variable.
I have gotten as far as the below expression, which returns the value zero. Can anyone please let me know where I have gone wrong?
{SumIf(DataSource2.Sales,DataSource2.WeekEndingDate == DateTo)}
DataSource is my data source.
Sales is the column I'd like to sum. The data type is decimal.
WeekEndingDate is the column I'd like to filter by comparing to a variable. The data type is datetime.
DateTo is my variable. The Data type is datetime.
Perhaps there is a syntax issue or a data type conversion issue with my expression?
Thanks