Dennis Vavasis 2 Posted September 20, 2017 Share Posted September 20, 2017 Hi Spofire gurus, I am trying to translate a Power BI dashboard(which i designied)to Spotfire and I have this very simple task. While I am more proficeint in Spotfire II cannot understand what I am msiing here.... In short , I want to sum the total duration of trips per employee. In the attached example the toltak summary is 22 + 9 = 31 days. Using a DAX expression I could calculate this. I have a problem doing this with an OVER calculated ecxpression. I just want the sum of duratiion disregarding the activities. Thnx D Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted January 8, 2019 Share Posted January 8, 2019 You can use RowId() function to get the min rowid per employee per trip and sum up only those durations like Sum(case when RowId()=Min(RowId()) OVER ([EMPLOYEENUMBER],[trip_ID]) then [Duration] end) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now