Janzen Lim
04/23/2025, 1:33 AMconst selectedMeasure = modifySimpleMeasure(metricMap[metricKey], (m) => m.aggregation("avg").defaultLocalId());
however, the measure is returning the default "sum" agg instead of the average, just wanted to reach out to see if I've made a mistake in my implementation here, thank you!Julius Kos
04/23/2025, 8:18 AMFrancisco Antunes
04/24/2025, 9:20 AMmodifyMeasure
instead of modifySimpleMeasure
, as the former works on more types of aggregation.
Also, can you tell me more about the data you are attempting to aggregate? Is it a fact, or is it a MAQL metric?
Otherwise, the code snippet you shared does match our documentation and expected use-cases.