Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Issues using summarize in a measure

Hello all,

 

I have quite a complicated measure which isn't working as I'd expect.

 

Firstly, I'm creating a summary table in the measure. This table calculates a running average of the values I have in an existing table.

It does this by creating a  new column which is an average of the value on that row and the values following. I have tested the summarize calculation in a calculated column and this works very well.

 

However, when I put the same calculation in a measure and ask the measure to report (for example) the maximum value of the running average, things break down.

If I use the measure in a table to restrict the input then the measure value stays exactly the same -- no matter what filters I apply.

Is the summarize function limited to create a 'static' summary table? How can I get the measure to work.

I'm able to supply code if needed but thought I'd ask this general question first.

 

Thanks,

 

Wiredchop

3 Replies