Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 1065

Re: Resetting running sum based on condition

$
0
0

try this:

 

make a variable: "v_runningsum_reset" as "=if isnull(period) then 1 else 0". Perhaps you must define it with a context like "=if isnull(period in ([Store])) then 1 else 0"

 

then change your definition to:

 

=RunningSum([V_PeriodNum];([Store], [v_runningsum_reset]))


= RunningSum([No.Of Weeks];([Store], [v_runningsum_reset]))


Aufter this change, the  sum will be reseted for each store and the the changed status of filled / unfilled period


Hope that helps

Andreas


Viewing all articles
Browse latest Browse all 1065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>