Forum Discussion
DataPeter
6 years agoFrequent Visitor
Standardise Date into Single Occurrences
Hi All Long term reader, first time commenter – love this support forum! Problem: I’m trying to standardise customer records entry dates by occurrence. In short, I want to standardize the fir...
- 6 years ago
DataPeter - You must have a time component, try:
Outcome (Column) = VAR __Min = MINX(FILTER('Table',[Customer] = EARLIER([Customer])),[Date/Time Stamp]) RETURN "Day " & FLOOR((([Date/Time Stamp] - __Min) * 1. + 1),1)
Greg_Deckler
Community Champion
6 years agoDataPeter - Maybe:
Outcome (Column) =
VAR __Min = MINX(FILTER('Table',[Customer] = EARLIER([Customer])),[Date/Time Stamp])
RETURN
"Day " & (([Date/Time Stamp] - __Min) * 1. + 1)DataPeter
6 years agoFrequent Visitor
Thanks Greg_Deckler
Thanks for the support, this worked sort of, however it gave me additional decimal places – any thoughts on how to remove these?
- Greg_Deckler6 years ago
Community Champion
DataPeter - You must have a time component, try:
Outcome (Column) = VAR __Min = MINX(FILTER('Table',[Customer] = EARLIER([Customer])),[Date/Time Stamp]) RETURN "Day " & FLOOR((([Date/Time Stamp] - __Min) * 1. + 1),1)