How to calculate the number of hours worked in Tableau?

+1 vote

I have a fixed Number of hours(8) multiplied by the number of distinct days a user has worked.

What I want?

I need this number as text to insert into a title on a dashboard.

However, I need to separate this number by the User filter from another worksheet. When I apply this, I just get the total number of distinct days (not per user).

This is what I have done so far in the calculated field:

countd(DATETRUNC('day',[_StartDate]))

Aug 3, 2018 in Tableau by Atul
• 10,240 points
54 views

1 answer to this question.

0 votes

Try using this LOD expression {fixed user : countd(DATETRUNC('day',[_StartDate]))}

answered Aug 3, 2018 by Atul
• 5,530 points

Related Questions In Tableau

0 votes
1 answer

How can I calculate the median of sales price using 3 variables in Tableau

First let me clarify things for you. ...READ MORE

answered Apr 11, 2018 in Tableau by xyz
• 1,550 points
421 views
+1 vote
1 answer

How to add grand totals of the bar in Stacked Bar in Tableau

Hi Grim, As you have used reference line ...READ MORE

answered Sep 24, 2018 in Tableau by Machdata
• 340 points
130 views
0 votes
1 answer

How to make number of equally sized bins in tableau?

You can simply right click on the ...READ MORE

answered Aug 16, 2018 in Tableau by Naruto
• 710 points
37 views
0 votes
1 answer

In Tableau, How to sum the last 7 days of the value?

It can be achieved easily by creating ...READ MORE

answered Mar 12 in Tableau by Cherukuri
• 17,630 points
192 views
0 votes
1 answer

How to color code cells of a column based on the text value in Tableau

You can use the following steps to ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
1,309 views
0 votes
1 answer

Calculated filed with if-then

Below is the required code:  IF (NOT ISNULL([test2])) ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
48 views
+2 votes
1 answer
0 votes
1 answer

Reset filters in Tableau

I understood your question (I hope so!). ...READ MORE

answered Mar 29, 2018 in Tableau by QueenBee
• 1,810 points
407 views
0 votes
1 answer

How to calculate the percent of records within a group in tableau?

 You can click the measure SUM(Number of Records) and ...READ MORE

answered May 8, 2018 in Tableau by Atul
• 5,530 points
100 views
+1 vote
1 answer