Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts
We are working with stock measures, non-cumulative. I need to see only the stock of the current month. The following formula doesn't work. It shows the YTD value, in our case January and February. I only need to see the stocks for February. This formula seens to be ineffective:
Sum({$<MonthNum={'$(=(MonthNum)today())'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
Any ideas?
Thanks
Tom
This should work,
be sure about the name of MonthNum or %MonthNum:
Sum({$<MonthNum={'$(=num(month(today(1))))'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
Hi,
Try below expression
Sum({$<MonthNum={'$(=Num(Month(today())))'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
I believe MonthNum() is not valid function:
Try this:
Sum({$<MonthNum={'$(=num(month(today(1))))'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
Thanks guys
Both proposals also don't work. Any more ideas?
Regards
Tom
Which is the format of MonthNum? 2 or 02 ? Or something else?
if is two digits 02 you can use this:
Sum({$<MonthNum={'$(=mid(today(1),4,2))'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
Hi
Monthnum(Highlighted in red) is your field?? , if yes then could please paste here value of monthnum field
Sum({$<MonthNum={'$(=(MonthNum)today())'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
This should work,
be sure about the name of MonthNum or %MonthNum:
Sum({$<MonthNum={'$(=num(month(today(1))))'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])
make sure to passing % Monthnum or Monthnum
or you can hide % sign using below set variable in script
set HidePrefix='%';
then load your data
and then try below expression
Sum({$<MonthNum={'$(=Num(Month(today())))'}, [Product Unit]={'Cars','Bikes','Trucks'}>} [Total Stock])