Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 --
Solved! Go to Solution.
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] ) )
) * 8
Best 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] ) )
) * 8
Best 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.
Thank you @amitchandak for replying, here I am mentioning the sample of data. need to get workhours total as spent hours.
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] ) )
) * 8
Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best regards
ice cream
If this post helps, consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best regards
ice cream
If this post helps,then consider Accepting it as the solution to help other members find it faster.
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] ) )
) * 8
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |