Problem:
Create a running total measure that does not reference any calculated columns, only measures.
One measure is a calculation. Another measure is auto-incrementing IDs created from a RANKX.
The goal is to create a running total measure/sum for A using reference only to B.
Context: For data restriction reasons, there is no ability to add a calculated column. Therefore, there are a number of measures that have been created.
Existing trials:
Existing knowledge base (internet searches) only seem to refer to measures where there is a mixture of columns and measures. There is no ability to add calculated columns, however, nor need for/use of existing columns within this particular running total.
Currently there has been an attempt to use a table expression to build the table with the measures, creating additional variables for a max (MAXX) and trying to filter this way and use a CAlCULATE in the return. This is only returning the total and not a running total.
Edit:
Example table:
[...existing cols] | Measure A | Measure B | (Needed) Measure C |
---|---|---|---|
... | 10 | 1 | 10 |
... | 60 | 2 | 70 |
... | 40 | 3 | 110 |
Measure A is a sum of other measures Measure B is a rank of other measures Measure C is a running total of measure A given Measure B