Skip to main content
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
  • Help and How-ToChevronRightIcon
Activity Duration as a % of Total Time
                   

I have a dataset with 3 columns:

 

ActivityType StartDate  EndDate


I’m attempting to build a visual that will report on what % of time is spent on which activity vs another, but I need to consider that not as a percent of all activities, but of all the possible time (assume there will be a time filter). My users want to report on how much of the day had nothing recorded

so I may be wrong, but I created a custom table of every day since 2023:

 



 

 

Then I tried to build a visual, that does a Timespent/TotalTime calculation… to do this I did Sum(Mndiff (enddate, startdate)) / Sum(minddiff (maxdate, minddate))

but I get this error:

Then i've tried using the timestamp... but sitll get this:

 

 

 

 

liamcameron
liamcameron
Posted 2 years ago · Edited 2 years ago·Last reply 2 years ago
                                       
         
3 comments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
               
DRay

DRay

·2 years ago

Hello @liamcameron,

I wanted to follow up to see if the solution offered by @gwolfe worked for you.

If so, please click the 'Accept as Solution' button so other users with the same questions can find the answer faster. If not, please let us know so that we can continue to help.

Thank you.

                                       
DRay

DRay

·2 years ago

Hello liamcameron,

I wanted to follow up to see if the solution offered by gwolfe worked for you.

If so, please click the 'Accept as Solution' button so other users with the same questions can find the answer faster. If not, please let us know so that we can continue to help.

Thank you.

                                       
Garrett Wolfe

Garrett Wolfe

·2 years ago

liamcameron take a look at this Excel screen shot. In the example there is 1 record for green. The difference between the start and end date is 3. Then on your new date table you created (which is filterable by the user) the difference between the selection is 10 days. My understanding is that you want to show 3 / 10 = 30% of the selected time spent on green. Is that correct? 

                                       
                                                                                 
  •                                                              
  •                                                              
  •