Forum Discussion
Need Total for Working Hours
Hi Friends,
I am trying to get Total Working Hours as total value in subtotals like as spent hours. But now getting.
Here mentioning the image
Like mentioned in image need to like spent hour highlighted in big box. Need to get like that in working hour row also.
Tried with costum column by using formula --
Thank in Advance.
Hi jay_patel ,
It is suggested to create a calculated column in your fact table, not in the Date table like below:
Working Hours = CALCULATE ( SUM ( 'Date'[WorkingDay] ), FILTER ( 'Date', 'Date'[Month-Year] = EARLIER ( 'Table'[Month-Year] ) ) ) * 8Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It is suggested to create a calculated column in the fact table, not in the Date table as follows:
Working Hours = CALCULATE ( SUM ( 'Date'[WorkingDay] ), FILTER ( 'Date', 'Date'[Month-Year] = EARLIER ( 'Table'[Month-Year] ) ) ) * 8Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
10 Replies
- amitchandakSuper User
jay_patel , this seems like a column. Also calculation seem fine
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- jay_patelHelper IV
Thank you amitchandak for replying, here I am mentioning the sample of data. need to get workhours total as spent hours.
- IceyCommunity Support
Hi jay_patel ,
It is suggested to create a calculated column in your fact table, not in the Date table like below:
Working Hours = CALCULATE ( SUM ( 'Date'[WorkingDay] ), FILTER ( 'Date', 'Date'[Month-Year] = EARLIER ( 'Table'[Month-Year] ) ) ) * 8Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.