Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
i am having issues with trying to get hours counted, i want it to return Substantive Filled total hours
Month | Status | Hours |
Oct | Substantive Filled | 01:00:00 |
Oct | Filled | 01:00:00 |
Oct | Filled | 01:01:00 |
Oct | Substantive Filled | 02:00:00 |
my hourscolumn is formatted as below
Solved! Go to Solution.
HI @Dougers1 ,
create the measure below. Replace"TimeCalc" with your table name.
total time (hours and mins) =
IF(SELECTEDVALUE(TimeCalc[Status]) ="Substantive Filled",
FORMAT( SUM(TimeCalc[Hours]),"HH:MM"),
blank()
)
If this doesn't resolve the issue, please provide a sample output.
Hi @Dougers1,
You can create a measure as follows.
total hours = CALCULATE(SUM('Table'[Hours]),FILTER('Table', 'Table'[Status] = "Substantive Filled"))
Is this the result you expect?
Best Regards,
Yuliax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bringing back wrong sum ?
HI @Dougers1 ,
create the measure below. Replace"TimeCalc" with your table name.
total time (hours and mins) =
IF(SELECTEDVALUE(TimeCalc[Status]) ="Substantive Filled",
FORMAT( SUM(TimeCalc[Hours]),"HH:MM"),
blank()
)
If this doesn't resolve the issue, please provide a sample output.
this is bringing me back wrong sum - its saying person A has worked 6hr 35 mins for oct - thats not correct answer should be 116hrs:15 mins
i added this but it not adding them up correct sometimes it is but other times it saying 32 hrs when it only 8
The VAR result is adding hour and minutes as integer value, not a time value to which works display it in hh:mm format
Would you be able to share the pbix/raw data masking sensitive information?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
12 | |
10 | |
8 | |
7 | |
7 |
User | Count |
---|---|
20 | |
14 | |
11 | |
10 | |
10 |