Displaying sum over a time period only displays first value of said time period

Hello !

I'm not sure this question has already been talked about or even solved as i could not find anything on the forum. My title formulation might not be the best so i'll try to explain it :

I use dolibarr and i would like to make some data analysis with its database. I made a question that sums every invoice line for a certain product category and returns an amount, aggregated by month based on facturation date. This works like a charm :

image

Problem is i want to display a big number that dynamically shows the total amount for a period of time set by a dashboard filter. For example if i select a time span of february '21 to april '21 it should display 3161,95 (577.66+1720.65+863.64) but i only ever get the first value of this time span : 577.66.

What a i doing wrong ? Is there even a solution ?

Thanks !

Diagnostic info :

{
  "browser-info": {
    "language": "en-US",
    "platform": "Win32",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.23+9-post-Debian-1deb11u1",
    "java.vendor": "Debian",
    "java.vendor.url": "https://tracker.debian.org/openjdk-11",
    "java.version": "11.0.23",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.23+9-post-Debian-1deb11u1",
    "os.name": "Linux",
    "os.version": "5.10.0-30-amd64",
    "user.language": "fr",
    "user.timezone": "Europe/Paris"
  },
  "metabase-info": {
    "databases": [
      "h2",
      "mysql"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "13.14 (Debian 13.14-0+deb11u1)"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-05-28",
      "tag": "v0.49.13",
      "hash": "de28e83"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

just do a question that uses that question as a source and do a sum. Then add the question to a dashboard and put a dashboard filter on top

Alright ! Thanks, i did not think of that but it works perfectly !