Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have variable called $vYearTotal. and I need to use in set expression to fetch for previous year.
=sum( {1<Year = {2015}>} $(vYearTotal) ).
I am trying to create new column using the above set expression.Not working for me.
How do you define vYearTotal?
Getting from another expression below
Num(
Sum( {$< Flag={1}, Year=, Quarter=, Month=, [Quarter In Year]=, [Month In Quarter]=>} $(vSelectField)
) / [Div],
Pick(WildMatch([Div], 1, 1000, 1000000), '#,##0', '#,##0', '#,##0.0')
)
You can try this
=Sum({1<Year = {2015}>} Aggr( $(vYearTotal), YourChartDimension))
Sunny..I don't have chart expression. As I need to create new Column $(vYearTotal) which should get results of previous year irrespective of selection.
=Sum({1<Year = {2015}>} Aggr( $(vYearTotal), YourChartDimension))
Sunny I have tried adding Aggr on Variable but no luck.Can some body suggest me.
Sunny..I have attached the qvw and Expression column is "Selection" in the Main straight table
What is this qvw showing my friend? I am not sure where is the variable vYearTotal
It is a front end variable
Is this not the requirement?
Sum({<Year = {2015}>}Aggr($(vYearTotal), Year))