cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate date differences in a story within the new model

0 Kudos

Hi,

I am working with the new model in sac with .csv input files and now I would like to create a measure between a date dimension that is uploaded in the .csv file and the current date.

How is this possible?

As far as I know in the old model there was the option Date difference by creating a measure but this is not the case in the new model?

The measure can be created in the story or in the model, both is fine for me.

Accepted Solutions (0)

Answers (1)

Answers (1)

N1kh1l
Active Contributor
0 Kudos

tim.graefer

Not sure if I got it right but there is a DATEDIFF() function available in calculated measure option in new model.

Nikhil

0 Kudos

That solves the first part of my problem, thanks.

The second question would be how it is possible to use the current date (e.g. now () / today ()) as a calculation reference?

N1kh1l
Active Contributor
0 Kudos

tim.graefer,

See if this helps, could not find a function (Today(), now() ) but this allows to select the dates.

0 Kudos

Yes I know, but the current date is dyanmic. So it should be always the date of the current day and not a fixed one.

N1kh1l
Active Contributor
0 Kudos

tim.graefer,

Unfortunately currently there no functions like TODAY() or NOW() in supported functions but there is a enhancement request which you can upvote below.

Improvement Request Details - Customer Influence (sap.com)

Nikhil