cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mike-Hydrite
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
THJK    
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
THJK    
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

 
 
2 REPLIES 2
Greg_Deckler
Super User
Super User

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: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition
Anonymous
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.

Thanks
Pravin

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors