cancel
Showing results for 
Search instead for 
Did you mean: 

SAC:SAP anlytical cloud : unbale to create date diffrence between two dates

former_member276213
Active Participant

Hello SAP analytical cloud community,

I am importing the data from C4C in to SAC..In my model i have two fields , creation on date (eg format 01.01.2018) and completed on date (eg format: 05.01.2018)...if i caluculate the difference between those dates i should get as 4 (no of days).

I tried all possible scenarios and could not achieved this...also in the model i see only one date field can be created..any thoughts on this?

BR

Lakshmikanth

Former Member
0 Kudos

Seems you can only do it against a specific date, so you can do DATEDIFF([d/Date_of_Visit] ,"2018-10-01" ,"Day" ) which will work, or you could set that to the 1st of january to get year to date or 1st of April for reg year. Only, in the date parts it only displays dimensions which it recognises as a date. In my case, it's Date_of_Visit.

Former Member

And on the back of that, i've just tried to import a new model and set up 2 dates. It still doesn't allow this.

IngoH
Active Contributor
0 Kudos

Hello Lakshmikanth,


pretty sure that as of now you can't have 2 dates in the same model. The only option right now for 2 dates in a single model is to load the data via a XLS file directly into the story.


Regards

Ingo Hilgefort,

Accepted Solutions (0)

Answers (3)

Answers (3)

Hi Lakshmikanth,

I also facing the same issue, In recent release SAC launch a new functionality "DATEIFF"

https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/2018.16/en-US/3b7c99a7a7cd4a29bb1c5132d91a...

Go through the above link.

former_member276213
Active Participant

Thanks Srihari, just a question from the eg dat iff can be used with creation date - completed date (how these dates needs to be defined in the model?)

jjgonzalesf
Participant
0 Kudos

#Español

hola, te voy a mostrar dos graficos sobre filtro por fecha, me podrias decir cual deseas y te puedo apoyar.

#Ingles

Hello, I'm going to show you two graphs about filter by date, you could tell me what you want and I can support you.

the first is a filter according to the range of dates and shows the selected dates in a table.

the second is a filter according to the date range and shows in a table the number of days, numeric.

jjgonzalesf
Participant
0 Kudos

#Español

Hola. quieres mostrar los días en números, de un rango de fecha de un mismo modelo o de modelos diferentes vinculados.

#Ingles:

Hi. you want to show the days in numbers, of a date range of the same model or of different linked models.

former_member276213
Active Participant
0 Kudos

Hi Jairzinho,

No of days difference from the same model

BR

Lakshmikanth