Forum Discussion

gennaro_19's avatar
gennaro_19
Helper I
1 year ago
Solved

How to work Running Total with VALUES

I have a table for accounting for deposits/payments made and the values of the quotas when they are published. A calendar table completes my data set. I have created an active relation with...
  • gennaro_19's avatar
    gennaro_19
    1 year ago

    hi lbendlin ,
    I only partly followed your suggestion for Running Total of the differences in days between the current share date and the initial, first share date. I used the DATEDIFF function after setting a ‘First Share Date’ and a ‘Current ShareDate’.
    Similarly, I set a ‘First Share Value’ and a ‘Last Share Value’. The difference between the two values gives me the Running Total in the filter context.
    In other words, I kept the double relationship of the two date columns in the fact table with the Calendar Table, but I followed your suggestion of calculating the days as the difference between the two dates.
    This is fine for now.
    Below is a picture of the result

    Thank you