Forum Discussion

pani_victoria's avatar
pani_victoria
Icon for Helper III rankHelper III
2 years ago
Solved

sum by category

Colleagues, hello!

I need your help! My result is wrong!

I have data with sales by date and monthly sales plan in each line for each manager.
But when I summarize the employee plan for the branch, I get the wrong total and I don’t know where to look for the error.

Correct result 637169!

 


My data

 
Please tell me how to fix this?

  • create two measures like this

    m1 =
    DIVIDE(sum('database' [Target Rev]), COUNTROWS('database'), BLANKO)
    
    
    Target Revenue= 
    SUMX(VALUES('database'[Branch]), [m1])
    

     

3 Replies

  • create two measures like this

    m1 =
    DIVIDE(sum('database' [Target Rev]), COUNTROWS('database'), BLANKO)
    
    
    Target Revenue= 
    SUMX(VALUES('database'[Branch]), [m1])