Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
I need help!
I have a table where I have :
prodname
sales_sum
start sales
last sales
and when I select big period of time I need to see in : sales sum (sum of sales in this period) , start sales (sales of first month selected)
and last sales (sales of last month selected)
how can I do this?
Thank you!
Try:
Sum ( {<[Начало Месяца]={"$(=Min([Начало Месяца]))"}>}[Ост.Начало Стоим.])
Sum ( {<[Начало Месяца]={"$(=Max([Начало Месяца]))"}>}[Ост.Начало Стоим.])
Note: If you wish to select from another date field, you might have to include those date fields as well in the expression to nullify it's effect. like:
Sum ( {<[Конец Месяца], [Начало Месяца]={"$(=Min([Начало Месяца]))"}>}[Ост.Начало Стоим.])
Sum ( {<[Конец Месяца], [Начало Месяца]={"$(=Max([Начало Месяца]))"}>}[Ост.Начало Стоим.])
Hi
try expression like this
sales_sum: sum(Sales)
start sales: sum({<Month={"=$(=Min(Month))"}>} Sales)
last sales: sum({<Month={"=$(=Max(Month))"}>} Sales)
regards,
there is an error in expression
Could you share your sample qvw?
Hi,
i hope this three kind of expressions will give you a desired result,
you need to have your date calendar having monthnum column and year as above.
HTH,
PFA,
Hirish
Can I do it with my variabiles?
Yes! you can ,
But you need to check there are working as expected, By checking them in text box or in straight table itself by hovering on expression(Expression should not be labeled).
test
* I have made changes in my above post . Please check.