Exclude Zero Values from Count Value Field Setting

kylec23

New Member
Joined
Jan 12, 2022
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi all,

1647951217861.png


I have a field in my data model "Haul Price", which is giving me the price we charged the customer strictly for hauling. I am trying to use that field to summarize a load count, that way upper management can see how much we've charged versus how many loads we have delivered.

Here's the issue: we deliver and also allow customers to pick up. So I have plenty of rows with zero value in Haul Price.

My goal: to use the Haul Price field in my data model to calculate how many rows have a haul price in them > 0 on my PivotChart. All charts are generated from the data model.

Thank you in advance!!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You'll have to create a measure for that, such as =COUNTROWS(filter(Table1,Table1[Number]>0))
 
Upvote 0
You'll have to create a measure for that, such as =COUNTROWS(filter(Table1,Table1[Number]>0))
This is the measure I created: =COUNTROWS(FILTER('JWS Ticket History','JWS Ticket History'[Haul Price]>0))

No errors in the formula. I can see excel running the calculation. It's just not updating my chart. Do I have to do something else besides create the measure?

Thanks for your reply
 
Upvote 0
Solution
I assume you added it to your pivot table?
 
Upvote 0
Then all you need to do is drag it into the values area for the pivot chart in the field list.
 
Upvote 0
Then all you need to do is drag it into the values area for the pivot chart in the field list.
I gotta tell ya.... I feel like a dumb-dumb. I didn't see that it created that field value because it was at the bottom of the list, I had to scroll down to see it.

Your help is much appreciated!!
 
Upvote 0
It would be more intuitive to me if it added it to the pivot by default. ;)
 
Upvote 0

Forum statistics

Threads
1,223,671
Messages
6,173,734
Members
452,529
Latest member
jpaxonreyes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top