Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pani_victoria
Helper III
Helper III

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!

Quest.JPG

 


My data
data.JPG

 
Please tell me how to fix this?

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@pani_victoria , I think you should return the revenue, I think you do not need step result

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Ahmedx
Super User
Super User

create two measures like this

m1 =
DIVIDE(sum('database' [Target Rev]), COUNTROWS('database'), BLANKO)


Target Revenue= 
SUMX(VALUES('database'[Branch]), [m1])

 

View solution in original post

3 REPLIES 3
pani_victoria
Helper III
Helper III

Guys, you are geniuses!

Thanks a lot!

Ahmedx
Super User
Super User

create two measures like this

m1 =
DIVIDE(sum('database' [Target Rev]), COUNTROWS('database'), BLANKO)


Target Revenue= 
SUMX(VALUES('database'[Branch]), [m1])

 

amitchandak
Super User
Super User

@pani_victoria , I think you should return the revenue, I think you do not need step result

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.