Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Though i have gone through the set analysis material, for below case i cannot able to write the expression.
By defaults, sales should be display for latest year
Sum({$<Year={$(vMaxYear)}>}Sales)
Whereas if i select any other year, then filtering should be done.
Any suggestions please.
Hope you have defined your variable as below
vMaxYear
Max(Year)
i.e. without = sign in Variable Overview
Please post your definition of vMaxYear.
You can also try
=Sum({<Year = {$(=max(Year))}>} Sales)
I have created variable
LET vMaxYear =Year(Today();
Try this:
=Sum({$<Year={"$(=Max(Year))"}>}Sales)
Remove This vMaxYear from script
Go to variable overview
create variable as
Name
vMaxYear
Max(Year)