Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello guys,
I need to get the minimun value in a set of (selectable) date, so that I can check if a date in a record is less or greather than it and print the record or not in a pivot table.
I've tried to set a calculate dimension as "If GanttDate>=Min(DeliveryDate), OrderNumber, Null())" and check the relative flag "Suppress When Value is Null", but this issue doesn't work (I get an Error in Calculate Dimension).
Could anybody help me in this trouble, pls?
N.
try below
Aggr(If (GanttDate>=Min(DeliveryDate), OrderNumber, Null()),GanttDate,OrderNumber)
or
Aggr(If (GanttDate>=Min(DeliveryDate), OrderNumber, Null()),OrderNumber)
Try adding the Aggr function around your IF statement.
Aggr(If (GanttDate>=Min(DeliveryDate), OrderNumber, Null()),GanttDate)
Hello,
thank you for the replay: I'm sorry but your suggestion doesn't work 😞
Since the statement "If GanttDate>=Today(), OrderNumber, Null())" works properly, I thought that a fixed value is necessary instead of a row-by-row calculated one, so a possible workaround should be to get the minimum possible value of the Delivery date by extracting it from the selection parameters, but unfortunately the GetPossibleCount(DeliveryDate) exists and the GetPossibleValue(DeliveryDate) does not.
Do you thing it should be a possible way to explore?
Thanks.
try below
Aggr(If (GanttDate>=Min(DeliveryDate), OrderNumber, Null()),GanttDate,OrderNumber)
or
Aggr(If (GanttDate>=Min(DeliveryDate), OrderNumber, Null()),OrderNumber)
The first one works very well!
Thank you so much!
N.