Forum Discussion
Specific column
- 3 years ago
Hi Peter_2020 ,
Sorry, I misunderstood before. If you are expecting it to show the sum of the hours for a specific PO, please try:
Measure = CALCULATE(SUM('Table'[HOURS]),ALLEXCEPT('Table','Table'[PO]))Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Peter_2020 ,
Please try:
Measure =
var _a = SUMX(ALL('Table'[HOURS]),[HOURS])
var _b = SUM('Table'[HOURS])
return IF(ISINSCOPE('Table'[CODE]),_b,_a)
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Peter_20203 years agoHelper III
Hi v-jianboli-msft ,
thanks for your reply. It works perfect when you have table with 1 PO. But in my case I have in the table around 1000 PO´s and then it return the sum for all hours in total:
So the SUM of the hours must be defined for specific PO and must be in the same row, not in total.
P.
- v-jianboli-msft3 years agoCommunity Support
Hi Peter_2020 ,
Sorry, I misunderstood before. If you are expecting it to show the sum of the hours for a specific PO, please try:
Measure = CALCULATE(SUM('Table'[HOURS]),ALLEXCEPT('Table','Table'[PO]))Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Peter_20203 years agoHelper III
Hi v-jianboli-msft ,
excellent! That's exactly what I needed. Thank you a lot for your help!