Forum Discussion
Sales Velocity Running Total
Hello,
I am having trouble figuring out how to create a running total measure from another measure over time.
The chart below shows the Sales Velocity (measure) for each quarter in 2019. Sales Velocity is a measure of columns from the table. I would like to know the running total of my Sales Velocity as the year goes on. When I create another measure for the Running Total, I get these random numbers.
Running Total =
SUMX(
FILTER(
ALL('Sales Data'[Date]),
'Sales Data'[Date] <= MAX('Sales Data'[Date])
),
'Sales Data'[Sales Velocity]
)This is wrong. What I need is:
How can I update my measure to reflect the correct values?
Thanks in advance!
I simplified the formula, below an updated one
LC
Running Total 2 = CALCULATE('Sales Data'[Sales Velocity], FILTER(ALL('Sales Data'), 'Sales Data'[Date] <= MAX('Sales Data'[Date]) ) )
5 Replies
- lc_finance
Solution Sage
hi Anonymous ,
can you share the DAX formula you used for the measure 'Sales Velocity'?
Regards,
LC
- AnonymousNot applicable
Sure, here is dummy data for how I came up with the measures:
Date Opportunity Amount Win Rate Cycle Time (Days) 1/6/2019 A 6,340 Lost 74 1/31/2019 B 6,276 Won 72 2/3/2019 C 7,710 Lost 30 2/7/2019 D 5,915 Won 87 2/9/2019 E 5,772 Won 38 3/4/2019 F 5,961 Won 58 3/8/2019 H 4,071 Won 52 3/26/2019 I 7,606 Won 40 4/2/2019 J 2,637 Lost 72 4/5/2019 K 7,576 Lost 72 4/18/2019 L 5,594 Won 25 4/22/2019 M 2,251 Won 30 4/28/2019 N 3,393 Won 51 5/6/2019 O 1,743 Lost 49 5/12/2019 P 1,561 Lost 73 5/17/2019 Q 4,962 Won 16 5/23/2019 R 2,460 Won 38 5/26/2019 S 1,123 Lost 65 6/3/2019 T 3,786 Won 84 6/10/2019 U 2,838 Won 88 6/19/2019 V 8,255 Won 71 6/27/2019 W 7,750 Won 54 7/2/2019 X 6,916 Won 29 7/15/2019 Y 5,212 Won 19 7/31/2019 Z 6,951 Lost 90 8/2/2019 AA 1,073 Won 29 8/14/2019 BB 2,406 Won 15 8/28/2019 CC 7,072 Lost 66 9/13/2019 DD 8,522 Won 76 9/22/2019 EE 2,820 Won 79 10/5/2019 FF 8,872 Lost 21 10/8/2019 GG 3,193 Won 61 Sales Velocity = [Opportunity Count]*[Deal Amount]*[Rate]/[Sales Cycle]
where
Opportunity Count = DISTINCTCOUNT('Sales Data'[Opportunity])Deal Amount = AVERAGE('Sales Data'[Amount])Rate = DIVIDE( CALCULATE( DISTINCTCOUNT('Sales Data'[Opportunity]), FILTER( 'Sales Data', CONTAINSSTRING('Sales Data'[Win Rate], "won") ) ), [Opportunity Count] )Sales Cycle = AVERAGE('Sales Data'[Cycle Time (Days)])- lc_finance
Solution Sage
Hi Anonymous ,
I believe this is what you are looking for.
The 'running total 2' for Q4 (2024.11) now matches the total year for 'Sales Velocity' (2024.11)
Let me know
LC
Running Total 2 = CALCULATE('Sales Data'[Sales Velocity], ALL('Sales Data'[Date]), FILTER(ALL('Sales Data'), 'Sales Data'[Date] <= MAX('Sales Data'[Date]) ) )