Forum Discussion
dyee4613
5 years agoHelper I
Calculate ALL Help
Hi. I have a some data has the following data: Contract, Date ,Employee, Hours, Task. Here is a table w/ hours summarized at the contract level. Contract Hours ABC 1000 CDE 2000 ...
v-jingzhang
5 years agoCommunity Support
Hi dyee4613 , I tested your measure and it works well to display your expectation in the table visual. I also tested another measure using ALLEXCEPT function which also works as below. Can you check or confirm is there any other fields used in the visual or any filters applied which may affect the context for the measure?
Contract Hours = Calculate(SUM('Table (2)'[Hours]),ALL('Table (2)'[Task]))
Contract Hours 2 = Calculate(SUM('Table (2)'[Hours]),ALLEXCEPT('Table (2)','Table (2)'[Contract]))
Here is the sample data I used:
And the table visual result:
Best Regards,
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.