Forum Discussion
calculate % based on multiple criteria
- Anonymous2 years ago
Hi bree_carter
Please try this:
With your data, I create a calcualte column:
Calculated Shift = VAR _sumHours = CALCULATE( SUM('Table'[Hours]), FILTER('Table', 'Table'[Date]=EARLIER('Table'[Date]) && 'Table'[Employee Id]=EARLIER('Table'[Employee Id]) ) ) //Get the sum of the Hours separately RETURN 'Table'[Hours]/_sumHoursSelect the Column(Calculated Shift) > Column tools > Change the Display the values in this column with commas as a thousand separator to 2
The result is as follow:
Best Regards,
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
We want to help you but your description is too vaugue. Please write it again clearly.
We are Power BI expets but we dont know what you want your reports to do.
Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Remove any unneeded columns which may cause confussion.
Rename columns to user friendly names.
Also provide the example desired output, with a clear description of the process flow.
Show step-by-step calulations.
Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
Try keep it simple and ask one question per ticket.
You will get a quick response if you put time, care and effort into writing clear problem descriptions.
Remember you are gerrting free expert help, so please put lots of proper effort to asking questions and providing example.
Vaugue descriptions can waste your time and ourtime.
Look foward to helping you when the above information is forthcoming
We want to help you but your description is too vaugue. Please write it again clearly.
We are Power BI expets but we dont know your jargon like LWOP or what you want your reports to do!
Please ask a colleagueto manager to read your question, and help you write it for an external reader.
Why does 01/01/24, EMP001 = 0.7and 0.3 ???
Provide a clear step-by-step description of the process flow.
Show step-by-step calulations.
Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you. T
Try include all the details in one post, so we dont have to scrool up and down to try fathom wahat you want.
Try keep it concise and simple and ask one question per ticket.
You will get a quick response if you put time, care and effort into writing clear problem descriptions.
Remember you are gerrting free expert help, so please put lots of proper effort to asking questions and providing example.
Vaugue descriptions can waste your time and ourtime.
Look foward to helping you when the above information is forthcoming