Hello, good morning! Could you help me? I'm trying to create a weighted average due date metric and I'm struggling.Weighted average due date is a metric that considers both the value and the maturity date.
j
Julius Kos
03/31/2025, 1:45 PM
Hi Tomas,
First of call, could you please confirm if we are talking about GoodData Platform or Gooddata Cloud in this case?
t
Tomas Lima
03/31/2025, 2:03 PM
I would be talking about this one in the image below, I don't know what they call it, whether it's GoodData Platform or GoodData Cloud
Hm but I understand you are looking for a specific Metric. Please note that an arithmetic with Dates is possible on GoodData Platform. You could do for example something like this:
SELECT SUM(Amount * DayOfMonth) / SUM(Amount)
DayOfMonth would be considered as values (1-31) and the MAQL would work with it as it was a number.