I have a database where each row is a time entry on a given day. I can have more than one entry for the same day per user.
With that, I created a matrix that shows the sum of hours worked per day by resource.
I would like to show on a card how many hours each resource worked beyond 8h per day.
In the example, I would like to get the number 8.0 (2.0 hours from Maria and 6.0 from Marcos).
Any ideas on how I would do this?
Solved! Go to Solution.
Hello @Ashish_Mathur , thanks for your help. Worked like a charm.
But can you explain the concept behind the "ABCD"?
Tnks @MartynRamsden , but your measure didn't work 😞
I need to study how to use variables in Power BI.
Also tnks @amitchandak
I understood your thinking. The measure worked in a table, but the sum was wrong :S
You are welcome. The SUMMARIZE function creates a virtual table. the third input in that function is the title of the new column that you want to give to the second column of that virtual table.
If my previous reply helped, please mark it as Answer.
Exactly, I looked at the SUMMARIZE syntax later and saw that there is something beyond <groupBy_columnName>.
I didn't notice that part of the syntax: <name>, <expression>.
Thanks for your help, I will consider your answer as the solution.
Please find the solutions at
Work Hours = DISTINCTCOUNT(overtime[Date])*8 Diff = SUM(overtime[Hours])-[Work Hours]
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Try this measure:
Over 8hrs = VAR HoursWorked = SUM ( Table1[Hours] ) VAR Result = HoursWorked - 8 RETURN Result
If I answered your question, please help others by accepting it as a solution.
Click here to read more about the June 2022 updates!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!
Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.