Forum Discussion
Need Total for Working Hours
- 5 years ago
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.
- 5 years ago
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.
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_patel5 years ago
Helper IV
Thank you amitchandak for replying, here I am mentioning the sample of data. need to get workhours total as spent hours.
- Icey5 years ago
Community 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.
- Syndicate_Admin5 years ago
Administrator
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,then consider Accepting it as the solution to help other members find it faster.
- Syndicate_Admin5 years ago
Administrator
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.