Histogram with cumulative stack, use of constant for test

Hello,

I am a new user of grafana in my company and I am looking to develop models for my project.
I try to make histograms with cumulative values with constants (in variable).
What are the functions and options for making compiled histograms?
I use a graph with stack option checked and stack cumulative but what function is used to gather my two constants in a bar?