Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Can't get column count or sum to add up properly by group

I am still fairly new to power bi and have worked more in excel get & transform. I am transitioning a report built in excel with various methods over to PBI.

I am attempting to get a count of total loads on a table, but the numbers I get are way to small.

BranchRTMDriver CtLoad Ct
LXSO        12      9
MKSO          7      7
OSMW        22      0
UPSO          4      1
CGSO          8    10
WLJK        16    16
VSJK          5      
LUJK        13     6
Total         87    49

 they should look more like this 

BranchRTMDriver CtLoad Ct
LXSO        12      64
MKSO          7      53
OSMW        22    137
UPSO          4      22
CGSO          8      83
WLJK        16      87
VSJK          5      45
LUJK        13      64
Total         87    555


this is the formula I am using

Load Ct=Calculate (Sum('TMS Data'[Count]), 'TMS Data'[Carrier Alt Carrier Designator]<>"RUAN",FILTER('TMS Data', 'TMS Data'[Wk Start]>=MIN('Calendar'[Week Start]) && 'TMS Data'[Wk End]<=MIN('Calendar'[Week Ending])))


I've tired a few different formulas with the same results. I am trying to get a count by week. So what you see in the formula is a removal of an extra carrier "RUAN" and then a filter attempting to limit the count to a week.


Any ideas would be appreciated

Super User IV
Super User IV

Very difficult to tell what is going on. No idea about the source data. Are you trying to create a measure or a column? Please see this post regarding How to Get Your Question Answered Quickly:


@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Not applicable

The measure you have written is correct.

Check whether any other filters are applied on page or visual.

And it's better if you share your data and expected output.


Helpful resources

PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.