Sisense Community logo
    • Community Feedback
    • Chapters
    • Events
    • Forums
      • Help and How To
      • Product Feedback Forum
      • Strategy & Use Cases
    • Blogs
    • KB Docs
      • KB Docs
      • Add-Ons & Plug-Ins
      • APIs
      • Best Practices
      • Blox
      • CDT
      • Cloud Managed Service
      • Data Models
      • Data Sources
      • Embedding Analytics
      • How-Tos & FAQs
      • Onboarding
      • PySisense
      • Security
      • Sisense Administration
      • Sisense Intelligence & AI
      • Troubleshooting
      • Widget & Dashboard Scripts
    • Support
    • Learning
      • Sisense Academy: Free Courses and Certifications
      • Official Developer Documentation
      • Official Product Documentation
      • Official Sisense Youtube Channel
      • Sisense Compose SDK Playground
    • Use Case Gallery
    All PostsDiscussionsBlogsIdeasQuestions
    Leaderboards
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    Discussions
    • Knowledge Base DocsChevronRightIcon
    • How-Tos & FAQsChevronRightIcon
    Accumulation Build For Millisec (Ms) By Using Unix Timestamp Transformation
             
    Question:
    This post we will talk about accumulation via millisec by using a unix timestamp transformation

    In this use case, We will be working with a CData Elasticsearch ODBC driver and client need a way to accumulate data base off milliseconds.
    Naively, we are unable to accumulate down to the millisec but with this work-around, we are able to do so.


    Solution:
    This will be done upon data pull in from your data source where we will edit the query and transform it into a unix timestamp

    Please keep in mind this is using function from your native data source. 

    In this case, we are using ODBC CData and they support the function we needed for this transformation

    By using the following function, we are able to bring in data and transform into unixts

    SELECT datediff('millisecond' ,DATEFROMPARTS(1970, 1,1),datetime) 
    FROM demosisense.testDate
    
    After this has been complete, you can now go ahead and set the accumulation base off the new field we created. Following regular Sisense function, we can then hide this field while do an accumulative build on this.
    And this will accumulate down to the millisec!
    intapiuser
    By
    intapiuser
    Posted 3 years ago
                                           
             
    0 comments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
                                                                                     
    •                                                              
    •                                                              
    •