Forum Discussion
Running Total % on Measure
Hi - I want to create running total column based on the values in the % Scaled Scores column. The probem is that the said column is a measure, so solutions that use SUM won't work. What would the DAX for the running total look like?
12 Replies
- YPBIFrequent Visitor
I actually have one already and the Scaled Scores Grouping is sorted by that column...how does that fit in here?
- littlemojopuppyCommunity Champion
- YPBIFrequent Visitor
That doesn't seem to get me the desired result.
RT Measure = CALCULATE( [% Scaled Scores], FILTER ( ALL ( TestData[Sort SS Grouping]), 'TestData'[Sort SS Grouping] <= MAX ( TestData[Sort SS Grouping])I tried swapping the Sort SS Grouping with Scaled Scores Grouping and got this...first two rows sum correctly
- Ashish_MathurSuper User
Hi,
Share the download link of the PBI file.
- YPBIFrequent Visitor
Would love to share but the dataset contains all sorts of sensitive information...
These are the relevant columns at play though:
% Scaled Scores measure:
% Scaled Scores = DIVIDE( COUNT(TestData[Scaled Score]), CALCULATE( COUNT(TestData[Scaled Score]),ALLSELECTED()))- Ashish_MathurSuper User
- Dangar332Resident Rockstar
hi, YPBI
try below measure
adjust your table nameresult =var a = CALCULATE(SUM('Table'[scaled score]),KEEPFILTERS('Table'[sort ss grouping]<=MAX('Table'[sort ss grouping])),REMOVEFILTERS('Table'[scaled scores grouping]))var b = CALCULATE(SUM('Table'[scaled score]),REMOVEFILTERS('Table'[scaled scores grouping]))returnDIVIDE(a,b)and YAH! here you use highest sort ss grouping value for low range of scaled scores grouping so you get desc answer