Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I've got an aggr function that should return the maximum and minimum number of order managed per month for the last 24 months.
The max works fine (19510) but the minimum returns 0, see example below.
I'm getting gray hair over this so please any suggestions will help! 🙂
Thanks,
Robert V.
How about this?
Min({<Sales_MonthSEQ = {">-25<0"}>}
Aggr(
Count({<Sales_MonthSEQ = {">-25<0"}>} DISTINCT OrderNo)
, Sales_MonthName)
)
hi
first thing to check is that in your table properties
under presentation tab you uncheck the option suppress zero values
usually i'll assume you have some values that are assigned to null month , so you don't see it in the table
Hi Lironbaram,
That's the first thing I've looked and that's why I've place a picture of my table along with my request, option is already unchecked and I've got 24 results (24 months rolling). that's why I've having gray hair over this.
Thanks anyway 🙂
How about this?
Min({<Sales_MonthSEQ = {">-25<0"}>}
Aggr(
Count({<Sales_MonthSEQ = {">-25<0"}>} DISTINCT OrderNo)
, Sales_MonthName)
)
No results, 😞
Not even showing a 0? Any error messages? Can you show an image of the expression in the expression editor?
This looks like the original expression you had which was showing 0
Did you try my suggestion?
Min({<Sales_MonthSEQ = {">-25<0"}>}
Aggr(
Count({<Sales_MonthSEQ = {">-25<0"}>} DISTINCT OrderNo)
, Sales_MonthName)
)
Please note that I had a typo on Sales_MonthName field... I have fixed it now... I initially used Sales_Monthname... with a lower case n